Skip to content

Commit

Permalink
fix 404 page display
Browse files Browse the repository at this point in the history
  • Loading branch information
remrama committed Jan 30, 2025
1 parent 0682d27 commit 2c34349
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,3 +669,33 @@
# If it’s False, the Attributes section will be formatted as the Methods section using an autosummary table.
# Options: True (default) | False
numpydoc_attributes_as_param_list = True

# -- External extensions -----------------------------------------------------
# -- -> Options for notfound.extension -------------------------------------------------
# https://sphinx-notfound-page.readthedocs.io/en/latest/configuration.html

# Context passed to the template defined by `notfound_template` or auto-generated.
notfound_context = {
"title": "Page not found",
"body": """
<h1>This page may have moved.</h1>
<p>
The YASA documentation site has recently been upgraded!
Some URLs have changed.
</p>
<p>
Browse the <bold>Navigation menu</bold> or use the
<bold>Search button</bold> to find the page you were looking for.
</p>
<p>
Please update the URLs of any bookmarks or autofills in your
browser that point to the YASA documentation site.
</p>
""",
}

# Prefix added to all the URLs generated in the 404 page.
# Defaults to READTHEDOCS env variable, typically "/en/latest/"
# Note special case when using default GitHub pages URL: "/<repo>/"
# https://sphinx-notfound-page.readthedocs.io/en/latest/faq.html#does-this-extension-work-with-github-pages
notfound_urls_prefix = "/yasa/"

0 comments on commit 2c34349

Please sign in to comment.