blob: f95dbcde3548387e0af6b20600eb77de8455467a [file] [log] [blame]
Alexander Afanasyev49272f72014-04-06 21:49:46 -07001# -*- coding: utf-8 -*-
2#
Davide Pesavento08b91c82019-04-13 19:42:10 -04003# Configuration file for the Sphinx documentation builder.
Alexander Afanasyev49272f72014-04-06 21:49:46 -07004#
Davide Pesavento08b91c82019-04-13 19:42:10 -04005# This file only contains a selection of the most common options. For a full
6# list see the documentation:
7# http://www.sphinx-doc.org/en/master/config
Alexander Afanasyev49272f72014-04-06 21:49:46 -07008
Davide Pesavento08b91c82019-04-13 19:42:10 -04009# -- Path setup --------------------------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -070010
11# If extensions (or modules to document with autodoc) are in another directory,
12# add these directories to sys.path here. If the directory is relative to the
13# documentation root, use os.path.abspath to make it absolute, like shown here.
Davide Pesavento08b91c82019-04-13 19:42:10 -040014#
Davide Pesavento69857c32020-04-05 16:36:26 -040015# import os
Davide Pesavento08b91c82019-04-13 19:42:10 -040016import sys
17# sys.path.insert(0, os.path.abspath('.'))
Alexander Afanasyev49272f72014-04-06 21:49:46 -070018
Davide Pesavento0064c1d2018-03-03 18:43:53 -050019
Davide Pesavento08b91c82019-04-13 19:42:10 -040020# -- Project information -----------------------------------------------------
21
22project = u'Named Data Networking Forwarding Daemon (NFD)'
Davide Pesavento69857c32020-04-05 16:36:26 -040023copyright = u'Copyright © 2014-2020 Named Data Networking Project.'
Davide Pesavento08b91c82019-04-13 19:42:10 -040024author = u'Named Data Networking Project'
25
26# The short X.Y version
27#version = ''
28
29# The full version, including alpha/beta/rc tags
30#release = ''
31
32# There are two options for replacing |today|: either, you set today to some
33# non-false value, then it is used:
34#today = ''
35# Else, today_fmt is used as the format for a strftime call.
36today_fmt = '%Y-%m-%d'
37
38
39# -- General configuration ---------------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -070040
41# If your documentation needs a minimal Sphinx version, state it here.
Davide Pesavento0064c1d2018-03-03 18:43:53 -050042#
Davide Pesavento08b91c82019-04-13 19:42:10 -040043needs_sphinx = '1.1'
Alexander Afanasyev49272f72014-04-06 21:49:46 -070044
45# Add any Sphinx extension module names here, as strings. They can be
46# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
47# ones.
48extensions = [
Davide Pesavento08b91c82019-04-13 19:42:10 -040049 'sphinx.ext.extlinks',
Alexander Afanasyev49272f72014-04-06 21:49:46 -070050 'sphinx.ext.todo',
51]
52
Alexander Afanasyev20757882014-08-25 22:39:08 -070053def addExtensionIfExists(extension):
54 try:
55 __import__(extension)
56 extensions.append(extension)
57 except ImportError:
Davide Pesavento08b91c82019-04-13 19:42:10 -040058 sys.stderr.write("Extension '%s' not found. "
Alexander Afanasyev20757882014-08-25 22:39:08 -070059 "Some documentation may not build correctly.\n" % extension)
Alexander Afanasyev20757882014-08-25 22:39:08 -070060
Davide Pesavento69857c32020-04-05 16:36:26 -040061addExtensionIfExists('sphinxcontrib.doxylink')
Alexander Afanasyev20757882014-08-25 22:39:08 -070062
Alexander Afanasyev49272f72014-04-06 21:49:46 -070063# The master toctree document.
64master_doc = 'index'
65
Davide Pesavento08b91c82019-04-13 19:42:10 -040066# Add any paths that contain templates here, relative to this directory.
67templates_path = ['_templates']
Alexander Afanasyev49272f72014-04-06 21:49:46 -070068
69# List of patterns, relative to source directory, that match files and
70# directories to ignore when looking for source files.
Davide Pesavento08b91c82019-04-13 19:42:10 -040071# This pattern also affects html_static_path and html_extra_path.
Alexander Afanasyev49272f72014-04-06 21:49:46 -070072exclude_patterns = []
73
Alexander Afanasyev49272f72014-04-06 21:49:46 -070074
Davide Pesavento08b91c82019-04-13 19:42:10 -040075# -- Options for HTML output -------------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -070076
77# The theme to use for HTML and HTML Help pages. See the documentation for
78# a list of builtin themes.
Davide Pesavento0064c1d2018-03-03 18:43:53 -050079#
Alexander Afanasyev49272f72014-04-06 21:49:46 -070080html_theme = 'named_data_theme'
81
Alexander Afanasyev49272f72014-04-06 21:49:46 -070082# Add any paths that contain custom themes here, relative to this directory.
Davide Pesavento0064c1d2018-03-03 18:43:53 -050083html_theme_path = ['.']
Alexander Afanasyev49272f72014-04-06 21:49:46 -070084
85# Add any paths that contain custom static files (such as style sheets) here,
86# relative to this directory. They are copied after the builtin static files,
87# so a file named "default.css" will overwrite the builtin "default.css".
88html_static_path = ['_static']
89
Alexander Afanasyev49272f72014-04-06 21:49:46 -070090
Davide Pesavento08b91c82019-04-13 19:42:10 -040091# -- Options for LaTeX output ------------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -070092
93latex_elements = {
Davide Pesavento0064c1d2018-03-03 18:43:53 -050094 # The paper size ('letterpaper' or 'a4paper').
95 #
96 # 'papersize': 'letterpaper',
Alexander Afanasyev49272f72014-04-06 21:49:46 -070097
Davide Pesavento0064c1d2018-03-03 18:43:53 -050098 # The font size ('10pt', '11pt' or '12pt').
99 #
100 # 'pointsize': '10pt',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700101
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500102 # Additional stuff for the LaTeX preamble.
103 #
104 # 'preamble': '',
105
106 # Latex figure (float) alignment
107 #
108 # 'figure_align': 'htbp',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700109}
110
111# Grouping the document tree into LaTeX files. List of tuples
112# (source start file, target name, title,
113# author, documentclass [howto, manual, or own class]).
114latex_documents = [
Davide Pesavento08b91c82019-04-13 19:42:10 -0400115 ('index', 'nfd-docs.tex', u'Named Data Networking Forwarding Daemon (NFD)',
116 author, 'manual'),
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700117]
118
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700119
Davide Pesavento08b91c82019-04-13 19:42:10 -0400120# -- Options for manual page output ------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700121
122# One entry per manual page. List of tuples
123# (source start file, name, description, authors, manual section).
124man_pages = [
Davide Pesavento08b91c82019-04-13 19:42:10 -0400125 ('manpages/nfd', 'nfd', 'the Named Data Networking Forwarding Daemon', [], 1),
126 ('manpages/nfdc', 'nfdc', 'interact with NFD management from the command line', [], 1),
127 ('manpages/nfdc-status', 'nfdc-status', 'show NFD status', [], 1),
128 ('manpages/nfdc-face', 'nfdc-face', 'show and manipulate NFD\'s faces', [], 1),
129 ('manpages/nfdc-route', 'nfdc-route', 'show and manipulate NFD\'s routes', [], 1),
130 ('manpages/nfdc-cs', 'nfdc-cs', 'show and manipulate NFD\'s Content Store', [], 1),
131 ('manpages/nfdc-strategy', 'nfdc-strategy', 'show and manipulate NFD\'s strategy choices', [], 1),
132 ('manpages/nfd-status', 'nfd-status', 'show a comprehensive report of NFD\'s status', [], 1),
133 ('manpages/nfd-status-http-server', 'nfd-status-http-server', 'NFD status HTTP server', [], 1),
134 ('manpages/ndn-autoconfig-server', 'ndn-autoconfig-server', 'auto-configuration server for NDN', [], 1),
135 ('manpages/ndn-autoconfig', 'ndn-autoconfig', 'auto-configuration client for NDN', [], 1),
136 ('manpages/ndn-autoconfig.conf', 'ndn-autoconfig.conf', 'configuration file for ndn-autoconfig', [], 5),
137 ('manpages/nfd-autoreg', 'nfd-autoreg', 'NFD automatic prefix registration daemon', [], 1),
138 ('manpages/nfd-asf-strategy', 'nfd-asf-strategy', 'NFD ASF strategy', [], 7),
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700139]
140
Davide Pesavento08b91c82019-04-13 19:42:10 -0400141# If true, show URL addresses after external links.
142#man_show_urls = True
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700143
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500144
Davide Pesavento08b91c82019-04-13 19:42:10 -0400145# -- Custom options ----------------------------------------------------------
Alexander Afanasyev20757882014-08-25 22:39:08 -0700146
147doxylink = {
Davide Pesavento08b91c82019-04-13 19:42:10 -0400148 'nfd': ('NFD.tag', 'doxygen/'),
149}
150
151extlinks = {
152 'issue': ('https://redmine.named-data.net/issues/%s', 'issue #'),
Alexander Afanasyev20757882014-08-25 22:39:08 -0700153}