-
Notifications
You must be signed in to change notification settings - Fork 17
/
conf.py
48 lines (39 loc) · 1.24 KB
/
conf.py
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
import sys, os
# local extension folder
sys.path.append(os.path.abspath('_extensions'))
project = u'WebExtension Documentation for Thunderbird Beta<br><br>Manifest V2'
source_suffix = '.rst'
master_doc = 'index'
exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store', 'overlay']
extensions = [
# ... other extensions here
'versionwarning.extension',
'apiheader',
'apimember',
'apisectionannotationhack',
'sphinx_rtd_theme',
]
html_theme = "sphinx_rtd_theme"
html_theme_options = {
# Toc options
'collapse_navigation': False,
'sticky_navigation': True,
'navigation_depth': 3,
'includehidden': True,
'titles_only': False,
'style_external_links': True,
'prev_next_buttons_location': "None"
}
html_context = {
'display_github': False
}
html_show_sourcelink = False
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# Configure headers
versionwarning_body_selector = 'div[itemprop="articleBody"] h1'
def setup(app):
app.add_js_file("custom.js")
app.add_css_file('theme_overrides.css')