Skip to content

Commit

Permalink
sphinx: remove usage of deprecated notfound-page options
Browse files Browse the repository at this point in the history
sphinx-notfound-page deprecated and removed notfound_no_urls_prefix,
notfound_default_language, and notfound_default_version in favor of
notfound_urls_prefix.
We were still using these old options which caused our 404 pages to
break.
  • Loading branch information
gotmax23 committed Oct 20, 2023
1 parent 3297187 commit 9d4c6db
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions docs/docsite/rst/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,15 +333,10 @@
# with no 'notfound_template' and no 'notfound_context' set,
# the extension builds 404.rst into a location-agnostic 404 page
#
# default is `en` - using this for the sub-site:
notfound_default_language = "ansible"
# default is `latest`:
# setting explicitly - docsite serves up /ansible/latest/404.html
# so keep this set to `latest` even on the `devel` branch
# then no maintenance is needed when we branch a new stable_x.x
notfound_default_version = "latest"
# makes default setting explicit:
notfound_no_urls_prefix = False
notfound_urls_prefix = "/ansible/latest/"

# Options for LaTeX output
# ------------------------
Expand Down

0 comments on commit 9d4c6db

Please sign in to comment.