File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 81
81
# Activate autosectionlabel plugin
82
82
autosectionlabel_prefix_document = True
83
83
84
+ # sphinx-notfound-page
85
+ # https://github.com/rtfd/sphinx-notfound-page
86
+ notfound_context = {
87
+ 'body' : '''
88
+ <h1>Page not found</h1>
89
+
90
+ <p>Sorry, we couldn't find that page.</p>
91
+
92
+ <p>Try using the search box or go to the homepage.</p>
93
+ ''' ,
94
+ }
95
+
84
96
85
97
def setup (app ):
86
98
app .add_stylesheet ('css/sphinx_prompt_css.css' )
Original file line number Diff line number Diff line change 1
1
-r pip.txt
2
2
3
- # Base packages
3
+ # Base packages
4
4
docutils==0.14
5
5
Sphinx==1.8.3
6
6
sphinx_rtd_theme==0.4.2
@@ -17,5 +17,6 @@ Markdown==3.0.1
17
17
# Docs
18
18
sphinxcontrib-httpdomain==1.7.0
19
19
sphinx-prompt==1.0.0
20
+ sphinx-notfound-page==0.1
20
21
commonmark==0.8.1
21
22
recommonmark==0.5.0
You can’t perform that action at this time.
0 commit comments