summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-08-02 10:41:05 +0100
committerGitHub <noreply@github.com>2022-08-02 10:41:05 +0100
commit9b0cf7e1dfd8c3e11a47a9b3c7f4385745d50daf (patch)
tree26ac5421a2fa1c040eaa880354fee717556611a4
parent3ecabf8583b6e57d3ac47b34d6afec0b9d00b167 (diff)
parent00eaec7a0c4e49af9c4062145c969f08d2953abe (diff)
downloadpython-setuptools-git-9b0cf7e1dfd8c3e11a47a9b3c7f4385745d50daf.tar.gz
Docs: create nice 404 pages (#3444)
-rw-r--r--changelog.d/3444.doc.rst2
-rw-r--r--docs/conf.py3
-rw-r--r--setup.cfg1
3 files changed, 6 insertions, 0 deletions
diff --git a/changelog.d/3444.doc.rst b/changelog.d/3444.doc.rst
new file mode 100644
index 00000000..fd6bda85
--- /dev/null
+++ b/changelog.d/3444.doc.rst
@@ -0,0 +1,2 @@
+Installed ``sphinx-notfound-page`` extension to generate nice 404 pages.
+-- by :user:`humitos`
diff --git a/docs/conf.py b/docs/conf.py
index a5e44eae..9a4e33b7 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -215,6 +215,9 @@ extensions += ['jaraco.tidelift']
extensions += ['sphinx-favicon']
html_static_path = ['images'] # should contain the folder with icons
+# Add support for nice Not Found 404 pages
+extensions += ['notfound.extension']
+
# List of dicts with <link> HTML attributes
# static-file points to files in the html_static_path (href is computed)
favicons = [
diff --git a/setup.cfg b/setup.cfg
index 35385f6f..2b4d40bb 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -90,6 +90,7 @@ docs =
jaraco.packaging >= 9
rst.linker >= 1.9
jaraco.tidelift >= 1.4
+ sphinx-notfound-page == 0.8.3
sphinx-hoverxref < 2
# local