Skip to content

Commit

Permalink
Added 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
kathatherine committed Apr 3, 2024
1 parent 110f625 commit 099f3fc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
shell: bash -l {0}
run: |
conda config --append channels conda-forge
conda install -y conda-build conda-verify flake8 pydocstyle yapf==0.30.0 sphinx pydata-sphinx-theme==0.14.4 sphinx-copybutton
conda install -y conda-build conda-verify flake8 pydocstyle yapf==0.30.0 sphinx pydata-sphinx-theme==0.14.4 sphinx-copybutton sphinx-notfound-page
- name: Verify formatting compliance
shell: bash -l {0}
run: |
Expand Down
1 change: 1 addition & 0 deletions docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ dependencies:
- sphinx
- pydata-sphinx-theme=0.14.4
- sphinx-copybutton
- sphinx-notfound-page
channels:
- defaults
- conda-forge
6 changes: 6 additions & 0 deletions docs/source/404.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:orphan:

404
===

Error 404: Page not found. You may have gone to the wrong page or this page was moved or deleted. Please visit https://anaconda-project.readthedocs.io/en/latest/ for the latest version of the documentation.
Binary file added docs/source/_static/favicon.ico
Binary file not shown.
7 changes: 4 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
# ones.
extensions = [
'sphinx.ext.autosectionlabel',
'sphinx_copybutton'
'sphinx_copybutton',
'notfound.extension'
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -171,8 +172,8 @@
# The name of an image file (relative to this directory) to use as a favicon of
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#
# html_favicon = None

html_favicon = "_static/favicon.ico"

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down

0 comments on commit 099f3fc

Please sign in to comment.