File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed
Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ {% extends "!page.html" %}
2+
3+ {%- block htmltitle %}
4+ < title > {{ title|striptags|e }}{%- for parent in parents %} – {{ parent.title }}{%- endfor %}{{ titlesuffix }}</ title >
5+ {%- endblock %}
6+
7+ {% block body %}
8+ < div >
9+ < h1 > Page not found</ h1 >
10+ < p > Unfortunately we couldn't find the content you were looking for.</ p >
11+ </ div >
12+
13+ < style >
14+ /* Hide empty sub menu. */
15+ .sticky-top .bd-toc {
16+ visibility : hidden;
17+ }
18+ </ style >
19+ {% endblock %}
Original file line number Diff line number Diff line change 5555 "sphinxext.opengraph" ,
5656 "sphinx.ext.viewcode" , # plone.api
5757 "sphinx.ext.autosummary" , # plone.api
58+ "notfound.extension" ,
5859]
5960
6061
206207copybutton_prompt_is_regexp = True
207208
208209
210+ # -- sphinx-notfound-page configuration ----------------------------------
211+
212+ notfound_urls_prefix = None
213+ notfound_template = "404.html"
214+
215+
209216# -- Options for HTML output -------------------------------------------------
210217
211218# The theme to use for HTML and HTML Help pages. See the documentation for
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ sphinx-autobuild
99sphinx-book-theme == 0.3.3 # Temporary pin until we can sort out HTML refactoring.
1010sphinx-copybutton
1111sphinx-design
12+ sphinx-notfound-page
1213sphinx-sitemap
1314sphinx-togglebutton
1415sphinxcontrib.httpdomain # plone.restapi
You can’t perform that action at this time.
0 commit comments