Skip to content

Commit f89917d

Browse files
committed
Sphinx redirect update
1 parent c0b9026 commit f89917d

3 files changed

Lines changed: 24 additions & 4 deletions

File tree

docs/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"sphinx.ext.napoleon", # For google style docstrings
3939
"sphinx_copybutton", # For copy button in code blocks
4040
"swagger_plugin_for_sphinx", # For parsing and presenting OpenAPI specs
41+
"sphinx_reredirects", # For handling URL redirects
4142
]
4243

4344
templates_path = ["_templates"]
@@ -55,6 +56,12 @@
5556
]
5657
myst_heading_anchors = 5 # Generates anchor links for headings up to level 5
5758

59+
# -- Options for Redirects ---------------------------------------------------
60+
# Configure redirects for renamed files
61+
redirects = {
62+
"nemoretriever-parse-extraction": "nemotron-parse-extraction.html",
63+
}
64+
5865
# -- Options for HTML output -------------------------------------------------
5966
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
6067

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,6 @@ docs = [
162162
"sphinx-autobuild>=2025.8.25",
163163
"sphinx-autodoc2>=0.5.0",
164164
"sphinx-copybutton>=0.5.2",
165+
"sphinx-reredirects>=0.1.5",
165166
"swagger-plugin-for-sphinx>=5.2.0",
166167
]

uv.lock

Lines changed: 16 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)