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 | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 3 | # 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 Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 6 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 7 | # -- Path setup -------------------------------------------------------------- |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 8 | |
| 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 Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 12 | # |
| 13 | # import os |
| 14 | # import sys |
| 15 | # sys.path.insert(0, os.path.abspath('.')) |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 16 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 17 | |
| 18 | # -- Project information ----------------------------------------------------- |
| 19 | |
| 20 | project = 'NDN Packet Format Specification' |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame^] | 21 | copyright = '2013-2022, Named Data Networking Project' |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 22 | |
| 23 | # The short X.Y version. |
| 24 | version = '0.3' |
| 25 | |
| 26 | # The full version, including alpha/beta/rc tags. |
| 27 | release = '0.3' |
| 28 | |
| 29 | |
| 30 | # -- General configuration --------------------------------------------------- |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 31 | |
| 32 | # If your documentation needs a minimal Sphinx version, state it here. |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 33 | # |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame^] | 34 | needs_sphinx = '4.0' |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 35 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 36 | # 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 Pesavento | 52c88cb | 2021-12-02 16:58:02 -0500 | [diff] [blame] | 39 | extensions = [] |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 40 | |
| 41 | # The master toctree document. |
| 42 | master_doc = 'index' |
| 43 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 44 | # Add any paths that contain templates here, relative to this directory. |
| 45 | templates_path = ['_templates'] |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 46 | |
| 47 | # List of patterns, relative to source directory, that match files and |
| 48 | # directories to ignore when looking for source files. |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 49 | # This pattern also affects html_static_path and html_extra_path. |
| 50 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 51 | |
| 52 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 53 | # -- Options for HTML output ------------------------------------------------- |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 54 | |
| 55 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 56 | # a list of builtin themes. |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 57 | # |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame^] | 58 | html_theme = 'furo' |
Alexander Afanasyev | 772662a | 2013-11-21 23:22:40 +0000 | [diff] [blame] | 59 | |
| 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". |
| 63 | html_static_path = ['_static'] |
| 64 | |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame^] | 65 | html_title = '{} {}'.format(project, version) |
| 66 | html_logo = '_static/ndn-logo.svg' |
Davide Pesavento | 751939c | 2020-06-26 22:16:24 -0400 | [diff] [blame] | 67 | html_copy_source = False |
| 68 | html_show_sourcelink = False |
| 69 | |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame^] | 70 | html_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 Pesavento | ec74676 | 2020-06-24 22:57:31 -0400 | [diff] [blame] | 81 | # Use ABNF syntax highlighting by default for code blocks. |
| 82 | highlight_language = 'abnf' |
Davide Pesavento | acaccaf | 2022-03-06 19:00:06 -0500 | [diff] [blame^] | 83 | |
| 84 | pygments_dark_style = 'material' |