Skip to content

Commit

Permalink
Add sphinx-notfound-page extension to docs build (#45)
Browse files Browse the repository at this point in the history
Ensures that static assets load in the event of a 404 for a better UX.
Facilitates future customization of 404 page.
  • Loading branch information
douglatornell committed Feb 7, 2024
1 parent 72e9f18 commit 6343b8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
# or your custom ones.
extensions = [
'nbsphinx',
"notfound.extension",
'IPython.sphinxext.ipython_console_highlighting',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
Expand Down
4 changes: 3 additions & 1 deletion environment-rtd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ dependencies:
- sphinx=7.2.6

- pip:
- sphinx_rtd_theme
- sphinx_rtd_theme
- sphinx-notfound-page

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ six==1.16.0
snowballstemmer==2.2.0
soupsieve==2.5
Sphinx==7.2.6
sphinx-notfound-page==1.0.0
sphinx-rtd-theme==2.0.0
sphinxcontrib-applehelp==1.0.8
sphinxcontrib-devhelp==1.0.6
Expand Down

0 comments on commit 6343b8c

Please sign in to comment.