Skip to content

Commit 4e7cc7b

Browse files
committed
🔧 Add notfound extension
1 parent 2fedc26 commit 4e7cc7b

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

docs/404.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
==============
2+
Page not found
3+
==============
4+
5+
This page may have been moved.
6+
7+
Please select a page from the side menu or visit our homepage at
8+
https://python-basics-tutorial.readthedocs.io/en/latest/.

docs/conf.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,18 @@
4040
# extensions coming with Sphinx (named "sphinx.ext.*") or your custom ones.
4141
extensions = [
4242
"nbsphinx",
43+
"notfound.extension",
4344
"pygments_pytest",
4445
"sphinx.ext.autodoc",
45-
"sphinx.ext.viewcode",
4646
"sphinx.ext.graphviz",
4747
"sphinx.ext.intersphinx",
48-
"sphinxcontrib.plantuml",
49-
"sphinxcontrib.cairosvgconverter",
50-
"sphinxext.opengraph",
48+
"sphinx.ext.intersphinx",
49+
"sphinx.ext.viewcode",
5150
"sphinx_copybutton",
5251
"sphinx_inline_tabs",
52+
"sphinxcontrib.cairosvgconverter",
53+
"sphinxcontrib.plantuml",
54+
"sphinxext.opengraph",
5355
]
5456

5557
plantuml = "plantuml"

pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ docs = [
1919
"furo",
2020
"ipython",
2121
"ipywidgets",
22+
"matplotlib", # matplotlib is required for social cards
2223
"nbsphinx",
23-
"sphinxext.opengraph", # matplotlib is required for social cards
24-
"matplotlib",
25-
"sphinx_copybutton",
24+
"pygments-pytest",
2625
"sphinx-inline-tabs",
27-
"sphinxcontrib.plantuml",
28-
"sphinxcontrib-svg2pdfconverter",
2926
"sphinx-lint",
30-
"pygments-pytest",
27+
"sphinx-notfound-page",
28+
"sphinx_copybutton",
29+
"sphinxcontrib-svg2pdfconverter",
30+
"sphinxcontrib.plantuml",
31+
"sphinxext.opengraph",
3132
]
3233

3334
dev = [

0 commit comments

Comments
 (0)