diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-03-21 22:02:51 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-03-22 21:18:17 +0100 |
commit | 24f53276c1db5d3ebd8969d20eac77970ce6b2d5 (patch) | |
tree | 56ccbfad515e6de8dda379e40ed14c6b3175ce49 /docs/conf.py | |
parent | b14ed494fb70f976cd77c47d27f29e6fb0bac670 (diff) | |
download | searxng-24f53276c1db5d3ebd8969d20eac77970ce6b2d5.tar.gz searxng-24f53276c1db5d3ebd8969d20eac77970ce6b2d5.zip |
[doc] add sphinx-notfound-page
Closes: https://github.com/searxng/searxng/issues/703
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py index 1dd5693ca..5db9e8178 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -123,6 +123,7 @@ extensions = [ 'linuxdoc.kfigure', # Sphinx extension which implements scalable image handling. "sphinx_tabs.tabs", # https://github.com/djungelorm/sphinx-tabs 'myst_parser', # https://www.sphinx-doc.org/en/master/usage/markdown.html + 'notfound.extension', # https://github.com/readthedocs/sphinx-notfound-page ] suppress_warnings = ['myst.domains'] @@ -140,6 +141,10 @@ issues_github_path = "searxng/searxng" # HTML ----------------------------------------------------------------- +# https://searxng.github.io/searxng --> '/searxng/' +# https://docs.searxng.org --> '/' +notfound_urls_prefix = '/' + sys.path.append(os.path.abspath('_themes')) sys.path.insert(0, os.path.abspath("../utils/")) html_theme_path = ['_themes'] |