mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
404: catch page not found error
This commit is contained in:
parent
8936848d68
commit
39b1b48800
@ -32,6 +32,8 @@ RUN apt-get update && apt-get install -y \
|
|||||||
RUN pip3 install Sphinx
|
RUN pip3 install Sphinx
|
||||||
RUN pip3 install sphinx-rtd-theme
|
RUN pip3 install sphinx-rtd-theme
|
||||||
RUN pip3 install sphinx-autobuild
|
RUN pip3 install sphinx-autobuild
|
||||||
|
RUN pip3 install sphinx-notfound-page
|
||||||
|
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
RUN rm -rf /var/lib/apt/lists/*
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
|||||||
10
docs/404.rst
Normal file
10
docs/404.rst
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
:orphan:
|
||||||
|
|
||||||
|
Page Not Found
|
||||||
|
==============
|
||||||
|
|
||||||
|
Sorry, We could not find a page.
|
||||||
|
Try using the search box or go to the release homepage:
|
||||||
|
|
||||||
|
* `1.2.x (crux) <https://docs.vyos.io/en/crux/>`_
|
||||||
|
* `rolling release (equuleus) <https://docs.vyos.io/en/latest/>`_
|
||||||
@ -44,6 +44,7 @@ extensions = ['sphinx.ext.intersphinx',
|
|||||||
'sphinx.ext.todo',
|
'sphinx.ext.todo',
|
||||||
'sphinx.ext.ifconfig',
|
'sphinx.ext.ifconfig',
|
||||||
'sphinx.ext.graphviz',
|
'sphinx.ext.graphviz',
|
||||||
|
'notfound.extension',
|
||||||
'vyos'
|
'vyos'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
Sphinx>=1.4.3
|
Sphinx>=1.4.3
|
||||||
sphinx-rtd-theme
|
sphinx-rtd-theme
|
||||||
setuptools
|
setuptools
|
||||||
docutils
|
docutils
|
||||||
|
sphinx-notfound-page
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user