diff --git a/libc/docs/conf.py b/libc/docs/conf.py index 502a479b3eb2c5..eff827c867fd88 100644 --- a/libc/docs/conf.py +++ b/libc/docs/conf.py @@ -25,7 +25,7 @@ # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ["sphinx.ext.intersphinx", "sphinx.ext.todo"] +extensions = ["sphinx.ext.intersphinx", "sphinx.ext.todo", "sphinx_reredirects"] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] @@ -261,3 +261,5 @@ # Enable this if you want TODOs to show up in the generated documentation. todo_include_todos = True + +redirects = {"math/index": "../headers/math/index.html"} diff --git a/llvm/docs/requirements.txt b/llvm/docs/requirements.txt index 960a6eb644e143..50cf8ef58e752a 100644 --- a/llvm/docs/requirements.txt +++ b/llvm/docs/requirements.txt @@ -5,5 +5,6 @@ recommonmark==0.7.1 sphinx-automodapi==0.17.0 sphinx-bootstrap-theme==0.8.1 sphinxcontrib-applehelp==1.0.8 +sphinx-reredirects==0.1.2 furo==2024.1.29 myst-parser==2.0.0