From c852a31396646ae8c068cdea80ea0de3b6fe3aa3 Mon Sep 17 00:00:00 2001 From: Sean Talts Date: Wed, 21 Jun 2017 17:49:02 -0400 Subject: [PATCH] Redirect lots of old links. Fixes #37. --- about/funding/index.md | 1 + developers/index.md | 1 + documentation/case-studies/curse-dims.html | 3 +++ .../case-studies/divergences_and_bias.html | 3 +++ .../case-studies/dorazio-royle-occupancy.html | 3 +++ documentation/case-studies/hierarchical_2pl.html | 3 +++ .../case-studies/identifying_mixture_models.html | 3 +++ documentation/case-studies/mbjoseph-CARStan.html | 3 +++ documentation/case-studies/mle-params.html | 3 +++ documentation/case-studies/pcm_and_gpcm.html | 3 +++ .../pool-binary-trials-rstanarm.html | 3 +++ .../case-studies/pool-binary-trials.html | 3 +++ documentation/case-studies/radon.html | 3 +++ documentation/case-studies/radon.ipynb | 3 +++ documentation/case-studies/rasch_and_2pl.html | 3 +++ documentation/case-studies/rsm_and_grsm.html | 3 +++ documentation/case-studies/soil-knit.html | 3 +++ documentation/case-studies/tutorial_twopl.html | 3 +++ .../case-studies/weakly_informative_shapes.html | 3 +++ interfaces/bayesplot.md | 3 +++ interfaces/cmdstan.md | 3 +++ interfaces/index.md | 3 +++ interfaces/julia-stan.md | 3 +++ interfaces/loo.md | 3 +++ interfaces/math.md | 3 +++ interfaces/mathematica-stan.md | 3 +++ interfaces/matlab-stan.md | 3 +++ interfaces/pystan.md | 3 +++ interfaces/rstan.md | 3 +++ interfaces/rstanarm.md | 3 +++ interfaces/rstantools.md | 3 +++ interfaces/shinystan.md | 3 +++ interfaces/stan.md | 3 +++ interfaces/stata-stan.md | 3 +++ redirect_tool.py | 16 ++++++++++++++++ users/citations/index.md | 1 + users/issues/index.md | 1 + 37 files changed, 116 insertions(+) create mode 100644 documentation/case-studies/curse-dims.html create mode 100644 documentation/case-studies/divergences_and_bias.html create mode 100644 documentation/case-studies/dorazio-royle-occupancy.html create mode 100644 documentation/case-studies/hierarchical_2pl.html create mode 100644 documentation/case-studies/identifying_mixture_models.html create mode 100644 documentation/case-studies/mbjoseph-CARStan.html create mode 100644 documentation/case-studies/mle-params.html create mode 100644 documentation/case-studies/pcm_and_gpcm.html create mode 100644 documentation/case-studies/pool-binary-trials-rstanarm.html create mode 100644 documentation/case-studies/pool-binary-trials.html create mode 100644 documentation/case-studies/radon.html create mode 100644 documentation/case-studies/radon.ipynb create mode 100644 documentation/case-studies/rasch_and_2pl.html create mode 100644 documentation/case-studies/rsm_and_grsm.html create mode 100644 documentation/case-studies/soil-knit.html create mode 100644 documentation/case-studies/tutorial_twopl.html create mode 100644 documentation/case-studies/weakly_informative_shapes.html create mode 100644 interfaces/bayesplot.md create mode 100644 interfaces/cmdstan.md create mode 100644 interfaces/index.md create mode 100644 interfaces/julia-stan.md create mode 100644 interfaces/loo.md create mode 100644 interfaces/math.md create mode 100644 interfaces/mathematica-stan.md create mode 100644 interfaces/matlab-stan.md create mode 100644 interfaces/pystan.md create mode 100644 interfaces/rstan.md create mode 100644 interfaces/rstanarm.md create mode 100644 interfaces/rstantools.md create mode 100644 interfaces/shinystan.md create mode 100644 interfaces/stan.md create mode 100644 interfaces/stata-stan.md create mode 100644 redirect_tool.py diff --git a/about/funding/index.md b/about/funding/index.md index 33e51b8a377..da6d450e7c9 100644 --- a/about/funding/index.md +++ b/about/funding/index.md @@ -7,6 +7,7 @@ image: feature: feature/wide_ensemble.png credit: creditlink: +redirect_from: "/funding/" --- {:.center-txt} diff --git a/developers/index.md b/developers/index.md index df154a2d789..4967b21e658 100644 --- a/developers/index.md +++ b/developers/index.md @@ -7,6 +7,7 @@ image: feature: feature/wide_ensemble.png credit: creditlink: +redirect_from: "/development/" --- {:.center-txt} diff --git a/documentation/case-studies/curse-dims.html b/documentation/case-studies/curse-dims.html new file mode 100644 index 00000000000..6e94ca4441a --- /dev/null +++ b/documentation/case-studies/curse-dims.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/curse-dims.html +--- \ No newline at end of file diff --git a/documentation/case-studies/divergences_and_bias.html b/documentation/case-studies/divergences_and_bias.html new file mode 100644 index 00000000000..0848119ccad --- /dev/null +++ b/documentation/case-studies/divergences_and_bias.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/divergences_and_bias.html +--- \ No newline at end of file diff --git a/documentation/case-studies/dorazio-royle-occupancy.html b/documentation/case-studies/dorazio-royle-occupancy.html new file mode 100644 index 00000000000..63ef515087a --- /dev/null +++ b/documentation/case-studies/dorazio-royle-occupancy.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/dorazio-royle-occupancy.html +--- \ No newline at end of file diff --git a/documentation/case-studies/hierarchical_2pl.html b/documentation/case-studies/hierarchical_2pl.html new file mode 100644 index 00000000000..fd0d7006fe6 --- /dev/null +++ b/documentation/case-studies/hierarchical_2pl.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/hierarchical_2pl.html +--- \ No newline at end of file diff --git a/documentation/case-studies/identifying_mixture_models.html b/documentation/case-studies/identifying_mixture_models.html new file mode 100644 index 00000000000..522854a7b09 --- /dev/null +++ b/documentation/case-studies/identifying_mixture_models.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/identifying_mixture_models.html +--- \ No newline at end of file diff --git a/documentation/case-studies/mbjoseph-CARStan.html b/documentation/case-studies/mbjoseph-CARStan.html new file mode 100644 index 00000000000..0a7d689c0af --- /dev/null +++ b/documentation/case-studies/mbjoseph-CARStan.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/mbjoseph-CARStan.html +--- \ No newline at end of file diff --git a/documentation/case-studies/mle-params.html b/documentation/case-studies/mle-params.html new file mode 100644 index 00000000000..0b1a0a2c705 --- /dev/null +++ b/documentation/case-studies/mle-params.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/mle-params.html +--- \ No newline at end of file diff --git a/documentation/case-studies/pcm_and_gpcm.html b/documentation/case-studies/pcm_and_gpcm.html new file mode 100644 index 00000000000..b726cc98afb --- /dev/null +++ b/documentation/case-studies/pcm_and_gpcm.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/pcm_and_gpcm.html +--- \ No newline at end of file diff --git a/documentation/case-studies/pool-binary-trials-rstanarm.html b/documentation/case-studies/pool-binary-trials-rstanarm.html new file mode 100644 index 00000000000..68bec1efa87 --- /dev/null +++ b/documentation/case-studies/pool-binary-trials-rstanarm.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/pool-binary-trials-rstanarm.html +--- \ No newline at end of file diff --git a/documentation/case-studies/pool-binary-trials.html b/documentation/case-studies/pool-binary-trials.html new file mode 100644 index 00000000000..d3af9c07569 --- /dev/null +++ b/documentation/case-studies/pool-binary-trials.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/pool-binary-trials.html +--- \ No newline at end of file diff --git a/documentation/case-studies/radon.html b/documentation/case-studies/radon.html new file mode 100644 index 00000000000..987db4606be --- /dev/null +++ b/documentation/case-studies/radon.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/radon.html +--- \ No newline at end of file diff --git a/documentation/case-studies/radon.ipynb b/documentation/case-studies/radon.ipynb new file mode 100644 index 00000000000..eea9d160455 --- /dev/null +++ b/documentation/case-studies/radon.ipynb @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/radon.ipynb +--- \ No newline at end of file diff --git a/documentation/case-studies/rasch_and_2pl.html b/documentation/case-studies/rasch_and_2pl.html new file mode 100644 index 00000000000..fc237d36210 --- /dev/null +++ b/documentation/case-studies/rasch_and_2pl.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/rasch_and_2pl.html +--- \ No newline at end of file diff --git a/documentation/case-studies/rsm_and_grsm.html b/documentation/case-studies/rsm_and_grsm.html new file mode 100644 index 00000000000..c92adf54ea8 --- /dev/null +++ b/documentation/case-studies/rsm_and_grsm.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/rsm_and_grsm.html +--- \ No newline at end of file diff --git a/documentation/case-studies/soil-knit.html b/documentation/case-studies/soil-knit.html new file mode 100644 index 00000000000..e58a311a02f --- /dev/null +++ b/documentation/case-studies/soil-knit.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/soil-knit.html +--- \ No newline at end of file diff --git a/documentation/case-studies/tutorial_twopl.html b/documentation/case-studies/tutorial_twopl.html new file mode 100644 index 00000000000..c80d5ceae92 --- /dev/null +++ b/documentation/case-studies/tutorial_twopl.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/tutorial_twopl.html +--- \ No newline at end of file diff --git a/documentation/case-studies/weakly_informative_shapes.html b/documentation/case-studies/weakly_informative_shapes.html new file mode 100644 index 00000000000..fbb56c7b700 --- /dev/null +++ b/documentation/case-studies/weakly_informative_shapes.html @@ -0,0 +1,3 @@ +--- +redirect_to: /users/documentation/case-studies/weakly_informative_shapes.html +--- \ No newline at end of file diff --git a/interfaces/bayesplot.md b/interfaces/bayesplot.md new file mode 100644 index 00000000000..69c1349060f --- /dev/null +++ b/interfaces/bayesplot.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/bayesplot.md +--- \ No newline at end of file diff --git a/interfaces/cmdstan.md b/interfaces/cmdstan.md new file mode 100644 index 00000000000..f44ac704806 --- /dev/null +++ b/interfaces/cmdstan.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/cmdstan.md +--- \ No newline at end of file diff --git a/interfaces/index.md b/interfaces/index.md new file mode 100644 index 00000000000..7ff1c8ed892 --- /dev/null +++ b/interfaces/index.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/index.md +--- \ No newline at end of file diff --git a/interfaces/julia-stan.md b/interfaces/julia-stan.md new file mode 100644 index 00000000000..c09495c0125 --- /dev/null +++ b/interfaces/julia-stan.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/julia-stan.md +--- \ No newline at end of file diff --git a/interfaces/loo.md b/interfaces/loo.md new file mode 100644 index 00000000000..b450bb5f341 --- /dev/null +++ b/interfaces/loo.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/loo.md +--- \ No newline at end of file diff --git a/interfaces/math.md b/interfaces/math.md new file mode 100644 index 00000000000..e7ba06e4838 --- /dev/null +++ b/interfaces/math.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/math.md +--- \ No newline at end of file diff --git a/interfaces/mathematica-stan.md b/interfaces/mathematica-stan.md new file mode 100644 index 00000000000..72af5c08c96 --- /dev/null +++ b/interfaces/mathematica-stan.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/mathematica-stan.md +--- \ No newline at end of file diff --git a/interfaces/matlab-stan.md b/interfaces/matlab-stan.md new file mode 100644 index 00000000000..367a608391f --- /dev/null +++ b/interfaces/matlab-stan.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/matlab-stan.md +--- \ No newline at end of file diff --git a/interfaces/pystan.md b/interfaces/pystan.md new file mode 100644 index 00000000000..defbb046274 --- /dev/null +++ b/interfaces/pystan.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/pystan.md +--- \ No newline at end of file diff --git a/interfaces/rstan.md b/interfaces/rstan.md new file mode 100644 index 00000000000..6602c570b52 --- /dev/null +++ b/interfaces/rstan.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/rstan.md +--- \ No newline at end of file diff --git a/interfaces/rstanarm.md b/interfaces/rstanarm.md new file mode 100644 index 00000000000..1efc0fea03f --- /dev/null +++ b/interfaces/rstanarm.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/rstanarm.md +--- \ No newline at end of file diff --git a/interfaces/rstantools.md b/interfaces/rstantools.md new file mode 100644 index 00000000000..1d318f072c7 --- /dev/null +++ b/interfaces/rstantools.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/rstantools.md +--- \ No newline at end of file diff --git a/interfaces/shinystan.md b/interfaces/shinystan.md new file mode 100644 index 00000000000..f82c5be20e9 --- /dev/null +++ b/interfaces/shinystan.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/shinystan.md +--- \ No newline at end of file diff --git a/interfaces/stan.md b/interfaces/stan.md new file mode 100644 index 00000000000..ab7c787e04d --- /dev/null +++ b/interfaces/stan.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/stan.md +--- \ No newline at end of file diff --git a/interfaces/stata-stan.md b/interfaces/stata-stan.md new file mode 100644 index 00000000000..d64b85d5157 --- /dev/null +++ b/interfaces/stata-stan.md @@ -0,0 +1,3 @@ +--- +redirect_to: /users/interfaces/stata-stan.md +--- \ No newline at end of file diff --git a/redirect_tool.py b/redirect_tool.py new file mode 100644 index 00000000000..ba40c33c19c --- /dev/null +++ b/redirect_tool.py @@ -0,0 +1,16 @@ +import os +import glob +import sys + +# base_dir = "users/documentation/case-studies/" +# re_base = "documentation/case-studies/" +base_dir = "users/interfaces/" +re_base = "interfaces/" +files = [x.split("/")[-1] for x in + glob.glob(base_dir + "*")] + +for fn in files: + print fn + with open(re_base + fn, "w") as f: + lines = ["---", "redirect_to: /" + base_dir + fn, "---"] + f.write("\n".join(lines)) diff --git a/users/citations/index.md b/users/citations/index.md index 6a3332bf2a5..dd9eb49ba5b 100644 --- a/users/citations/index.md +++ b/users/citations/index.md @@ -7,6 +7,7 @@ image: feature: feature/wide_ensemble.png credit: creditlink: +redirect_from: "/citations/" --- {:.center-txt} diff --git a/users/issues/index.md b/users/issues/index.md index c434d5f392f..37d789c8836 100644 --- a/users/issues/index.md +++ b/users/issues/index.md @@ -7,6 +7,7 @@ image: feature: feature/wide_ensemble.png credit: creditlink: +redirect_from: "/issues/" --- {:.center-txt}