Skip to content
Snippets Groups Projects
Commit a7a44f68 authored by vlorentz's avatar vlorentz
Browse files

Create redirects for moved deposit pages

This only includes redirects for user documentation;
external links to the developer documentation would be broken,
but I don't think there are any such link and I don't want to
clutter the file tree unnecessarily.
parent 030ec359
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ extensions = [
"sphinx_click.ext",
"myst_parser",
"sphinx.ext.todo",
"sphinx_reredirects",
"swh.docs.sphinx.view_in_phabricator",
]
......@@ -125,6 +126,15 @@ html_last_updated_fmt = "%Y-%m-%d %H:%M:%S %Z"
# refer to the Python standard library.
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
# Redirects for pages that were moved, so we don't break external links.
# Uses sphinx-reredirects
redirects = {
"swh-deposit/spec-api": "api/api-documentation.html",
"swh-deposit/metadata": "api/metadata.html",
"swh-deposit/specs/blueprint": "../api/use-cases.html",
"swh-deposit/user-manual": "api/user-manual.html",
}
# -- autodoc configuration ----------------------------------------------
autodoc_default_flags = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment