blob: ee23c5056131d14401e06786c187fab5bb538183 [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 Pesavento64fa0672023-01-15 23:02:24 -05006import sphinx
7
Davide Pesavento04af5f22020-06-21 22:02:47 -04008# -- Project information -----------------------------------------------------
Davide Pesaventod4f94a32022-09-15 18:06:07 -04009# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
Davide Pesavento04af5f22020-06-21 22:02:47 -040010
11project = 'NDN Packet Format Specification'
Davide Pesavento777ae612023-01-14 21:09:00 -050012copyright = '2013-2023, Named Data Networking Project'
13author = 'Named Data Networking Project'
Davide Pesavento04af5f22020-06-21 22:02:47 -040014
15# The short X.Y version.
16version = '0.3'
Davide Pesavento04af5f22020-06-21 22:02:47 -040017# The full version, including alpha/beta/rc tags.
Davide Pesavento777ae612023-01-14 21:09:00 -050018release = version
Davide Pesavento04af5f22020-06-21 22:02:47 -040019
20
21# -- General configuration ---------------------------------------------------
Davide Pesaventod4f94a32022-09-15 18:06:07 -040022# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Alexander Afanasyev772662a2013-11-21 23:22:40 +000023
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050024needs_sphinx = '4.0'
Davide Pesavento52c88cb2021-12-02 16:58:02 -050025extensions = []
Alexander Afanasyev772662a2013-11-21 23:22:40 +000026
Davide Pesavento04af5f22020-06-21 22:02:47 -040027templates_path = ['_templates']
Davide Pesavento04af5f22020-06-21 22:02:47 -040028exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
Alexander Afanasyev772662a2013-11-21 23:22:40 +000029
Davide Pesavento64fa0672023-01-15 23:02:24 -050030# User-Agent header sent with linkcheck HTTP requests.
31user_agent = f'Sphinx/{sphinx.__version__}'
32
Davide Pesavento777ae612023-01-14 21:09:00 -050033# Use ABNF syntax highlighting by default for code blocks.
34highlight_language = 'abnf'
35
Alexander Afanasyev772662a2013-11-21 23:22:40 +000036
Davide Pesavento04af5f22020-06-21 22:02:47 -040037# -- Options for HTML output -------------------------------------------------
Davide Pesaventod4f94a32022-09-15 18:06:07 -040038# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Alexander Afanasyev772662a2013-11-21 23:22:40 +000039
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050040html_theme = 'furo'
Alexander Afanasyev772662a2013-11-21 23:22:40 +000041
42# Add any paths that contain custom static files (such as style sheets) here,
43# relative to this directory. They are copied after the builtin static files,
44# so a file named "default.css" will overwrite the builtin "default.css".
45html_static_path = ['_static']
46
Davide Pesavento777ae612023-01-14 21:09:00 -050047html_title = f'{project} v{version}'
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050048html_logo = '_static/ndn-logo.svg'
Davide Pesavento777ae612023-01-14 21:09:00 -050049html_last_updated_fmt = ''
Davide Pesavento751939c2020-06-26 22:16:24 -040050html_copy_source = False
51html_show_sourcelink = False
52
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050053html_theme_options = {
Davide Pesaventod4f94a32022-09-15 18:06:07 -040054 'light_css_variables': {
55 'color-brand-primary': '#fd7800',
56 'color-brand-content': '#fd7800',
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050057 },
Davide Pesaventod4f94a32022-09-15 18:06:07 -040058 'dark_css_variables': {
59 'color-brand-primary': '#fd7800',
60 'color-brand-content': '#fd7800',
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050061 },
Davide Pesavento777ae612023-01-14 21:09:00 -050062 'source_repository': 'https://github.com/named-data/NDN-packet-spec',
63 'source_branch': 'master',
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050064}
65
Davide Pesavento777ae612023-01-14 21:09:00 -050066pygments_style = 'tango'
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050067pygments_dark_style = 'material'
Davide Pesavento16c9fd22023-01-17 22:08:10 -050068
69
70# -- Options for LaTeX output ------------------------------------------------
71# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-latex-output
72
73latex_documents = [
74 ('index', 'ndn-packet-spec.tex', project, author, 'manual')
75]