-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.py
75 lines (63 loc) · 2.19 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import json
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
with open('root/site.webmanifest') as f:
manifest = json.load(f)
project = 'iguessthislldo'
author = 'Fred Hornsey'
github = 'https://github.com/iguessthislldo'
copyright = '2023, ' + author
pygments_style = 'manni'
nitpicky = True
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
'sphinx_design'
]
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'output', 'input', '.venv']
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'furo' # https://pradyunsg.me/furo/
html_title = project
html_sort_title = project
html_use_index = False
html_copy_source = False
html_static_path = ['_static']
html_extra_path = ['root']
html_theme_options = {
'light_logo': 'logo-light.png',
'dark_logo': 'logo-dark.png',
'sidebar_hide_name': True, # Logo has the name in it
'source_edit_link': github + '/blog/blob/master/docs/{filename}?plain=1',
'light_css_variables': {
},
'dark_css_variables': {
'color-brand-primary': '#00ff00',
},
}
# Change the sidebar to include fixed links
# https://pradyunsg.me/furo/customisation/sidebar/#making-changes
html_context = {
'sidebar_links': {
'GitHub': github,
},
'bg_theme': manifest['background_color'],
'fg_theme': manifest['theme_color'],
}
html_sidebars = {
'**': [
'sidebar/brand.html',
'sidebar-links.html',
'sidebar/search.html',
'sidebar/scroll-start.html',
'sidebar/navigation.html',
'sidebar/ethical-ads.html',
'sidebar/scroll-end.html',
'sidebar/variant-selector.html',
]
}