Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 1 | # Configuration file for the Sphinx documentation builder. |
| 2 | # |
Davide Pesavento | 750d040 | 2025-02-25 16:50:50 -0500 | [diff] [blame^] | 3 | # For the full list of built-in configuration values, see the documentation: |
Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 4 | # https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 5 | |
| 6 | # -- Path setup -------------------------------------------------------------- |
| 7 | |
| 8 | # If extensions (or modules to document with autodoc) are in another directory, |
| 9 | # add these directories to sys.path here. If the directory is relative to the |
| 10 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
| 11 | # |
| 12 | # import os |
| 13 | # import sys |
| 14 | # sys.path.insert(0, os.path.abspath('.')) |
| 15 | from datetime import datetime |
| 16 | from minindn import __version__ |
| 17 | |
| 18 | # -- Project information ----------------------------------------------------- |
Davide Pesavento | 750d040 | 2025-02-25 16:50:50 -0500 | [diff] [blame^] | 19 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 20 | |
| 21 | project = 'Mini-NDN' |
| 22 | copyright = '2015-{}, Mini-NDN. This research is partially supported by NSF.'.format(datetime.now().year) |
| 23 | author = 'Mini-NDN' |
| 24 | |
Davide Pesavento | 750d040 | 2025-02-25 16:50:50 -0500 | [diff] [blame^] | 25 | # The short X.Y version. |
Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 26 | version = __version__ |
| 27 | |
Davide Pesavento | 750d040 | 2025-02-25 16:50:50 -0500 | [diff] [blame^] | 28 | # The full version, including alpha/beta/rc tags. |
| 29 | release = __version__ |
| 30 | |
| 31 | |
Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 32 | # -- General configuration --------------------------------------------------- |
Davide Pesavento | 750d040 | 2025-02-25 16:50:50 -0500 | [diff] [blame^] | 33 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 34 | |
| 35 | # Add any Sphinx extension module names here, as strings. They can be |
| 36 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 37 | # ones. |
| 38 | extensions = [ |
Davide Pesavento | 750d040 | 2025-02-25 16:50:50 -0500 | [diff] [blame^] | 39 | 'sphinx.ext.extlinks', |
| 40 | 'sphinx.ext.todo', |
Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 41 | ] |
| 42 | |
| 43 | # Add any paths that contain templates here, relative to this directory. |
| 44 | templates_path = ['_templates'] |
| 45 | |
| 46 | # List of patterns, relative to source directory, that match files and |
| 47 | # directories to ignore when looking for source files. |
| 48 | # This pattern also affects html_static_path and html_extra_path. |
| 49 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 50 | |
| 51 | |
| 52 | # -- Options for HTML output ------------------------------------------------- |
Davide Pesavento | 750d040 | 2025-02-25 16:50:50 -0500 | [diff] [blame^] | 53 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 54 | |
| 55 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 56 | # a list of builtin themes. |
| 57 | # |
| 58 | html_theme = 'sphinx_rtd_theme' |
| 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". |
Saurab Dulal | 576a419 | 2020-08-25 00:55:22 -0500 | [diff] [blame] | 63 | html_static_path = ['_static'] |
| 64 | |
| 65 | # Need to specify the line below if custom conf.py |
| 66 | # https://github.com/readthedocs/readthedocs.org/issues/2569 |
| 67 | # https://stackoverflow.com/questions/56336234/build-fail-sphinx-error-contents-rst-not-found |
| 68 | master_doc = 'index' |
Davide Pesavento | 750d040 | 2025-02-25 16:50:50 -0500 | [diff] [blame^] | 69 | |
| 70 | |
| 71 | # -- Misc options ------------------------------------------------------------ |
| 72 | |
| 73 | extlinks = { |
| 74 | 'issue': ('https://redmine.named-data.net/issues/%s', 'issue #%s'), |
| 75 | } |