Skip to content

Commit

Permalink
DOC: Try to add 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtJacobson committed Aug 8, 2020
1 parent 1dce75f commit 0bff7ae
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: python
python: "2.7"

install:
- pip install sphinx sphinx_rtd_theme mock
- pip install sphinx sphinx_rtd_theme sphinx-notfound-page mock
- pip install git+https://github.com/KurtJacobson/sphinx-gitstamp@MoreInfo
- pip install --upgrade setuptools
- sudo apt-get install pyqt5-dev-tools
Expand Down
10 changes: 10 additions & 0 deletions docs/source/404.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
:orphan:

===========================
404 Error - Page Not Found
===========================

The requested page has either moved, or does not exist.
Please try using the links from the sidebar to find what you are looking for.

If you think this page *should* exit, please contact one of the site administrators or open an issue on GitHub.
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,14 @@
'sphinx.ext.githubpages',
'sphinx.ext.napoleon',
'sphinx_gitstamp',
'notfound.extension',
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

notfound_urls_prefix = ""

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of strings:
#
Expand Down

0 comments on commit 0bff7ae

Please sign in to comment.