Skip to content

Commit 5342d3c

Browse files
authored
TST: test sphinx-reredirect (#377)
1 parent 2c9f749 commit 5342d3c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- name: nvidia Drivers
3535
shell: bash -l {0}
3636
run: nvidia-smi
37+
- name: Install sphinx-reredirects
38+
shell: bash -l {0}
39+
run: pip install sphinx-reredirects
3740
- name: Display Conda Environment Versions
3841
shell: bash -l {0}
3942
run: conda list

lectures/_config.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ latex:
3232
targetname: quantecon-python.tex
3333

3434
sphinx:
35-
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_tojupyter, sphinxcontrib.youtube, sphinx.ext.todo, sphinx_exercise, sphinx_togglebutton, sphinx.ext.intersphinx]
35+
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_tojupyter, sphinxcontrib.youtube, sphinx.ext.todo, sphinx_exercise, sphinx_togglebutton, sphinx.ext.intersphinx, sphinx_reredirects]
3636
config:
3737
nb_mime_priority_overrides: [
3838
# HTML
@@ -91,8 +91,12 @@ sphinx:
9191
"argmax" : "arg\\,max"
9292
"argmin" : "arg\\,min"
9393
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
94+
# Local Redirects
9495
rediraffe_redirects:
9596
index_toc.md: intro.md
97+
# Remote Redirects
98+
redirects:
99+
heavy_tails: https://intro.quantecon.org/heavy_tails.html
96100
tojupyter_static_file_path: ["source/_static", "_static"]
97101
tojupyter_target_html: true
98102
tojupyter_urlpath: "https://python.quantecon.org/"

0 commit comments

Comments
 (0)