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