Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | # |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 3 | # NFD documentation build configuration file, created by |
| 4 | # sphinx-quickstart on Wed Mar 7 19:23:56 2018. |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 5 | # |
| 6 | # This file is execfile()d with the current directory set to its |
| 7 | # containing dir. |
| 8 | # |
| 9 | # Note that not all possible configuration values are present in this |
| 10 | # autogenerated file. |
| 11 | # |
| 12 | # All configuration values have a default; values that are commented out |
| 13 | # serve to show the default. |
| 14 | |
Junxiao Shi | 15902ef | 2017-08-11 22:58:35 +0000 | [diff] [blame] | 15 | import datetime |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 16 | import os |
Junxiao Shi | 15902ef | 2017-08-11 22:58:35 +0000 | [diff] [blame] | 17 | import sys |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 18 | |
| 19 | # If extensions (or modules to document with autodoc) are in another directory, |
| 20 | # add these directories to sys.path here. If the directory is relative to the |
| 21 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
Alexander Afanasyev | 7c10b3b | 2015-01-20 12:24:27 -0800 | [diff] [blame] | 22 | sys.path.insert(0, os.path.abspath('.')) |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 23 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 24 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 25 | # -- General configuration ------------------------------------------------ |
| 26 | |
| 27 | # If your documentation needs a minimal Sphinx version, state it here. |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 28 | # |
| 29 | # needs_sphinx = '1.0' |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 30 | |
| 31 | # Add any Sphinx extension module names here, as strings. They can be |
| 32 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 33 | # ones. |
| 34 | extensions = [ |
| 35 | 'sphinx.ext.todo', |
Alexander Afanasyev | 687dba8 | 2015-09-27 15:32:58 -0700 | [diff] [blame] | 36 | 'redmine_issue' |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 37 | ] |
| 38 | |
Alexander Afanasyev | 2075788 | 2014-08-25 22:39:08 -0700 | [diff] [blame] | 39 | def addExtensionIfExists(extension): |
| 40 | try: |
| 41 | __import__(extension) |
| 42 | extensions.append(extension) |
| 43 | except ImportError: |
| 44 | sys.stderr.write("Extension '%s' in not available. " |
| 45 | "Some documentation may not build correctly.\n" % extension) |
| 46 | sys.stderr.write("To install, use \n" |
| 47 | " sudo pip install %s\n" % extension.replace('.', '-')) |
| 48 | |
Eric Newberry | 3406dc9 | 2018-03-25 14:28:50 -0700 | [diff] [blame] | 49 | if sys.version_info[0] >= 3: |
| 50 | addExtensionIfExists('sphinxcontrib.doxylink') |
Alexander Afanasyev | 2075788 | 2014-08-25 22:39:08 -0700 | [diff] [blame] | 51 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 52 | # sphinxcontrib.googleanalytics is currently not working with the latest version of Sphinx |
| 53 | # if os.getenv('GOOGLE_ANALYTICS', None): |
| 54 | # addExtensionIfExists('sphinxcontrib.googleanalytics') |
Alexander Afanasyev | 2075788 | 2014-08-25 22:39:08 -0700 | [diff] [blame] | 55 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 56 | # Add any paths that contain templates here, relative to this directory. |
| 57 | templates_path = ['_templates'] |
| 58 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 59 | # The suffix(es) of source filenames. |
| 60 | # You can specify multiple suffix as a list of string: |
| 61 | # |
| 62 | # source_suffix = ['.rst', '.md'] |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 63 | source_suffix = '.rst' |
| 64 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 65 | # The master toctree document. |
| 66 | master_doc = 'index' |
| 67 | |
| 68 | # General information about the project. |
| 69 | project = u'NFD - Named Data Networking Forwarding Daemon' |
Junxiao Shi | 15902ef | 2017-08-11 22:58:35 +0000 | [diff] [blame] | 70 | copyright = u'2014-%d, Named Data Networking Project' % datetime.date.today().year |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 71 | author = u'Named Data Networking Project' |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 72 | |
| 73 | # The version info for the project you're documenting, acts as replacement for |
| 74 | # |version| and |release|, also used in various other places throughout the |
| 75 | # built documents. |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 76 | # |
| 77 | # The short X.Y version. |
| 78 | # version = u'' |
| 79 | # The full version, including alpha/beta/rc tags. |
| 80 | # release = u'' |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 81 | |
| 82 | # The language for content autogenerated by Sphinx. Refer to documentation |
| 83 | # for a list of supported languages. |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 84 | # |
| 85 | # This is also used if you do content translation via gettext catalogs. |
| 86 | # Usually you set "language" from the command line for these cases. |
| 87 | language = None |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 88 | |
| 89 | # List of patterns, relative to source directory, that match files and |
| 90 | # directories to ignore when looking for source files. |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 91 | # This patterns also effect to html_static_path and html_extra_path |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 92 | exclude_patterns = [] |
| 93 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 94 | # The name of the Pygments (syntax highlighting) style to use. |
| 95 | pygments_style = 'sphinx' |
| 96 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 97 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
| 98 | todo_include_todos = False |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 99 | |
| 100 | |
| 101 | # -- Options for HTML output ---------------------------------------------- |
| 102 | |
| 103 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 104 | # a list of builtin themes. |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 105 | # |
| 106 | # html_theme = 'alabaster' |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 107 | html_theme = 'named_data_theme' |
| 108 | |
| 109 | # Theme options are theme-specific and customize the look and feel of a theme |
| 110 | # further. For a list of options available for each theme, see the |
| 111 | # documentation. |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 112 | # |
| 113 | # html_theme_options = {} |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 114 | |
| 115 | # Add any paths that contain custom themes here, relative to this directory. |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 116 | html_theme_path = ['.'] |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 117 | |
| 118 | # Add any paths that contain custom static files (such as style sheets) here, |
| 119 | # relative to this directory. They are copied after the builtin static files, |
| 120 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 121 | html_static_path = ['_static'] |
| 122 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 123 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 124 | # -- Options for HTMLHelp output ------------------------------------------ |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 125 | |
| 126 | # Output file base name for HTML help builder. |
| 127 | htmlhelp_basename = 'nfd-docs' |
| 128 | |
| 129 | |
| 130 | # -- Options for LaTeX output --------------------------------------------- |
| 131 | |
| 132 | latex_elements = { |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 133 | # The paper size ('letterpaper' or 'a4paper'). |
| 134 | # |
| 135 | # 'papersize': 'letterpaper', |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 136 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 137 | # The font size ('10pt', '11pt' or '12pt'). |
| 138 | # |
| 139 | # 'pointsize': '10pt', |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 140 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 141 | # Additional stuff for the LaTeX preamble. |
| 142 | # |
| 143 | # 'preamble': '', |
| 144 | |
| 145 | # Latex figure (float) alignment |
| 146 | # |
| 147 | # 'figure_align': 'htbp', |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 148 | } |
| 149 | |
| 150 | # Grouping the document tree into LaTeX files. List of tuples |
| 151 | # (source start file, target name, title, |
| 152 | # author, documentclass [howto, manual, or own class]). |
| 153 | latex_documents = [ |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 154 | ('index', 'nfd-docs.tex', u'NFD - Named Data Networking Forwarding Daemon Documentation', |
| 155 | u'Named Data Networking Project', 'manual'), |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 156 | ] |
| 157 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 158 | |
| 159 | # -- Options for manual page output --------------------------------------- |
| 160 | |
| 161 | # One entry per manual page. List of tuples |
| 162 | # (source start file, name, description, authors, manual section). |
| 163 | man_pages = [ |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 164 | ('manpages/nfd', 'nfd', u'Named Data Networking Forwarding Daemon', '', 1), |
| 165 | ('manpages/nfdc', 'nfdc', u'Interact with NFD management', '', 1), |
| 166 | ('manpages/nfdc-status', 'nfdc-status', u'Show NFD status', '', 1), |
| 167 | ('manpages/nfdc-face', 'nfdc-face', u'Show and manipulate NFD faces', '', 1), |
| 168 | ('manpages/nfdc-route', 'nfdc-route', u'Show and manipulate NFD routes', '', 1), |
| 169 | ('manpages/nfdc-cs', 'nfdc-cs', u'Show and manipulate NFD Content Store', '', 1), |
| 170 | ('manpages/nfdc-strategy', 'nfdc-strategy', u'Show and manipulate NFD strategy choices', '', 1), |
| 171 | ('manpages/nfd-status', 'nfd-status', u'Comprehensive report of NFD status', '', 1), |
| 172 | ('manpages/nfd-status-http-server', 'nfd-status-http-server', u'NFD status HTTP server', '', 1), |
| 173 | ('manpages/ndn-autoconfig-server', 'ndn-autoconfig-server', u'NDN auto-configuration server', '', 1), |
| 174 | ('manpages/ndn-autoconfig', 'ndn-autoconfig', u'NDN auto-configuration client', '', 1), |
| 175 | ('manpages/ndn-autoconfig.conf', 'ndn-autoconfig.conf', u'NDN auto-configuration client configuration file', '', 5), |
| 176 | ('manpages/nfd-autoreg', 'nfd-autoreg', u'NFD auto-registration server', '', 1), |
| 177 | ('manpages/nfd-asf-strategy', 'nfd-asf-strategy', u'NFD ASF strategy', '', 7), |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 178 | ] |
| 179 | |
| 180 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 181 | # -- Options for Texinfo output ------------------------------------------- |
| 182 | |
| 183 | # Grouping the document tree into Texinfo files. List of tuples |
| 184 | # (source start file, target name, title, author, |
| 185 | # dir menu entry, description, category) |
| 186 | texinfo_documents = [] |
| 187 | |
Alexander Afanasyev | 2075788 | 2014-08-25 22:39:08 -0700 | [diff] [blame] | 188 | |
| 189 | doxylink = { |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 190 | 'nfd' : ('NFD.tag', 'doxygen/'), |
Alexander Afanasyev | 2075788 | 2014-08-25 22:39:08 -0700 | [diff] [blame] | 191 | } |
| 192 | |
| 193 | if os.getenv('GOOGLE_ANALYTICS', None): |
| 194 | googleanalytics_id = os.environ['GOOGLE_ANALYTICS'] |
| 195 | googleanalytics_enabled = True |
Alexander Afanasyev | 7c10b3b | 2015-01-20 12:24:27 -0800 | [diff] [blame] | 196 | |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame] | 197 | redmine_project_url = 'https://redmine.named-data.net/' |