Skip to content

Commit

Permalink
Redirect lots of old links. Fixes #37.
Browse files Browse the repository at this point in the history
  • Loading branch information
seantalts committed Jun 21, 2017
1 parent bc9a5ed commit c852a31
Show file tree
Hide file tree
Showing 37 changed files with 116 additions and 0 deletions.
1 change: 1 addition & 0 deletions about/funding/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ image:
feature: feature/wide_ensemble.png
credit:
creditlink:
redirect_from: "/funding/"
---

{:.center-txt}
Expand Down
1 change: 1 addition & 0 deletions developers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ image:
feature: feature/wide_ensemble.png
credit:
creditlink:
redirect_from: "/development/"
---

{:.center-txt}
Expand Down
3 changes: 3 additions & 0 deletions documentation/case-studies/curse-dims.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/curse-dims.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/divergences_and_bias.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/divergences_and_bias.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/dorazio-royle-occupancy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/dorazio-royle-occupancy.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/hierarchical_2pl.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/hierarchical_2pl.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/identifying_mixture_models.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/identifying_mixture_models.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/mbjoseph-CARStan.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/mbjoseph-CARStan.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/mle-params.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/mle-params.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/pcm_and_gpcm.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/pcm_and_gpcm.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/pool-binary-trials-rstanarm.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/pool-binary-trials-rstanarm.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/pool-binary-trials.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/pool-binary-trials.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/radon.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/radon.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/radon.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/radon.ipynb
---
3 changes: 3 additions & 0 deletions documentation/case-studies/rasch_and_2pl.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/rasch_and_2pl.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/rsm_and_grsm.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/rsm_and_grsm.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/soil-knit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/soil-knit.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/tutorial_twopl.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/tutorial_twopl.html
---
3 changes: 3 additions & 0 deletions documentation/case-studies/weakly_informative_shapes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/documentation/case-studies/weakly_informative_shapes.html
---
3 changes: 3 additions & 0 deletions interfaces/bayesplot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/bayesplot.md
---
3 changes: 3 additions & 0 deletions interfaces/cmdstan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/cmdstan.md
---
3 changes: 3 additions & 0 deletions interfaces/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/index.md
---
3 changes: 3 additions & 0 deletions interfaces/julia-stan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/julia-stan.md
---
3 changes: 3 additions & 0 deletions interfaces/loo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/loo.md
---
3 changes: 3 additions & 0 deletions interfaces/math.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/math.md
---
3 changes: 3 additions & 0 deletions interfaces/mathematica-stan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/mathematica-stan.md
---
3 changes: 3 additions & 0 deletions interfaces/matlab-stan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/matlab-stan.md
---
3 changes: 3 additions & 0 deletions interfaces/pystan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/pystan.md
---
3 changes: 3 additions & 0 deletions interfaces/rstan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/rstan.md
---
3 changes: 3 additions & 0 deletions interfaces/rstanarm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/rstanarm.md
---
3 changes: 3 additions & 0 deletions interfaces/rstantools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/rstantools.md
---
3 changes: 3 additions & 0 deletions interfaces/shinystan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/shinystan.md
---
3 changes: 3 additions & 0 deletions interfaces/stan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/stan.md
---
3 changes: 3 additions & 0 deletions interfaces/stata-stan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
redirect_to: /users/interfaces/stata-stan.md
---
16 changes: 16 additions & 0 deletions redirect_tool.py
Original file line number Diff line number Diff line change
@@ -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))
1 change: 1 addition & 0 deletions users/citations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ image:
feature: feature/wide_ensemble.png
credit:
creditlink:
redirect_from: "/citations/"
---

{:.center-txt}
Expand Down
1 change: 1 addition & 0 deletions users/issues/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ image:
feature: feature/wide_ensemble.png
credit:
creditlink:
redirect_from: "/issues/"
---

{:.center-txt}
Expand Down

0 comments on commit c852a31

Please sign in to comment.