Skip to content

Commit

Permalink
Merge pull request #742 from stan-dev/fix/pdf-links
Browse files Browse the repository at this point in the history
Make PDF links absolute
  • Loading branch information
WardBrian authored Mar 18, 2024
2 parents 6002c6b + 2981fb9 commit 9d6c98d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def main():

stan_version = f"{stan_major}_{stan_minor}"
os.environ["STAN_DOCS_VERSION"] = f"{stan_major}.{stan_minor}"
os.environ["STAN_DOCS_VERSION_PDF"] = f"-{stan_version}.pdf"
os.environ["STAN_DOCS_VERSION_PATH"] = stan_version
path = os.getcwd()
docspath = os.path.join(path, "docs", stan_version)
if not (os.path.exists(docspath)):
Expand Down
2 changes: 1 addition & 1 deletion src/cmdstan-guide/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ respectively, similarly, JuliaStan also interfaces with CmdStan.


::: {.content-visible when-format="html"}
[Download the pdf version of this manual](../cmdstan-guide{{< env STAN_DOCS_VERSION_PDF >}}).
[Download the pdf version of this manual](https://mc-stan.org/docs/{{< env STAN_DOCS_VERSION_PATH >}}/cmdstan-guide-{{< env STAN_DOCS_VERSION_PATH >}}.pdf).
:::


Expand Down
2 changes: 1 addition & 1 deletion src/functions-reference/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ together with an overview of the inference algorithms and posterior inference to


::: {.content-visible when-format="html"}
[Download the pdf version of this manual](../functions-reference{{< env STAN_DOCS_VERSION_PDF >}}"
[Download the pdf version of this manual](https://mc-stan.org/docs/{{< env STAN_DOCS_VERSION_PATH >}}/functions-reference-{{< env STAN_DOCS_VERSION_PATH >}}.pdf).
:::


Expand Down
10 changes: 4 additions & 6 deletions src/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ author: "Stan Development Team"

This is the official documentation for Stan.

- The [**Stan User's Guide**](stan-users-guide/index.html) provides example models and programming techniques for coding statistical models in Stan. [pdf](stan-users-guide{{< env STAN_DOCS_VERSION_PDF >}}).
- The [**Stan User's Guide**](stan-users-guide/index.html) ([pdf](https://mc-stan.org/docs/{{< env STAN_DOCS_VERSION_PATH >}}/stan-users-guide-{{< env STAN_DOCS_VERSION_PATH >}}.pdf)) provides example models and programming techniques for coding statistical models in Stan.

- The [**Stan Reference Manual**](reference-manual/index.html) specifies the Stan programming language and inference algorithms.
[pdf](reference-manual{{< env STAN_DOCS_VERSION_PDF >}}).
- The [**Stan Reference Manual**](reference-manual/index.html) ([pdf](https://mc-stan.org/docs/{{< env STAN_DOCS_VERSION_PATH >}}/reference-manual-{{< env STAN_DOCS_VERSION_PATH >}}.pdf)) specifies the Stan programming language and inference algorithms.

- The [**Stan Functions Reference**](functions-reference/index.html) specifies the functions built into the Stan programming language. [ pdf](functions-reference{{< env STAN_DOCS_VERSION_PDF >}}).
- The [**Stan Functions Reference**](functions-reference/index.html) ([pdf](https://mc-stan.org/docs/{{< env STAN_DOCS_VERSION_PATH >}}/functions-reference-{{< env STAN_DOCS_VERSION_PATH >}}.pdf)) specifies the functions built into the Stan programming language.

There are also separate installation and getting started guides for
[*CmdStan*](cmdstan-guide/index.html), the command-line interface to the Stan inference engine,
[*CmdStan*](cmdstan-guide/index.html) ([pdf](https://mc-stan.org/docs/{{< env STAN_DOCS_VERSION_PATH >}}/cmdstan-guide-{{< env STAN_DOCS_VERSION_PATH >}}.pdf)), the command-line interface to the Stan inference engine,
and the R, Python, and Julia interfaces.


{{< include copyright_licensing.qmd >}}
2 changes: 1 addition & 1 deletion src/reference-manual/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The third part provides auxiliary information about the use of Stan.


::: {.content-visible when-format="html"}
[Download the pdf version of this manual](../reference-manual{{< env STAN_DOCS_VERSION_PDF >}}).
[Download the pdf version of this manual](https://mc-stan.org/docs/{{< env STAN_DOCS_VERSION_PATH >}}/reference-manual-{{< env STAN_DOCS_VERSION_PATH >}}.pdf).
:::

{{< include ../copyright_licensing.qmd >}}
2 changes: 1 addition & 1 deletion src/stan-users-guide/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ when necessary to clarify programming issues.


::: {.content-visible when-format="html"}
[Download the pdf version of this manual](../stan-users-guide{{< env STAN_DOCS_VERSION_PDF >}}).
[Download the pdf version of this manual](https://mc-stan.org/docs/{{< env STAN_DOCS_VERSION_PATH >}}/stan-users-guide-{{< env STAN_DOCS_VERSION_PATH >}}.pdf).
:::


Expand Down

0 comments on commit 9d6c98d

Please sign in to comment.