Skip to content

Commit cef3d0d

Browse files
Add redirects for old doc pages
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 02d41be commit cef3d0d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/source/conf.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,25 @@
2121
copyright = "nexB Inc. and others."
2222
author = "AboutCode.org authors and contributors"
2323

24-
2524
# -- General configuration ---------------------------------------------------
2625

2726
# Add any Sphinx extension module names here, as strings. They can be
2827
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2928
# ones.
3029
extensions = [
3130
"sphinx.ext.intersphinx",
31+
"sphinx_reredirects",
3232
]
3333

34+
35+
# Redirects for olds pages
36+
# See https://documatt.gitlab.io/sphinx-reredirects/usage.html
37+
redirects = {
38+
"explanations/index.html": "../reference/index.html",
39+
"explanations/overview.html": "../reference/overview.html",
40+
"explanations/license-detection-reference.html": "../reference/license-detection-reference.html"
41+
}
42+
3443
# This points to aboutcode.readthedocs.io
3544
# In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot
3645
# Link was created at commit - https://github.com/nexB/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83

0 commit comments

Comments
 (0)