From ad199bde73385d881f4eb3c639b6102cc0c0d35d Mon Sep 17 00:00:00 2001 From: Jacob Tomlinson Date: Wed, 21 Aug 2024 15:04:37 +0100 Subject: [PATCH] Add redirects --- docs/requirements-docs.txt | 1 + docs/source/conf.py | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/docs/requirements-docs.txt b/docs/requirements-docs.txt index 8478b248..e79e74ae 100644 --- a/docs/requirements-docs.txt +++ b/docs/requirements-docs.txt @@ -2,6 +2,7 @@ distributed numpydoc ipython sphinx<5 +sphinx-reredirects dask-sphinx-theme>=3.0.0 # FIXME: This workaround is required until we have sphinx>=5, as enabled by # dask-sphinx-theme no longer pinning sphinx-book-theme==0.2.0. This is diff --git a/docs/source/conf.py b/docs/source/conf.py index 16ae5e3c..4a08afb8 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -48,8 +48,21 @@ "sphinx.ext.autosummary", "sphinx.ext.extlinks", "numpydoc", + "sphinx_reredirects", ] +redirects = { + "interactive": "clusters-interactive.html", + "advanced-tips-and-tricks": "clusters-advanced-tips-and-tricks.html", + "configuration": "clusters-configuration.html", + "howitworks": "clusters-howitworks.html", + "api": "clusters-api.html", + "configuration-setup": "clusters-configuration-setup.html", + "interactive": "clusters-interactive.html", + "configurations": "clusters-configuration-examples.html", + "examples": "clusters-example-deployments.html", +} + autosummary_generate = True numpydoc_class_members_toctree = True