blob: ed4fc2342cd1793985e339a1266ca6c884d14f5d [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 Pesavento04af5f22020-06-21 22:02:47 -04003# This file only contains a selection of the most common options. For a full
4# list see the documentation:
5# https://www.sphinx-doc.org/en/master/usage/configuration.html
Alexander Afanasyev772662a2013-11-21 23:22:40 +00006
Davide Pesavento04af5f22020-06-21 22:02:47 -04007# -- Path setup --------------------------------------------------------------
Alexander Afanasyev772662a2013-11-21 23:22:40 +00008
9# If extensions (or modules to document with autodoc) are in another directory,
10# add these directories to sys.path here. If the directory is relative to the
11# documentation root, use os.path.abspath to make it absolute, like shown here.
Davide Pesavento04af5f22020-06-21 22:02:47 -040012#
13# import os
14# import sys
15# sys.path.insert(0, os.path.abspath('.'))
Alexander Afanasyev772662a2013-11-21 23:22:40 +000016
Davide Pesavento04af5f22020-06-21 22:02:47 -040017
18# -- Project information -----------------------------------------------------
19
20project = 'NDN Packet Format Specification'
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050021copyright = '2013-2022, Named Data Networking Project'
Davide Pesavento04af5f22020-06-21 22:02:47 -040022
23# The short X.Y version.
24version = '0.3'
25
26# The full version, including alpha/beta/rc tags.
27release = '0.3'
28
29
30# -- General configuration ---------------------------------------------------
Alexander Afanasyev772662a2013-11-21 23:22:40 +000031
32# If your documentation needs a minimal Sphinx version, state it here.
Davide Pesavento04af5f22020-06-21 22:02:47 -040033#
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050034needs_sphinx = '4.0'
Alexander Afanasyev772662a2013-11-21 23:22:40 +000035
Davide Pesavento04af5f22020-06-21 22:02:47 -040036# Add any Sphinx extension module names here, as strings. They can be
37# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
38# ones.
Davide Pesavento52c88cb2021-12-02 16:58:02 -050039extensions = []
Alexander Afanasyev772662a2013-11-21 23:22:40 +000040
41# The master toctree document.
42master_doc = 'index'
43
Davide Pesavento04af5f22020-06-21 22:02:47 -040044# Add any paths that contain templates here, relative to this directory.
45templates_path = ['_templates']
Alexander Afanasyev772662a2013-11-21 23:22:40 +000046
47# List of patterns, relative to source directory, that match files and
48# directories to ignore when looking for source files.
Davide Pesavento04af5f22020-06-21 22:02:47 -040049# This pattern also affects html_static_path and html_extra_path.
50exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
Alexander Afanasyev772662a2013-11-21 23:22:40 +000051
52
Davide Pesavento04af5f22020-06-21 22:02:47 -040053# -- Options for HTML output -------------------------------------------------
Alexander Afanasyev772662a2013-11-21 23:22:40 +000054
55# The theme to use for HTML and HTML Help pages. See the documentation for
56# a list of builtin themes.
Davide Pesavento04af5f22020-06-21 22:02:47 -040057#
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050058html_theme = 'furo'
Alexander Afanasyev772662a2013-11-21 23:22:40 +000059
60# Add any paths that contain custom static files (such as style sheets) here,
61# relative to this directory. They are copied after the builtin static files,
62# so a file named "default.css" will overwrite the builtin "default.css".
63html_static_path = ['_static']
64
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050065html_title = '{} {}'.format(project, version)
66html_logo = '_static/ndn-logo.svg'
Davide Pesavento751939c2020-06-26 22:16:24 -040067html_copy_source = False
68html_show_sourcelink = False
69
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050070html_theme_options = {
71 "light_css_variables": {
72 "color-brand-primary": "#fd7800",
73 "color-brand-content": "#fd7800",
74 },
75 "dark_css_variables": {
76 "color-brand-primary": "#fd7800",
77 "color-brand-content": "#fd7800",
78 },
79}
80
Davide Pesaventoec746762020-06-24 22:57:31 -040081# Use ABNF syntax highlighting by default for code blocks.
82highlight_language = 'abnf'
Davide Pesaventoacaccaf2022-03-06 19:00:06 -050083
84pygments_dark_style = 'material'