Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 1 | # Configuration file for the Sphinx documentation builder. |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 2 | # |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 3 | # This file only contains a selection of the most common options. For a full |
| 4 | # list see the documentation: |
Davide Pesavento | 9f6a7d9 | 2020-10-06 15:21:48 -0400 | [diff] [blame] | 5 | # https://www.sphinx-doc.org/en/master/usage/configuration.html |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 6 | |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 7 | # -- Path setup -------------------------------------------------------------- |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [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 | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 12 | # |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 13 | # import os |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 14 | import sys |
| 15 | # sys.path.insert(0, os.path.abspath('.')) |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 16 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 17 | |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 18 | # -- Project information ----------------------------------------------------- |
| 19 | |
| 20 | project = u'Named Data Networking Forwarding Daemon (NFD)' |
Davide Pesavento | c52cd5e | 2022-03-05 20:40:54 -0500 | [diff] [blame] | 21 | copyright = u'Copyright © 2014-2022 Named Data Networking Project.' |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 22 | author = u'Named Data Networking Project' |
| 23 | |
Davide Pesavento | 9f6a7d9 | 2020-10-06 15:21:48 -0400 | [diff] [blame] | 24 | # The short X.Y version. |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 25 | #version = '' |
| 26 | |
Davide Pesavento | 9f6a7d9 | 2020-10-06 15:21:48 -0400 | [diff] [blame] | 27 | # The full version, including alpha/beta/rc tags. |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 28 | #release = '' |
| 29 | |
| 30 | # There are two options for replacing |today|: either, you set today to some |
| 31 | # non-false value, then it is used: |
| 32 | #today = '' |
| 33 | # Else, today_fmt is used as the format for a strftime call. |
| 34 | today_fmt = '%Y-%m-%d' |
| 35 | |
| 36 | |
| 37 | # -- General configuration --------------------------------------------------- |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 38 | |
| 39 | # If your documentation needs a minimal Sphinx version, state it here. |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 40 | # |
Davide Pesavento | 9f6a7d9 | 2020-10-06 15:21:48 -0400 | [diff] [blame] | 41 | needs_sphinx = '1.3' |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 42 | |
| 43 | # Add any Sphinx extension module names here, as strings. They can be |
| 44 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 45 | # ones. |
| 46 | extensions = [ |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 47 | 'sphinx.ext.extlinks', |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 48 | 'sphinx.ext.todo', |
| 49 | ] |
| 50 | |
Alexander Afanasyev | 2075788 | 2014-08-25 22:39:08 -0700 | [diff] [blame] | 51 | def addExtensionIfExists(extension): |
| 52 | try: |
| 53 | __import__(extension) |
| 54 | extensions.append(extension) |
| 55 | except ImportError: |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 56 | sys.stderr.write("Extension '%s' not found. " |
Alexander Afanasyev | 2075788 | 2014-08-25 22:39:08 -0700 | [diff] [blame] | 57 | "Some documentation may not build correctly.\n" % extension) |
Alexander Afanasyev | 2075788 | 2014-08-25 22:39:08 -0700 | [diff] [blame] | 58 | |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 59 | addExtensionIfExists('sphinxcontrib.doxylink') |
Alexander Afanasyev | 2075788 | 2014-08-25 22:39:08 -0700 | [diff] [blame] | 60 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 61 | # The master toctree document. |
| 62 | master_doc = 'index' |
| 63 | |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 64 | # Add any paths that contain templates here, relative to this directory. |
| 65 | templates_path = ['_templates'] |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 66 | |
| 67 | # List of patterns, relative to source directory, that match files and |
| 68 | # directories to ignore when looking for source files. |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 69 | # This pattern also affects html_static_path and html_extra_path. |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 70 | exclude_patterns = [] |
| 71 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 72 | |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 73 | # -- Options for HTML output ------------------------------------------------- |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 74 | |
| 75 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 76 | # a list of builtin themes. |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 77 | # |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 78 | html_theme = 'named_data_theme' |
| 79 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 80 | # Add any paths that contain custom themes here, relative to this directory. |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 81 | html_theme_path = ['.'] |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 82 | |
| 83 | # Add any paths that contain custom static files (such as style sheets) here, |
| 84 | # relative to this directory. They are copied after the builtin static files, |
| 85 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 86 | html_static_path = ['_static'] |
| 87 | |
Davide Pesavento | c0c0893 | 2020-10-07 00:26:25 -0400 | [diff] [blame] | 88 | html_copy_source = False |
| 89 | html_show_sourcelink = False |
| 90 | |
Davide Pesavento | 9f6a7d9 | 2020-10-06 15:21:48 -0400 | [diff] [blame] | 91 | # Disable syntax highlighting of code blocks by default. |
| 92 | highlight_language = 'none' |
| 93 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 94 | |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 95 | # -- Options for LaTeX output ------------------------------------------------ |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 96 | |
| 97 | latex_elements = { |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 98 | # The paper size ('letterpaper' or 'a4paper'). |
| 99 | # |
| 100 | # 'papersize': 'letterpaper', |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 101 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 102 | # The font size ('10pt', '11pt' or '12pt'). |
| 103 | # |
| 104 | # 'pointsize': '10pt', |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 105 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 106 | # Additional stuff for the LaTeX preamble. |
| 107 | # |
| 108 | # 'preamble': '', |
| 109 | |
| 110 | # Latex figure (float) alignment |
| 111 | # |
| 112 | # 'figure_align': 'htbp', |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 113 | } |
| 114 | |
| 115 | # Grouping the document tree into LaTeX files. List of tuples |
| 116 | # (source start file, target name, title, |
| 117 | # author, documentclass [howto, manual, or own class]). |
| 118 | latex_documents = [ |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 119 | ('index', 'nfd-docs.tex', u'Named Data Networking Forwarding Daemon (NFD)', |
| 120 | author, 'manual'), |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 121 | ] |
| 122 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 123 | |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 124 | # -- Options for manual page output ------------------------------------------ |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 125 | |
| 126 | # One entry per manual page. List of tuples |
| 127 | # (source start file, name, description, authors, manual section). |
| 128 | man_pages = [ |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 129 | ('manpages/nfd', 'nfd', 'the Named Data Networking Forwarding Daemon', [], 1), |
| 130 | ('manpages/nfdc', 'nfdc', 'interact with NFD management from the command line', [], 1), |
| 131 | ('manpages/nfdc-status', 'nfdc-status', 'show NFD status', [], 1), |
| 132 | ('manpages/nfdc-face', 'nfdc-face', 'show and manipulate NFD\'s faces', [], 1), |
| 133 | ('manpages/nfdc-route', 'nfdc-route', 'show and manipulate NFD\'s routes', [], 1), |
| 134 | ('manpages/nfdc-cs', 'nfdc-cs', 'show and manipulate NFD\'s Content Store', [], 1), |
| 135 | ('manpages/nfdc-strategy', 'nfdc-strategy', 'show and manipulate NFD\'s strategy choices', [], 1), |
| 136 | ('manpages/nfd-status', 'nfd-status', 'show a comprehensive report of NFD\'s status', [], 1), |
| 137 | ('manpages/nfd-status-http-server', 'nfd-status-http-server', 'NFD status HTTP server', [], 1), |
| 138 | ('manpages/ndn-autoconfig-server', 'ndn-autoconfig-server', 'auto-configuration server for NDN', [], 1), |
| 139 | ('manpages/ndn-autoconfig', 'ndn-autoconfig', 'auto-configuration client for NDN', [], 1), |
| 140 | ('manpages/ndn-autoconfig.conf', 'ndn-autoconfig.conf', 'configuration file for ndn-autoconfig', [], 5), |
| 141 | ('manpages/nfd-autoreg', 'nfd-autoreg', 'NFD automatic prefix registration daemon', [], 1), |
| 142 | ('manpages/nfd-asf-strategy', 'nfd-asf-strategy', 'NFD ASF strategy', [], 7), |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 143 | ] |
| 144 | |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 145 | # If true, show URL addresses after external links. |
| 146 | #man_show_urls = True |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 147 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 148 | |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 149 | # -- Custom options ---------------------------------------------------------- |
Alexander Afanasyev | 2075788 | 2014-08-25 22:39:08 -0700 | [diff] [blame] | 150 | |
| 151 | doxylink = { |
Davide Pesavento | 08b91c8 | 2019-04-13 19:42:10 -0400 | [diff] [blame] | 152 | 'nfd': ('NFD.tag', 'doxygen/'), |
| 153 | } |
| 154 | |
| 155 | extlinks = { |
| 156 | 'issue': ('https://redmine.named-data.net/issues/%s', 'issue #'), |
Alexander Afanasyev | 2075788 | 2014-08-25 22:39:08 -0700 | [diff] [blame] | 157 | } |