Skip to content

Commit 82f2b0f

Browse files
committed
docs: add redirect pages reflecting the latest layout
1 parent 350bdce commit 82f2b0f

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed
File renamed without changes.

docs/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
'sphinx_copybutton',
2727
'sphinx_tabs.tabs',
2828
'sphinxcontrib.mermaid',
29+
'sphinx_reredirects',
2930
]
3031

3132
templates_path = ['_templates']
@@ -46,3 +47,12 @@
4647
'pytest': ('https://docs.pytest.org/en/stable', None),
4748
'pexpect': ('https://pexpect.readthedocs.io/en/stable', None),
4849
}
50+
51+
# -- Options for sphinx_reredirects extension --------------------------------
52+
53+
reredirects = {
54+
'api': 'apis/pytest-embedded',
55+
'key_concepts': 'concepts/key-concepts',
56+
'services': 'concepts/services',
57+
'expecting': 'usages/expecting',
58+
}

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ sphinx-tabs # tabs support
99
sphinx_copybutton # copy button
1010
sphinxcontrib-mermaid # mermaid graph support
1111
sphinxcontrib-napoleon # google style docstring support
12+
sphinx_reredirects # redirect support

0 commit comments

Comments
 (0)