blob: 99b993a1149cad759ac2dd5608cfdda123226c07 [file] [log] [blame]
Alexander Afanasyev49272f72014-04-06 21:49:46 -07001# -*- coding: utf-8 -*-
2#
Davide Pesavento0064c1d2018-03-03 18:43:53 -05003# NFD documentation build configuration file, created by
4# sphinx-quickstart on Wed Mar 7 19:23:56 2018.
Alexander Afanasyev49272f72014-04-06 21:49:46 -07005#
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 Shi15902ef2017-08-11 22:58:35 +000015import datetime
Alexander Afanasyev49272f72014-04-06 21:49:46 -070016import os
Junxiao Shi15902ef2017-08-11 22:58:35 +000017import sys
Alexander Afanasyev49272f72014-04-06 21:49:46 -070018
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 Afanasyev7c10b3b2015-01-20 12:24:27 -080022sys.path.insert(0, os.path.abspath('.'))
Alexander Afanasyev49272f72014-04-06 21:49:46 -070023
Davide Pesavento0064c1d2018-03-03 18:43:53 -050024
Alexander Afanasyev49272f72014-04-06 21:49:46 -070025# -- General configuration ------------------------------------------------
26
27# If your documentation needs a minimal Sphinx version, state it here.
Davide Pesavento0064c1d2018-03-03 18:43:53 -050028#
29# needs_sphinx = '1.0'
Alexander Afanasyev49272f72014-04-06 21:49:46 -070030
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.
34extensions = [
35 'sphinx.ext.todo',
Alexander Afanasyev687dba82015-09-27 15:32:58 -070036 'redmine_issue'
Alexander Afanasyev49272f72014-04-06 21:49:46 -070037]
38
Alexander Afanasyev20757882014-08-25 22:39:08 -070039def 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 Newberry3406dc92018-03-25 14:28:50 -070049if sys.version_info[0] >= 3:
50 addExtensionIfExists('sphinxcontrib.doxylink')
Alexander Afanasyev20757882014-08-25 22:39:08 -070051
Davide Pesavento0064c1d2018-03-03 18:43:53 -050052# sphinxcontrib.googleanalytics is currently not working with the latest version of Sphinx
53# if os.getenv('GOOGLE_ANALYTICS', None):
54# addExtensionIfExists('sphinxcontrib.googleanalytics')
Alexander Afanasyev20757882014-08-25 22:39:08 -070055
Alexander Afanasyev49272f72014-04-06 21:49:46 -070056# Add any paths that contain templates here, relative to this directory.
57templates_path = ['_templates']
58
Davide Pesavento0064c1d2018-03-03 18:43:53 -050059# The suffix(es) of source filenames.
60# You can specify multiple suffix as a list of string:
61#
62# source_suffix = ['.rst', '.md']
Alexander Afanasyev49272f72014-04-06 21:49:46 -070063source_suffix = '.rst'
64
Alexander Afanasyev49272f72014-04-06 21:49:46 -070065# The master toctree document.
66master_doc = 'index'
67
68# General information about the project.
69project = u'NFD - Named Data Networking Forwarding Daemon'
Junxiao Shi15902ef2017-08-11 22:58:35 +000070copyright = u'2014-%d, Named Data Networking Project' % datetime.date.today().year
Davide Pesavento0064c1d2018-03-03 18:43:53 -050071author = u'Named Data Networking Project'
Alexander Afanasyev49272f72014-04-06 21:49:46 -070072
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 Pesavento0064c1d2018-03-03 18:43:53 -050076#
77# The short X.Y version.
78# version = u''
79# The full version, including alpha/beta/rc tags.
80# release = u''
Alexander Afanasyev49272f72014-04-06 21:49:46 -070081
82# The language for content autogenerated by Sphinx. Refer to documentation
83# for a list of supported languages.
Davide Pesavento0064c1d2018-03-03 18:43:53 -050084#
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.
87language = None
Alexander Afanasyev49272f72014-04-06 21:49:46 -070088
89# List of patterns, relative to source directory, that match files and
90# directories to ignore when looking for source files.
Davide Pesavento0064c1d2018-03-03 18:43:53 -050091# This patterns also effect to html_static_path and html_extra_path
Alexander Afanasyev49272f72014-04-06 21:49:46 -070092exclude_patterns = []
93
Alexander Afanasyev49272f72014-04-06 21:49:46 -070094# The name of the Pygments (syntax highlighting) style to use.
95pygments_style = 'sphinx'
96
Davide Pesavento0064c1d2018-03-03 18:43:53 -050097# If true, `todo` and `todoList` produce output, else they produce nothing.
98todo_include_todos = False
Alexander Afanasyev49272f72014-04-06 21:49:46 -070099
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 Pesavento0064c1d2018-03-03 18:43:53 -0500105#
106# html_theme = 'alabaster'
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700107html_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 Pesavento0064c1d2018-03-03 18:43:53 -0500112#
113# html_theme_options = {}
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700114
115# Add any paths that contain custom themes here, relative to this directory.
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500116html_theme_path = ['.']
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700117
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".
121html_static_path = ['_static']
122
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700123
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500124# -- Options for HTMLHelp output ------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700125
126# Output file base name for HTML help builder.
127htmlhelp_basename = 'nfd-docs'
128
129
130# -- Options for LaTeX output ---------------------------------------------
131
132latex_elements = {
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500133 # The paper size ('letterpaper' or 'a4paper').
134 #
135 # 'papersize': 'letterpaper',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700136
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500137 # The font size ('10pt', '11pt' or '12pt').
138 #
139 # 'pointsize': '10pt',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700140
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500141 # Additional stuff for the LaTeX preamble.
142 #
143 # 'preamble': '',
144
145 # Latex figure (float) alignment
146 #
147 # 'figure_align': 'htbp',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700148}
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]).
153latex_documents = [
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500154 ('index', 'nfd-docs.tex', u'NFD - Named Data Networking Forwarding Daemon Documentation',
155 u'Named Data Networking Project', 'manual'),
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700156]
157
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700158
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).
163man_pages = [
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500164 ('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 Afanasyev49272f72014-04-06 21:49:46 -0700178]
179
180
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500181# -- 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)
186texinfo_documents = []
187
Alexander Afanasyev20757882014-08-25 22:39:08 -0700188
189doxylink = {
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500190 'nfd' : ('NFD.tag', 'doxygen/'),
Alexander Afanasyev20757882014-08-25 22:39:08 -0700191}
192
193if os.getenv('GOOGLE_ANALYTICS', None):
194 googleanalytics_id = os.environ['GOOGLE_ANALYTICS']
195 googleanalytics_enabled = True
Alexander Afanasyev7c10b3b2015-01-20 12:24:27 -0800196
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500197redmine_project_url = 'https://redmine.named-data.net/'