File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -172,3 +172,6 @@ autodoc_pydantic_model_member_order = "bysource"
172172autodoc_pydantic_model_show_json = true
173173autodoc_pydantic_settings_show_json = false
174174autodoc_pydantic_model_show_field_summary = false
175+
176+ # redirects
177+ redirects = {"docs/src/testredirect" =" home.html" , "toplevel" =" docs/src/home.html" }
Original file line number Diff line number Diff line change @@ -116,6 +116,8 @@ def generate_docs_configuration(
116116 "autodoc_pydantic_model_show_json" : True ,
117117 "autodoc_pydantic_settings_show_json" : None ,
118118 "autodoc_pydantic_model_show_field_summary" : None ,
119+ # sphinx-reredirects
120+ "redirects" : {},
119121 }.items ():
120122 configuration_args [config_option ] = get_config (section = config_option , base = config_base ) or default
121123
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ extensions = [
3838 "sphinx.ext.inheritance_diagram",
3939 "sphinxcontrib.mermaid",
4040 "sphinxcontrib.autodoc_pydantic",
41+ "sphinx_reredirects",
4142]
4243if use_autoapi in (True, None):
4344 # add if it is set to true or if it is set to None
@@ -82,6 +83,9 @@ nb_execution_excludepatterns = {{nb_execution_excludepatterns}}
8283#sphinxcontrib.mermaid
8384mermaid_d3_zoom = True
8485
86+ # redirects
87+ redirects = {{redirects}}
88+
8589# autosummary
8690autosummary_generate = True
8791
You can’t perform that action at this time.
0 commit comments