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 | 64fa067 | 2023-01-15 23:02:24 -0500 | [diff] [blame] | 6 | import sphinx |
| 7 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 8 | # -- Project information ----------------------------------------------------- |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 9 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 10 | |
| 11 | project = 'NDN Packet Format Specification' |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame] | 12 | copyright = '2013-2023, Named Data Networking Project' |
| 13 | author = 'Named Data Networking Project' |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 14 | |
| 15 | # The short X.Y version. |
| 16 | version = '0.3' |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 17 | # The full version, including alpha/beta/rc tags. |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame] | 18 | release = version |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 19 | |
| 20 | |
| 21 | # -- General configuration --------------------------------------------------- |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 22 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 23 | |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 24 | needs_sphinx = '4.0' |
Davide Pesavento | 52c88cb | 2021-12-02 16:58:02 -0500 | [diff] [blame] | 25 | extensions = [] |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 26 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 27 | templates_path = ['_templates'] |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 28 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 29 | |
Davide Pesavento | 64fa067 | 2023-01-15 23:02:24 -0500 | [diff] [blame] | 30 | # User-Agent header sent with linkcheck HTTP requests. |
| 31 | user_agent = f'Sphinx/{sphinx.__version__}' |
| 32 | |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame] | 33 | # Use ABNF syntax highlighting by default for code blocks. |
| 34 | highlight_language = 'abnf' |
| 35 | |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 36 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 37 | # -- Options for HTML output ------------------------------------------------- |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 38 | # 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] | 39 | |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 40 | html_theme = 'furo' |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 41 | |
| 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". |
| 45 | html_static_path = ['_static'] |
| 46 | |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame] | 47 | html_title = f'{project} v{version}' |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 48 | html_logo = '_static/ndn-logo.svg' |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame] | 49 | html_last_updated_fmt = '' |
Davide Pesavento | 751939c | 2020-06-26 22:16:24 -0400 | [diff] [blame] | 50 | html_copy_source = False |
| 51 | html_show_sourcelink = False |
| 52 | |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 53 | html_theme_options = { |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 54 | 'light_css_variables': { |
| 55 | 'color-brand-primary': '#fd7800', |
| 56 | 'color-brand-content': '#fd7800', |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 57 | }, |
Davide Pesavento | d4f94a3 | 2022-09-15 18:06:07 -0400 | [diff] [blame] | 58 | 'dark_css_variables': { |
| 59 | 'color-brand-primary': '#fd7800', |
| 60 | 'color-brand-content': '#fd7800', |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 61 | }, |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame] | 62 | 'source_repository': 'https://github.com/named-data/NDN-packet-spec', |
| 63 | 'source_branch': 'master', |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 64 | } |
| 65 | |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame] | 66 | pygments_style = 'tango' |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame] | 67 | pygments_dark_style = 'material' |
Davide Pesavento | 16c9fd2 | 2023-01-17 22:08:10 -0500 | [diff] [blame] | 68 | |
| 69 | |
| 70 | # -- Options for LaTeX output ------------------------------------------------ |
| 71 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-latex-output |
| 72 | |
| 73 | latex_documents = [ |
| 74 | ('index', 'ndn-packet-spec.tex', project, author, 'manual') |
| 75 | ] |