-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconf.py
75 lines (56 loc) · 2.25 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 sphinx
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'NDN Packet Format Specification'
copyright = '2013-2024, Named Data Networking Project'
author = 'Named Data Networking Project'
# The short X.Y version.
version = '0.3'
# The full version, including alpha/beta/rc tags.
release = version
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
needs_sphinx = '4.0'
extensions = []
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# User-Agent header sent with linkcheck HTTP requests.
user_agent = f'Sphinx/{sphinx.__version__}'
# Use ABNF syntax highlighting by default for code blocks.
highlight_language = 'abnf'
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'furo'
html_title = f'{project} v{version}'
html_logo = 'ndn-logo.svg'
html_last_updated_fmt = ''
html_copy_source = False
html_show_sourcelink = False
html_theme_options = {
'light_css_variables': {
'color-brand-primary': '#bc4010',
'color-brand-content': '#c85000',
'color-brand-visited': '#c85000',
},
'dark_css_variables': {
'color-brand-primary': '#fd861a',
'color-brand-content': '#f87e00',
'color-brand-visited': '#f87e00',
},
'source_repository': 'https://github.com/named-data/NDN-packet-spec',
'source_branch': 'master',
}
pygments_style = 'tango'
pygments_dark_style = 'material'
# -- Options for LaTeX output ------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-latex-output
latex_documents = [
('index', 'ndn-packet-spec.tex', project, author, 'manual')
]
latex_logo = 'ndn-logo.pdf'
latex_show_pagerefs = True
# latex_show_urls = 'footnote'