From b52b879c92315b5fc45f60d6335e40082a81e690 Mon Sep 17 00:00:00 2001 From: Yann1cks <50637827+yann1cks@users.noreply.github.com> Date: Sun, 3 Nov 2024 07:44:33 +0100 Subject: [PATCH] fix 404 page --- docs/conf.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 7868ed58..09f89679 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -129,6 +129,21 @@ "doc_path": "docs", } +# -- 404 page ------------------------------------------------ + +# Remove default url prefix on 404 pages +# https://sphinx-notfound-page.readthedocs.io/en/latest/configuration.html#confval-notfound_urls_prefix +#notfound_urls_prefix = "/test/", +notfound_no_urls_prefix = True + +notfound_context = { + "title": "Page Not Found (404)", + "body": """ +
Sorry, we couldn't find that page.
+Try using the search box or go to the homepage.
+ """, +} # -- Intersphinx ------------------------------------------------