blob: 6cf5ccbd695ca9d2ffdaffd790415550fad21213 [file] [log] [blame]
Alexander Afanasyev49272f72014-04-06 21:49:46 -07001# -*- coding: utf-8 -*-
2#
3# NFD - Named Data Networking Forwarding Daemon documentation build configuration file, created by
4# sphinx-quickstart on Sun Apr 6 19:58:22 2014.
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 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
24# -- General configuration ------------------------------------------------
25
26# If your documentation needs a minimal Sphinx version, state it here.
27#needs_sphinx = '1.0'
28
29# Add any Sphinx extension module names here, as strings. They can be
30# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
31# ones.
32extensions = [
33 'sphinx.ext.todo',
Alexander Afanasyev687dba82015-09-27 15:32:58 -070034 'redmine_issue'
Alexander Afanasyev49272f72014-04-06 21:49:46 -070035]
36
Alexander Afanasyev20757882014-08-25 22:39:08 -070037def addExtensionIfExists(extension):
38 try:
39 __import__(extension)
40 extensions.append(extension)
41 except ImportError:
42 sys.stderr.write("Extension '%s' in not available. "
43 "Some documentation may not build correctly.\n" % extension)
44 sys.stderr.write("To install, use \n"
45 " sudo pip install %s\n" % extension.replace('.', '-'))
46
47addExtensionIfExists('sphinxcontrib.doxylink')
48
49if os.getenv('GOOGLE_ANALYTICS', None):
50 addExtensionIfExists('sphinxcontrib.googleanalytics')
51
Alexander Afanasyev49272f72014-04-06 21:49:46 -070052# Add any paths that contain templates here, relative to this directory.
53templates_path = ['_templates']
54
55# The suffix of source filenames.
56source_suffix = '.rst'
57
58# The encoding of source files.
59#source_encoding = 'utf-8-sig'
60
61# The master toctree document.
62master_doc = 'index'
63
64# General information about the project.
65project = u'NFD - Named Data Networking Forwarding Daemon'
Junxiao Shi15902ef2017-08-11 22:58:35 +000066copyright = u'2014-%d, Named Data Networking Project' % datetime.date.today().year
Alexander Afanasyev49272f72014-04-06 21:49:46 -070067
68# The version info for the project you're documenting, acts as replacement for
69# |version| and |release|, also used in various other places throughout the
70# built documents.
Alexander Afanasyev49272f72014-04-06 21:49:46 -070071
72# The language for content autogenerated by Sphinx. Refer to documentation
73# for a list of supported languages.
74#language = None
75
76# There are two options for replacing |today|: either, you set today to some
77# non-false value, then it is used:
78#today = ''
79# Else, today_fmt is used as the format for a strftime call.
80#today_fmt = '%B %d, %Y'
81
82# List of patterns, relative to source directory, that match files and
83# directories to ignore when looking for source files.
84exclude_patterns = []
85
86# The reST default role (used for this markup: `text`) to use for all
87# documents.
88#default_role = None
89
90# If true, '()' will be appended to :func: etc. cross-reference text.
91#add_function_parentheses = True
92
93# If true, the current module name will be prepended to all description
94# unit titles (such as .. function::).
95#add_module_names = True
96
97# If true, sectionauthor and moduleauthor directives will be shown in the
98# output. They are ignored by default.
99#show_authors = False
100
101# The name of the Pygments (syntax highlighting) style to use.
102pygments_style = 'sphinx'
103
104# A list of ignored prefixes for module index sorting.
105#modindex_common_prefix = []
106
107# If true, keep warnings as "system message" paragraphs in the built documents.
108#keep_warnings = False
109
110
111# -- Options for HTML output ----------------------------------------------
112
113# The theme to use for HTML and HTML Help pages. See the documentation for
114# a list of builtin themes.
115# html_theme = 'default'
116html_theme = 'named_data_theme'
117
118# Theme options are theme-specific and customize the look and feel of a theme
119# further. For a list of options available for each theme, see the
120# documentation.
121#html_theme_options = {}
122
123# Add any paths that contain custom themes here, relative to this directory.
124html_theme_path = ['./']
125
126# The name for this set of Sphinx documents. If None, it defaults to
127# "<project> v<release> documentation".
128#html_title = None
129
130# A shorter title for the navigation bar. Default is the same as html_title.
131#html_short_title = None
132
133# The name of an image file (relative to this directory) to place at the top
134# of the sidebar.
135#html_logo = None
136
137# The name of an image file (within the static path) to use as favicon of the
138# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
139# pixels large.
140#html_favicon = None
141
142# Add any paths that contain custom static files (such as style sheets) here,
143# relative to this directory. They are copied after the builtin static files,
144# so a file named "default.css" will overwrite the builtin "default.css".
145html_static_path = ['_static']
146
147# Add any extra paths that contain custom files (such as robots.txt or
148# .htaccess) here, relative to this directory. These files are copied
149# directly to the root of the documentation.
150#html_extra_path = []
151
152# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
153# using the given strftime format.
154#html_last_updated_fmt = '%b %d, %Y'
155
156# If true, SmartyPants will be used to convert quotes and dashes to
157# typographically correct entities.
158#html_use_smartypants = True
159
160# Custom sidebar templates, maps document names to template names.
161#html_sidebars = {}
162
163# Additional templates that should be rendered to pages, maps page names to
164# template names.
165#html_additional_pages = {}
166
167# If false, no module index is generated.
168#html_domain_indices = True
169
170# If false, no index is generated.
171#html_use_index = True
172
173# If true, the index is split into individual pages for each letter.
174#html_split_index = False
175
176# If true, links to the reST sources are added to the pages.
177#html_show_sourcelink = True
178
179# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
180#html_show_sphinx = True
181
182# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
183#html_show_copyright = True
184
185# If true, an OpenSearch description file will be output, and all pages will
186# contain a <link> tag referring to it. The value of this option must be the
187# base URL from which the finished HTML is served.
188#html_use_opensearch = ''
189
190# This is the file name suffix for HTML files (e.g. ".xhtml").
191html_file_suffix = ".html"
192
193# Output file base name for HTML help builder.
194htmlhelp_basename = 'nfd-docs'
195
196
197# -- Options for LaTeX output ---------------------------------------------
198
199latex_elements = {
200# The paper size ('letterpaper' or 'a4paper').
201#'papersize': 'letterpaper',
202
203# The font size ('10pt', '11pt' or '12pt').
204#'pointsize': '10pt',
205
206# Additional stuff for the LaTeX preamble.
207#'preamble': '',
208}
209
210# Grouping the document tree into LaTeX files. List of tuples
211# (source start file, target name, title,
212# author, documentclass [howto, manual, or own class]).
213latex_documents = [
214 ('index', 'nfd-docs.tex', u'NFD - Named Data Networking Forwarding Daemon Documentation',
215 u'Named Data Networking Project', 'manual'),
216]
217
218# The name of an image file (relative to this directory) to place at the top of
219# the title page.
220#latex_logo = None
221
222# For "manual" documents, if this is true, then toplevel headings are parts,
223# not chapters.
224#latex_use_parts = False
225
226# If true, show page references after internal links.
227#latex_show_pagerefs = False
228
229# If true, show URL addresses after external links.
230#latex_show_urls = False
231
232# Documents to append as an appendix to all manuals.
233#latex_appendices = []
234
235# If false, no module index is generated.
236#latex_domain_indices = True
237
238
239# -- Options for manual page output ---------------------------------------
240
241# One entry per manual page. List of tuples
242# (source start file, name, description, authors, manual section).
243man_pages = [
244 ('manpages/nfd', 'nfd', u'Named Data Networking Forwarding Daemon', None, 1),
Junxiao Shi15902ef2017-08-11 22:58:35 +0000245 ('manpages/nfdc', 'nfdc', u'interact with NFD management', None, 1),
246 ('manpages/nfdc-status', 'nfdc-status', u'show NFD status', None, 1),
247 ('manpages/nfdc-face', 'nfdc-face', u'show and manipulate NFD faces', None, 1),
248 ('manpages/nfdc-route', 'nfdc-route', u'show and manipulate NFD routes', None, 1),
Junxiao Shi3160a3f2018-01-09 21:25:15 +0000249 ('manpages/nfdc-cs', 'nfdc-cs', u'show and manipulate NFD Content Store', None, 1),
Junxiao Shi15902ef2017-08-11 22:58:35 +0000250 ('manpages/nfdc-strategy', 'nfdc-strategy', u'show and manipulate NFD strategy choices', None, 1),
251 ('manpages/nfd-status', 'nfd-status', u'comprehensive report of NFD status', None, 1),
252 ('manpages/nfd-status-http-server', 'nfd-status-http-server',
253 u'NFD status HTTP server', None, 1),
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700254 ('manpages/ndn-autoconfig-server', 'ndn-autoconfig-server',
Alexander Afanasyev5c475972015-12-20 16:16:56 -0800255 u'NDN auto-configuration server', None, 1),
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700256 ('manpages/ndn-autoconfig', 'ndn-autoconfig',
Alexander Afanasyev5c475972015-12-20 16:16:56 -0800257 u'NDN auto-configuration client', None, 1),
258 ('manpages/ndn-autoconfig.conf', 'ndn-autoconfig.conf',
259 u'NDN auto-configuration client configuration file', None, 5),
hilata6ee6e072014-04-20 17:10:18 -0500260 ('manpages/nfd-autoreg', 'nfd-autoreg', u'NFD Auto-registration Server', None, 1),
Ashlesh Gawande92e4ea52017-07-19 11:38:12 -0500261 ('manpages/nfd-asf-strategy', 'nfd-asf-strategy', u'NFD ASF Strategy', None, 7),
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700262]
263
264
265# If true, show URL addresses after external links.
266#man_show_urls = False
Alexander Afanasyev20757882014-08-25 22:39:08 -0700267
268doxylink = {
Alexander Afanasyev687dba82015-09-27 15:32:58 -0700269 'nfd' : ('NFD.tag', 'doxygen/'),
Alexander Afanasyev20757882014-08-25 22:39:08 -0700270}
271
272if os.getenv('GOOGLE_ANALYTICS', None):
273 googleanalytics_id = os.environ['GOOGLE_ANALYTICS']
274 googleanalytics_enabled = True
Alexander Afanasyev7c10b3b2015-01-20 12:24:27 -0800275
Eric Newberry81a9a862016-12-27 22:59:27 -0700276redmine_project_url = "https://redmine.named-data.net/"