Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 1 | # Configuration file for the Sphinx documentation builder. |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 2 | # |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 3 | # For the full list of built-in configuration values, see the documentation: |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 4 | # https://www.sphinx-doc.org/en/master/usage/configuration.html |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 5 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 6 | # -- Project information ----------------------------------------------------- |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 7 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 8 | |
| 9 | project = 'NDN Packet Format Specification' |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 10 | copyright = '2013-2023, Named Data Networking Project' |
| 11 | author = 'Named Data Networking Project' |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 12 | |
| 13 | # The short X.Y version. |
| 14 | version = '0.3' |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 15 | # The full version, including alpha/beta/rc tags. |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 16 | release = version |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 17 | |
| 18 | |
| 19 | # -- General configuration --------------------------------------------------- |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 20 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 21 | |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 22 | needs_sphinx = '4.0' |
Davide Pesavento | 52c88cb | 2021-12-02 16:58:02 -0500 | [diff] [blame] | 23 | extensions = [] |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 24 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 25 | templates_path = ['_templates'] |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 26 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 27 | |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 28 | # Use ABNF syntax highlighting by default for code blocks. |
| 29 | highlight_language = 'abnf' |
| 30 | |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 31 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 32 | # -- Options for HTML output ------------------------------------------------- |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 33 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 34 | |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 35 | html_theme = 'furo' |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 36 | |
| 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". |
| 40 | html_static_path = ['_static'] |
| 41 | |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 42 | html_title = f'{project} v{version}' |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 43 | html_logo = '_static/ndn-logo.svg' |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 44 | html_last_updated_fmt = '' |
Davide Pesavento | 751939c | 2020-06-26 22:16:24 -0400 | [diff] [blame] | 45 | html_copy_source = False |
| 46 | html_show_sourcelink = False |
| 47 | |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 48 | html_theme_options = { |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 49 | 'light_css_variables': { |
| 50 | 'color-brand-primary': '#fd7800', |
| 51 | 'color-brand-content': '#fd7800', |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 52 | }, |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 53 | 'dark_css_variables': { |
| 54 | 'color-brand-primary': '#fd7800', |
| 55 | 'color-brand-content': '#fd7800', |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 56 | }, |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 57 | 'source_repository': 'https://github.com/named-data/NDN-packet-spec', |
| 58 | 'source_branch': 'master', |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 59 | } |
| 60 | |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 61 | pygments_style = 'tango' |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 62 | pygments_dark_style = 'material' |