Skip to content

Commit fc04ece

Browse files
authored
Merge pull request #47 from ByteInternet/404_page
2 parents de2a0e0 + e5b2892 commit fc04ece

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
# Add any Sphinx extension module names here, as strings. They can be
3737
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3838
# ones.
39-
extensions = ["myst_parser", "sphinx_copybutton"]
39+
extensions = [
40+
"myst_parser",
41+
"sphinx_copybutton",
42+
"notfound.extension",
43+
]
4044

4145
# Add any paths that contain templates here, relative to this directory.
4246
templates_path = ["_templates"]
@@ -81,3 +85,5 @@
8185
"css/main.css",
8286
]
8387
html_js_files = ["js/app.js"]
88+
89+
notfound_no_urls_prefix = True

requirements/base.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ sphinx-copybutton==0.5.1
77
mdformat==0.7.16
88
mdformat-myst==0.1.5
99
mdformat-frontmatter==0.4.1
10+
sphinx-notfound-page==0.8.3
1011

1112
# hypernode/ requirements
1213
beautifulsoup4==4.11.1

0 commit comments

Comments
 (0)