From e5b289253bb1d151f4ea8b837100bf14c2984087 Mon Sep 17 00:00:00 2001 From: Timon de Groot Date: Fri, 30 Dec 2022 19:39:09 +0100 Subject: [PATCH] Add 404 page --- docs/conf.py | 8 +++++++- requirements/base.txt | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 021e92f5..b2fcae0c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -36,7 +36,11 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ["myst_parser", "sphinx_copybutton"] +extensions = [ + "myst_parser", + "sphinx_copybutton", + "notfound.extension", +] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] @@ -81,3 +85,5 @@ "css/main.css", ] html_js_files = ["js/app.js"] + +notfound_no_urls_prefix = True diff --git a/requirements/base.txt b/requirements/base.txt index 91014eca..03f0d4e2 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -7,6 +7,7 @@ sphinx-copybutton==0.5.1 mdformat==0.7.16 mdformat-myst==0.1.5 mdformat-frontmatter==0.4.1 +sphinx-notfound-page==0.8.3 # hypernode/ requirements beautifulsoup4==4.11.1