diff --git a/conf.py b/conf.py index 08b572e8b..a649d8cf2 100644 --- a/conf.py +++ b/conf.py @@ -10,7 +10,13 @@ now = datetime.datetime.now() os.environ["READTHEDOCS"] = "True" -extensions = ['sphinx_rtd_theme', 'sphinx_rtd_dark_mode', 'sphinx_copybutton', 'sphinxcontrib.mermaid'] +extensions = [ + 'sphinx_rtd_theme', + 'sphinx_rtd_dark_mode', + 'sphinx_copybutton', + 'sphinxcontrib.mermaid', + 'notfound.extension', +] # General information about the project. copyright = str(now.year) + ' Nextcloud GmbH' @@ -85,3 +91,25 @@ edit_on_github_branch = 'master' default_dark_mode = False latex_engine = "xelatex" + +# -- Options for sphinx-notfound-page extension ----------------------------------- +# https://github.com/readthedocs/sphinx-notfound-page + +# content context passed to the 404 template +notfound_context = { + "title": "404 Page Not Found", + "body": """ +