blob: 0e7d000468f5bac2fb91a5f589d1c6af7dd78358 [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
49addExtensionIfExists('sphinxcontrib.doxylink')
50
Davide Pesavento0064c1d2018-03-03 18:43:53 -050051# sphinxcontrib.googleanalytics is currently not working with the latest version of Sphinx
52# if os.getenv('GOOGLE_ANALYTICS', None):
53# addExtensionIfExists('sphinxcontrib.googleanalytics')
Alexander Afanasyev20757882014-08-25 22:39:08 -070054
Alexander Afanasyev49272f72014-04-06 21:49:46 -070055# Add any paths that contain templates here, relative to this directory.
56templates_path = ['_templates']
57
Davide Pesavento0064c1d2018-03-03 18:43:53 -050058# The suffix(es) of source filenames.
59# You can specify multiple suffix as a list of string:
60#
61# source_suffix = ['.rst', '.md']
Alexander Afanasyev49272f72014-04-06 21:49:46 -070062source_suffix = '.rst'
63
Alexander Afanasyev49272f72014-04-06 21:49:46 -070064# The master toctree document.
65master_doc = 'index'
66
67# General information about the project.
68project = u'NFD - Named Data Networking Forwarding Daemon'
Junxiao Shi15902ef2017-08-11 22:58:35 +000069copyright = u'2014-%d, Named Data Networking Project' % datetime.date.today().year
Davide Pesavento0064c1d2018-03-03 18:43:53 -050070author = u'Named Data Networking Project'
Alexander Afanasyev49272f72014-04-06 21:49:46 -070071
72# The version info for the project you're documenting, acts as replacement for
73# |version| and |release|, also used in various other places throughout the
74# built documents.
Davide Pesavento0064c1d2018-03-03 18:43:53 -050075#
76# The short X.Y version.
77# version = u''
78# The full version, including alpha/beta/rc tags.
79# release = u''
Alexander Afanasyev49272f72014-04-06 21:49:46 -070080
81# The language for content autogenerated by Sphinx. Refer to documentation
82# for a list of supported languages.
Davide Pesavento0064c1d2018-03-03 18:43:53 -050083#
84# This is also used if you do content translation via gettext catalogs.
85# Usually you set "language" from the command line for these cases.
86language = None
Alexander Afanasyev49272f72014-04-06 21:49:46 -070087
88# List of patterns, relative to source directory, that match files and
89# directories to ignore when looking for source files.
Davide Pesavento0064c1d2018-03-03 18:43:53 -050090# This patterns also effect to html_static_path and html_extra_path
Alexander Afanasyev49272f72014-04-06 21:49:46 -070091exclude_patterns = []
92
Alexander Afanasyev49272f72014-04-06 21:49:46 -070093# The name of the Pygments (syntax highlighting) style to use.
94pygments_style = 'sphinx'
95
Davide Pesavento0064c1d2018-03-03 18:43:53 -050096# If true, `todo` and `todoList` produce output, else they produce nothing.
97todo_include_todos = False
Alexander Afanasyev49272f72014-04-06 21:49:46 -070098
99
100# -- Options for HTML output ----------------------------------------------
101
102# The theme to use for HTML and HTML Help pages. See the documentation for
103# a list of builtin themes.
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500104#
105# html_theme = 'alabaster'
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700106html_theme = 'named_data_theme'
107
108# Theme options are theme-specific and customize the look and feel of a theme
109# further. For a list of options available for each theme, see the
110# documentation.
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500111#
112# html_theme_options = {}
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700113
114# Add any paths that contain custom themes here, relative to this directory.
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500115html_theme_path = ['.']
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700116
117# Add any paths that contain custom static files (such as style sheets) here,
118# relative to this directory. They are copied after the builtin static files,
119# so a file named "default.css" will overwrite the builtin "default.css".
120html_static_path = ['_static']
121
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700122
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500123# -- Options for HTMLHelp output ------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700124
125# Output file base name for HTML help builder.
126htmlhelp_basename = 'nfd-docs'
127
128
129# -- Options for LaTeX output ---------------------------------------------
130
131latex_elements = {
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500132 # The paper size ('letterpaper' or 'a4paper').
133 #
134 # 'papersize': 'letterpaper',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700135
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500136 # The font size ('10pt', '11pt' or '12pt').
137 #
138 # 'pointsize': '10pt',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700139
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500140 # Additional stuff for the LaTeX preamble.
141 #
142 # 'preamble': '',
143
144 # Latex figure (float) alignment
145 #
146 # 'figure_align': 'htbp',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700147}
148
149# Grouping the document tree into LaTeX files. List of tuples
150# (source start file, target name, title,
151# author, documentclass [howto, manual, or own class]).
152latex_documents = [
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500153 ('index', 'nfd-docs.tex', u'NFD - Named Data Networking Forwarding Daemon Documentation',
154 u'Named Data Networking Project', 'manual'),
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700155]
156
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700157
158# -- Options for manual page output ---------------------------------------
159
160# One entry per manual page. List of tuples
161# (source start file, name, description, authors, manual section).
162man_pages = [
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500163 ('manpages/nfd', 'nfd', u'Named Data Networking Forwarding Daemon', '', 1),
164 ('manpages/nfdc', 'nfdc', u'Interact with NFD management', '', 1),
165 ('manpages/nfdc-status', 'nfdc-status', u'Show NFD status', '', 1),
166 ('manpages/nfdc-face', 'nfdc-face', u'Show and manipulate NFD faces', '', 1),
167 ('manpages/nfdc-route', 'nfdc-route', u'Show and manipulate NFD routes', '', 1),
168 ('manpages/nfdc-cs', 'nfdc-cs', u'Show and manipulate NFD Content Store', '', 1),
169 ('manpages/nfdc-strategy', 'nfdc-strategy', u'Show and manipulate NFD strategy choices', '', 1),
170 ('manpages/nfd-status', 'nfd-status', u'Comprehensive report of NFD status', '', 1),
171 ('manpages/nfd-status-http-server', 'nfd-status-http-server', u'NFD status HTTP server', '', 1),
172 ('manpages/ndn-autoconfig-server', 'ndn-autoconfig-server', u'NDN auto-configuration server', '', 1),
173 ('manpages/ndn-autoconfig', 'ndn-autoconfig', u'NDN auto-configuration client', '', 1),
174 ('manpages/ndn-autoconfig.conf', 'ndn-autoconfig.conf', u'NDN auto-configuration client configuration file', '', 5),
175 ('manpages/nfd-autoreg', 'nfd-autoreg', u'NFD auto-registration server', '', 1),
176 ('manpages/nfd-asf-strategy', 'nfd-asf-strategy', u'NFD ASF strategy', '', 7),
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700177]
178
179
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500180# -- Options for Texinfo output -------------------------------------------
181
182# Grouping the document tree into Texinfo files. List of tuples
183# (source start file, target name, title, author,
184# dir menu entry, description, category)
185texinfo_documents = []
186
Alexander Afanasyev20757882014-08-25 22:39:08 -0700187
188doxylink = {
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500189 'nfd' : ('NFD.tag', 'doxygen/'),
Alexander Afanasyev20757882014-08-25 22:39:08 -0700190}
191
192if os.getenv('GOOGLE_ANALYTICS', None):
193 googleanalytics_id = os.environ['GOOGLE_ANALYTICS']
194 googleanalytics_enabled = True
Alexander Afanasyev7c10b3b2015-01-20 12:24:27 -0800195
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500196redmine_project_url = 'https://redmine.named-data.net/'