Skip to content

Commit

Permalink
fix 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
yann1cks committed Nov 3, 2024
1 parent 115799d commit b52b879
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": """
<h1>Page Not Found</h1>
<p>Sorry, we couldn't find that page.</p>
<p>Try using the search box or go to the homepage.</p>
""",
}

# -- Intersphinx ------------------------------------------------

Expand Down

0 comments on commit b52b879

Please sign in to comment.