Skip to content

Commit 2f4c805

Browse files
committed
🔧 Add notfound extension
1 parent f45f0e9 commit 2f4c805

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-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://jupyter-tutorial.readthedocs.io/en/latest/.

docs/conf.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,18 @@
4040
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4141
# ones.
4242
extensions = [
43-
"nbsphinx",
4443
"IPython.sphinxext.ipython_console_highlighting",
45-
# 'jupyter_sphinx.execute',
44+
# "jupyter_sphinx.execute",
45+
"nbsphinx",
46+
"notfound.extension",
4647
"sphinx.ext.autodoc",
47-
"sphinx.ext.intersphinx",
4848
"sphinx.ext.graphviz",
49+
"sphinx.ext.intersphinx",
4950
"sphinx.ext.todo",
50-
"sphinxcontrib.cairosvgconverter",
51-
"sphinxext.opengraph",
5251
"sphinx_copybutton",
5352
"sphinx_inline_tabs",
53+
"sphinxcontrib.cairosvgconverter",
54+
"sphinxext.opengraph",
5455
]
5556

5657
# Add any paths that contain templates here, relative to this directory.

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@ dependencies = []
1616

1717
[project.optional-dependencies]
1818
docs = [
19-
"sphinx<8.2",
2019
"furo",
2120
"ipython",
2221
"ipywidgets",
22+
"matplotlib", # matplotlib is required for social cards
2323
"nbsphinx",
24-
"sphinxext.opengraph", # matplotlib is required for social cards
25-
"matplotlib",
26-
"sphinx_copybutton",
24+
"sphinx<8.2",
2725
"sphinx-inline-tabs",
28-
"sphinxcontrib-svg2pdfconverter",
2926
"sphinx-lint",
27+
"sphinx-notfound-page",
28+
"sphinx_copybutton",
29+
"sphinxcontrib-svg2pdfconverter",
30+
"sphinxext.opengraph"
3031
]
3132

3233
dev = [

0 commit comments

Comments
 (0)