Skip to content

Commit 386f02e

Browse files
authored
Add rediraffe support for redirects (index_toc) (#99)
* setup redirect for index_toc * add software * use juptyer-book pattern * remove need for redirects.txt file
1 parent 0840269 commit 386f02e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ dependencies:
77
- pip
88
- pip:
99
- jupyter-book
10+
- sphinxext-rediraffe
1011
- git+https://github.com/executablebooks/sphinx-multitoc-numbering
1112
- git+https://github.com/quantecon/quantecon-book-theme
1213
- git+https://github.com/executablebooks/sphinx-exercise.git

lectures/_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ html:
1212
baseurl: https://python.quantecon.org/
1313

1414
sphinx:
15-
extra_extensions: [sphinx_multitoc_numbering, sphinx_exercise]
15+
extra_extensions: [sphinx_multitoc_numbering, sphinx_exercise, sphinxext.rediraffe]
1616
config:
1717
html_favicon: _static/lectures-favicon.ico
1818
html_theme: quantecon_book_theme
@@ -27,3 +27,5 @@ sphinx:
2727
description: This website presents a set of lectures on python programming for economics, designed and written by Thomas J. Sargent and John Stachurski.
2828
keywords: Python, QuantEcon, Quantitative Economics, Economics, Sloan, Alfred P. Sloan Foundation, Tom J. Sargent, John Stachurski
2929
google_analytics_id: UA-54984338-9
30+
rediraffe_redirects:
31+
index_toc.md: intro.md

0 commit comments

Comments
 (0)