Skip to content

Commit

Permalink
Conditionally disabled custom 404 pages on dev docs (#11596)
Browse files Browse the repository at this point in the history
This is for testing error pages more in production and can be reverted later.
  • Loading branch information
agjohnson authored Sep 11, 2024
1 parent b725eb4 commit b30b665
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"hoverxref.extension",
"multiproject",
"myst_parser",
"notfound.extension",
# For testing, conditionally disable the custom 404 pages on dev docs
# "notfound.extension",
"sphinx_copybutton",
"sphinx_design",
"sphinx_tabs.tabs",
Expand Down Expand Up @@ -55,6 +56,10 @@

docset = get_project(multiproject_projects)

# Disable custom 404 on dev docs
if docset == "user":
extensions.append("notfound.extension")

ogp_site_name = "Read the Docs Documentation"
ogp_use_first_image = True # https://github.com/readthedocs/blog/pull/118
ogp_image = "https://docs.readthedocs.io/en/latest/_static/img/logo-opengraph.png"
Expand Down

0 comments on commit b30b665

Please sign in to comment.