blob: 25e80e526a0cf5cc1134be70d40162acf72ad2c3 [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 Pesaventoacaccaf2022-03-06 19:00:06 -050010copyright = '2013-2022, Named Data Networking Project'
Davide Pesavento04af5f22020-06-21 22:02:47 -040011
12# The short X.Y version.
13version = '0.3'
14
15# The full version, including alpha/beta/rc tags.
16release = '0.3'
17
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
28
Davide Pesavento04af5f22020-06-21 22:02:47 -040029# -- Options for HTML output -------------------------------------------------
Davide Pesaventod4f94a32022-09-15 18:06:07 -040030# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Alexander Afanasyev772662a2013-11-21 23:22:40 +000031
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050032html_theme = 'furo'
Alexander Afanasyev772662a2013-11-21 23:22:40 +000033
34# Add any paths that contain custom static files (such as style sheets) here,
35# relative to this directory. They are copied after the builtin static files,
36# so a file named "default.css" will overwrite the builtin "default.css".
37html_static_path = ['_static']
38
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050039html_title = '{} {}'.format(project, version)
40html_logo = '_static/ndn-logo.svg'
Davide Pesavento751939c2020-06-26 22:16:24 -040041html_copy_source = False
42html_show_sourcelink = False
43
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050044html_theme_options = {
Davide Pesaventod4f94a32022-09-15 18:06:07 -040045 'light_css_variables': {
46 'color-brand-primary': '#fd7800',
47 'color-brand-content': '#fd7800',
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050048 },
Davide Pesaventod4f94a32022-09-15 18:06:07 -040049 'dark_css_variables': {
50 'color-brand-primary': '#fd7800',
51 'color-brand-content': '#fd7800',
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050052 },
53}
54
Davide Pesaventoec746762020-06-24 22:57:31 -040055# Use ABNF syntax highlighting by default for code blocks.
56highlight_language = 'abnf'
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050057
58pygments_dark_style = 'material'