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 | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 10 | copyright = '2013-2022, Named Data Networking Project' |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 11 | |
| 12 | # The short X.Y version. |
| 13 | version = '0.3' |
| 14 | |
| 15 | # The full version, including alpha/beta/rc tags. |
| 16 | release = '0.3' |
| 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 | |
| 28 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 29 | # -- Options for HTML output ------------------------------------------------- |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 30 | # 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] | 31 | |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 32 | html_theme = 'furo' |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 33 | |
| 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". |
| 37 | html_static_path = ['_static'] |
| 38 | |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 39 | html_title = '{} {}'.format(project, version) |
| 40 | html_logo = '_static/ndn-logo.svg' |
Davide Pesavento | 751939c | 2020-06-26 22:16:24 -0400 | [diff] [blame] | 41 | html_copy_source = False |
| 42 | html_show_sourcelink = False |
| 43 | |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 44 | html_theme_options = { |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 45 | 'light_css_variables': { |
| 46 | 'color-brand-primary': '#fd7800', |
| 47 | 'color-brand-content': '#fd7800', |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 48 | }, |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 49 | 'dark_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 | }, |
| 53 | } |
| 54 | |
Davide Pesavento | ec74676 | 2020-06-24 22:57:31 -0400 | [diff] [blame] | 55 | # Use ABNF syntax highlighting by default for code blocks. |
| 56 | highlight_language = 'abnf' |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 57 | |
| 58 | pygments_dark_style = 'material' |