Skip to content

Commit

Permalink
Merge pull request #2846 from jessica-mitchell/custom-404-docpage
Browse files Browse the repository at this point in the history
Add a custom 404 page for Read the docs
  • Loading branch information
jougs authored Jul 4, 2023
2 parents a9aa380 + 571ccf5 commit 9e49c7e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/htmldoc/404.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
:orphan:

404 - Page not found
--------------------


Sorry, it looks like the page you were looking for doesn't exist in this version or has moved.

Try the search bar or the navigation sidebar.


1 change: 1 addition & 0 deletions doc/htmldoc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"HoverXTooltip",
"VersionSyncRole",
"sphinx_copybutton",
"notfound.extension",
]

autodoc_mock_imports = ["nest.pynestkernel", "nest.ll_api"]
Expand Down
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ seaborn==0.12.2
sphinx==6.2.1
sphinx_autobuild==2021.3.14
sphinx-copybutton>=0.5.2
sphinx-notfound-page>=0.8.3
sphinx-design==0.4.1
sphinx-gallery==0.13.0
sphinx-material==0.0.35
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,4 @@ dependencies:
- sphinx_design
- sphinx-material
- sphinx-copybutton
- sphinx-notfound-page

0 comments on commit 9e49c7e

Please sign in to comment.