doc: Add sphinx 404 page
This commit is contained in:
parent
6a648c8ef7
commit
38f67f4269
@ -88,10 +88,14 @@ extensions = [
|
|||||||
"sphinx.ext.extlinks",
|
"sphinx.ext.extlinks",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if on_rtd:
|
||||||
|
extensions += [
|
||||||
|
# The custom 404 page is only needed
|
||||||
|
"notfound.extension",
|
||||||
# The search extension works only on readthedocs
|
# The search extension works only on readthedocs
|
||||||
# See https://readthedocs-sphinx-search.readthedocs.io
|
# See https://readthedocs-sphinx-search.readthedocs.io
|
||||||
if on_rtd:
|
"sphinx_search.extension",
|
||||||
extensions.append("sphinx_search.extension")
|
]
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
templates_path = [doc_path + '/_templates']
|
templates_path = [doc_path + '/_templates']
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
sphinx-rtd-theme~=1.3.0
|
sphinx-rtd-theme~=1.3.0
|
||||||
|
sphinx-notfound-page~=1.0.0
|
||||||
readthedocs-sphinx-search~=0.3.1
|
readthedocs-sphinx-search~=0.3.1
|
||||||
|
Loading…
Reference in New Issue
Block a user