Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit a134956

Browse files
committed
build: add a custom 404 page to the docs
1 parent c0f9363 commit a134956

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

shared/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,14 @@ def ism_location(dir_name):
230230
# :jira:`TNL-4904` becomes: <a href='https://openedx.atlassian.net/browse/TNL-4904'>TNL-4904</a>
231231
'jira': ('https://openedx.atlassian.net/browse/%s', 'Jira Issue %s'),
232232
}
233+
234+
# sphinx-notfound-page
235+
# https://github.com/readthedocs/sphinx-notfound-page
236+
notfound_context = {
237+
"title": "Page Not Found",
238+
"body": """
239+
<h1>Page Not Found</h1>
240+
241+
<p>Sorry, we couldn't find that page. Try using the search box or visiting <a href="https://docs.openedx.org/en/latest/">docs.openedx.org</a>, our new documentation site.</p>
242+
""",
243+
}

0 commit comments

Comments
 (0)