Skip to content

Commit 2c3c942

Browse files
authored
Merge pull request #851 from stan-dev/other-docs-new-tab
Open links to docs hosted elsewhere in new tabs
2 parents 1eb5a51 + 538e76c commit 2c3c942

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

extract_function_sigs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
import contextlib
1212
import subprocess
1313

14+
15+
if "functions-reference" not in os.getenv("QUARTO_PROJECT_INPUT_FILES", "").replace("functions-reference/functions_index.qmd", ""):
16+
print("Functions reference didn't change, skipping index update")
17+
exit(0)
18+
1419
@contextlib.contextmanager
1520
def pushd(new_dir):
1621
previous_dir = os.getcwd()

src/_quarto.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,34 +57,48 @@ website:
5757
href: cmdstan-guide/index.qmd
5858
- text: "CmdStanPy"
5959
url: https://mc-stan.org/cmdstanpy
60+
target: "_blank"
6061
- text: "CmdStanR"
6162
url: https://mc-stan.org/cmdstanr
63+
target: "_blank"
6264
- text: "PyStan"
63-
url: https://mc-stan.org/users/interfaces/pystan.html
65+
url: https://pystan.readthedocs.io/en/latest/
66+
target: "_blank"
6467
- text: "RStan"
6568
url: https://mc-stan.org/rstan
69+
target: "_blank"
6670
- text: "Stan.jl"
6771
url: http://stanjulia.github.io/Stan.jl/stable/INTRO/
72+
target: "_blank"
6873
- text: "Other Packages"
6974
menu:
7075
- text: "bayesplot"
7176
href: https://mc-stan.org/bayesplot/
77+
target: "_blank"
7278
- text: "BridgeStan"
7379
href: https://roualdes.github.io/bridgestan/latest/
80+
target: "_blank"
7481
- text: "brms"
7582
url: https://paul-buerkner.github.io/brms/
83+
target: "_blank"
7684
- text: "loo"
7785
href: https://mc-stan.org/loo/
86+
target: "_blank"
7887
- text: "posterior"
7988
url: https://mc-stan.org/posterior
89+
target: "_blank"
8090
- text: "projpred"
8191
url: https://mc-stan.org/projpred
92+
target: "_blank"
8293
- text: "rstanarm"
8394
url: https://mc-stan.org/rstanarm
95+
target: "_blank"
8496
- text: "rstantools"
8597
url: https://mc-stan.org/rstantools
98+
target: "_blank"
8699
- text: "shinystan"
87100
url: https://mc-stan.org/shinystan
101+
target: "_blank"
88102

89103

90104
tools:

0 commit comments

Comments
 (0)