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