Skip to content

Commit

Permalink
Add 404 page (#48)
Browse files Browse the repository at this point in the history
* Add 404 page

* An attempt avoid build warning/error by setting `notfound_urls_prefix` to an empty string instead of None

---------

Co-authored-by: Maniacal Chicken <[email protected]>
  • Loading branch information
peytondmurray and random-person-001 authored Oct 22, 2023
1 parent 5ea1586 commit 1caccbc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ pre-commit
pydata-sphinx-theme
sphinx>=7
sphinx-design
sphinx-notfound-page
10 changes: 10 additions & 0 deletions src/404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
orphan: true
permalink: /404.html
---

# Page not found

**Sorry, this page couldn't be found.**

Click on the navigation bar at the top of the page to go elsewhere.
3 changes: 3 additions & 0 deletions src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
extensions = [
"myst_parser",
"sphinx_design",
"notfound.extension",
]

myst_enable_extensions = [
Expand Down Expand Up @@ -67,6 +68,8 @@

html_static_path = ["_static"]

notfound_urls_prefix = ''


def setup(app):
# Styles applied to the entire wiki
Expand Down

0 comments on commit 1caccbc

Please sign in to comment.