diff options
author | Alexandre Flament <alex@al-f.net> | 2022-03-26 13:42:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-26 13:42:44 +0100 |
commit | 1ee5cfb01c528745341a39cbde6fa181101f78b4 (patch) | |
tree | cb174f975fa6b5c4b4f6d8c1af4c12c2466cbf04 /docs | |
parent | ef8af285a22db78a3d28d0f13228f0487ce9fe8b (diff) | |
parent | 24f53276c1db5d3ebd8969d20eac77970ce6b2d5 (diff) | |
download | searxng-1ee5cfb01c528745341a39cbde6fa181101f78b4.tar.gz searxng-1ee5cfb01c528745341a39cbde6fa181101f78b4.zip |
Merge pull request #1000 from return42/fix-703
[fix] add sphinx-notfound-page
Diffstat (limited to 'docs')
-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'] |