blob: e1e0dcc9d96b5af25516416cd721ab265c91a233 [file] [log] [blame]
Davide Pesavento04af5f22020-06-21 22:02:47 -04001# Configuration file for the Sphinx documentation builder.
Alexander Afanasyev772662a2013-11-21 23:22:40 +00002#
Davide Pesaventod4f94a32022-09-15 18:06:07 -04003# For the full list of built-in configuration values, see the documentation:
Davide Pesavento04af5f22020-06-21 22:02:47 -04004# https://www.sphinx-doc.org/en/master/usage/configuration.html
Alexander Afanasyev772662a2013-11-21 23:22:40 +00005
Davide Pesavento04af5f22020-06-21 22:02:47 -04006# -- Project information -----------------------------------------------------
Davide Pesaventod4f94a32022-09-15 18:06:07 -04007# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
Davide Pesavento04af5f22020-06-21 22:02:47 -04008
9project = 'NDN Packet Format Specification'
Davide Pesavento777ae612023-01-14 21:09:00 -050010copyright = '2013-2023, Named Data Networking Project'
11author = 'Named Data Networking Project'
Davide Pesavento04af5f22020-06-21 22:02:47 -040012
13# The short X.Y version.
14version = '0.3'
Davide Pesavento04af5f22020-06-21 22:02:47 -040015# The full version, including alpha/beta/rc tags.
Davide Pesavento777ae612023-01-14 21:09:00 -050016release = version
Davide Pesavento04af5f22020-06-21 22:02:47 -040017
18
19# -- General configuration ---------------------------------------------------
Davide Pesaventod4f94a32022-09-15 18:06:07 -040020# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Alexander Afanasyev772662a2013-11-21 23:22:40 +000021
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050022needs_sphinx = '4.0'
Davide Pesavento52c88cb2021-12-02 16:58:02 -050023extensions = []
Alexander Afanasyev772662a2013-11-21 23:22:40 +000024
Davide Pesavento04af5f22020-06-21 22:02:47 -040025templates_path = ['_templates']
Davide Pesavento04af5f22020-06-21 22:02:47 -040026exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
Alexander Afanasyev772662a2013-11-21 23:22:40 +000027
Davide Pesavento777ae612023-01-14 21:09:00 -050028# Use ABNF syntax highlighting by default for code blocks.
29highlight_language = 'abnf'
30
Alexander Afanasyev772662a2013-11-21 23:22:40 +000031
Davide Pesavento04af5f22020-06-21 22:02:47 -040032# -- Options for HTML output -------------------------------------------------
Davide Pesaventod4f94a32022-09-15 18:06:07 -040033# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Alexander Afanasyev772662a2013-11-21 23:22:40 +000034
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050035html_theme = 'furo'
Alexander Afanasyev772662a2013-11-21 23:22:40 +000036
37# Add any paths that contain custom static files (such as style sheets) here,
38# relative to this directory. They are copied after the builtin static files,
39# so a file named "default.css" will overwrite the builtin "default.css".
40html_static_path = ['_static']
41
Davide Pesavento777ae612023-01-14 21:09:00 -050042html_title = f'{project} v{version}'
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050043html_logo = '_static/ndn-logo.svg'
Davide Pesavento777ae612023-01-14 21:09:00 -050044html_last_updated_fmt = ''
Davide Pesavento751939c2020-06-26 22:16:24 -040045html_copy_source = False
46html_show_sourcelink = False
47
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050048html_theme_options = {
Davide Pesaventod4f94a32022-09-15 18:06:07 -040049 'light_css_variables': {
50 'color-brand-primary': '#fd7800',
51 'color-brand-content': '#fd7800',
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050052 },
Davide Pesaventod4f94a32022-09-15 18:06:07 -040053 'dark_css_variables': {
54 'color-brand-primary': '#fd7800',
55 'color-brand-content': '#fd7800',
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050056 },
Davide Pesavento777ae612023-01-14 21:09:00 -050057 'source_repository': 'https://github.com/named-data/NDN-packet-spec',
58 'source_branch': 'master',
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050059}
60
Davide Pesavento777ae612023-01-14 21:09:00 -050061pygments_style = 'tango'
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050062pygments_dark_style = 'material'