1
+ import os
2
+ import sys
3
+ import datetime
4
+ sys .path .insert (0 , os .path .abspath ('.' ))
5
+
6
+ now = datetime .datetime .now ()
7
+
8
+ copyright = str (now .year ) + ' LibreCode coop'
9
+ project = 'LibreSign Documentation'
10
+ author = 'LibreSign Team'
11
+ release = '1.0'
12
+
13
+ extensions = [
14
+ 'sphinx_rtd_theme' ,
15
+ 'sphinx_rtd_dark_mode' ,
16
+ 'sphinx_copybutton' ,
17
+ 'notfound.extension' ,
18
+ ]
19
+
20
+ templates_path = ['_templates' ]
21
+ exclude_patterns = []
22
+
23
+ html_theme = 'sphinx_rtd_theme'
24
+ html_logo = "images/logo.png"
25
+ html_theme_options = {
26
+ 'style_nav_header_background' : '#184c4e' ,
27
+ 'logo_only' : True ,
28
+ 'navigation_with_keys' : True ,
29
+ 'style_external_links' : True ,
30
+ 'version_selector' : False ,
31
+ }
32
+ html_extra_path = ['html' ]
33
+
34
+ # -- Options for sphinx-notfound-page extension -----------------------------------
35
+ # https://github.com/readthedocs/sphinx-notfound-page
36
+
37
+ # content context passed to the 404 template
38
+ notfound_context = {
39
+ "title" : "404 Page Not Found" ,
40
+ "body" : """
41
+ <h1>Page Not Found</h1>
42
+ <h2>Sorry, we can't seem to find the page you're looking for.</h2>
43
+ <h6>Error code: 404</h6>
44
+
45
+ <h3>Here are some alternatives:</h3>
46
+ <ol>
47
+ <li>Try using the search box.</li>
48
+ <li>Check the content menu on the side of this page.</li>
49
+ <li>Regroup at our <a href="/">documentation homepage.</a></p></li>
50
+ </ol>
51
+ """ ,
52
+ }
53
+
54
+ notfound_urls_prefix = None
0 commit comments