blob: 696dcee86be25fcefb518e2830b5b23746664b79 [file] [log] [blame]
Davide Pesavento08b91c82019-04-13 19:42:10 -04001# Configuration file for the Sphinx documentation builder.
Alexander Afanasyev49272f72014-04-06 21:49:46 -07002#
Davide Pesavento08b91c82019-04-13 19:42:10 -04003# This file only contains a selection of the most common options. For a full
4# list see the documentation:
Davide Pesavento9f6a7d92020-10-06 15:21:48 -04005# https://www.sphinx-doc.org/en/master/usage/configuration.html
Alexander Afanasyev49272f72014-04-06 21:49:46 -07006
Davide Pesavento08b91c82019-04-13 19:42:10 -04007# -- Path setup --------------------------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -07008
9# If extensions (or modules to document with autodoc) are in another directory,
10# add these directories to sys.path here. If the directory is relative to the
11# documentation root, use os.path.abspath to make it absolute, like shown here.
Davide Pesavento08b91c82019-04-13 19:42:10 -040012#
Davide Pesavento69857c32020-04-05 16:36:26 -040013# import os
Davide Pesavento08b91c82019-04-13 19:42:10 -040014import sys
15# sys.path.insert(0, os.path.abspath('.'))
Alexander Afanasyev49272f72014-04-06 21:49:46 -070016
Davide Pesavento0064c1d2018-03-03 18:43:53 -050017
Davide Pesavento08b91c82019-04-13 19:42:10 -040018# -- Project information -----------------------------------------------------
19
20project = u'Named Data Networking Forwarding Daemon (NFD)'
Davide Pesavento69857c32020-04-05 16:36:26 -040021copyright = u'Copyright © 2014-2020 Named Data Networking Project.'
Davide Pesavento08b91c82019-04-13 19:42:10 -040022author = u'Named Data Networking Project'
23
Davide Pesavento9f6a7d92020-10-06 15:21:48 -040024# The short X.Y version.
Davide Pesavento08b91c82019-04-13 19:42:10 -040025#version = ''
26
Davide Pesavento9f6a7d92020-10-06 15:21:48 -040027# The full version, including alpha/beta/rc tags.
Davide Pesavento08b91c82019-04-13 19:42:10 -040028#release = ''
29
30# There are two options for replacing |today|: either, you set today to some
31# non-false value, then it is used:
32#today = ''
33# Else, today_fmt is used as the format for a strftime call.
34today_fmt = '%Y-%m-%d'
35
36
37# -- General configuration ---------------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -070038
39# If your documentation needs a minimal Sphinx version, state it here.
Davide Pesavento0064c1d2018-03-03 18:43:53 -050040#
Davide Pesavento9f6a7d92020-10-06 15:21:48 -040041needs_sphinx = '1.3'
Alexander Afanasyev49272f72014-04-06 21:49:46 -070042
43# Add any Sphinx extension module names here, as strings. They can be
44# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
45# ones.
46extensions = [
Davide Pesavento08b91c82019-04-13 19:42:10 -040047 'sphinx.ext.extlinks',
Alexander Afanasyev49272f72014-04-06 21:49:46 -070048 'sphinx.ext.todo',
49]
50
Alexander Afanasyev20757882014-08-25 22:39:08 -070051def addExtensionIfExists(extension):
52 try:
53 __import__(extension)
54 extensions.append(extension)
55 except ImportError:
Davide Pesavento08b91c82019-04-13 19:42:10 -040056 sys.stderr.write("Extension '%s' not found. "
Alexander Afanasyev20757882014-08-25 22:39:08 -070057 "Some documentation may not build correctly.\n" % extension)
Alexander Afanasyev20757882014-08-25 22:39:08 -070058
Davide Pesavento69857c32020-04-05 16:36:26 -040059addExtensionIfExists('sphinxcontrib.doxylink')
Alexander Afanasyev20757882014-08-25 22:39:08 -070060
Alexander Afanasyev49272f72014-04-06 21:49:46 -070061# The master toctree document.
62master_doc = 'index'
63
Davide Pesavento08b91c82019-04-13 19:42:10 -040064# Add any paths that contain templates here, relative to this directory.
65templates_path = ['_templates']
Alexander Afanasyev49272f72014-04-06 21:49:46 -070066
67# List of patterns, relative to source directory, that match files and
68# directories to ignore when looking for source files.
Davide Pesavento08b91c82019-04-13 19:42:10 -040069# This pattern also affects html_static_path and html_extra_path.
Alexander Afanasyev49272f72014-04-06 21:49:46 -070070exclude_patterns = []
71
Alexander Afanasyev49272f72014-04-06 21:49:46 -070072
Davide Pesavento08b91c82019-04-13 19:42:10 -040073# -- Options for HTML output -------------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -070074
75# The theme to use for HTML and HTML Help pages. See the documentation for
76# a list of builtin themes.
Davide Pesavento0064c1d2018-03-03 18:43:53 -050077#
Alexander Afanasyev49272f72014-04-06 21:49:46 -070078html_theme = 'named_data_theme'
79
Alexander Afanasyev49272f72014-04-06 21:49:46 -070080# Add any paths that contain custom themes here, relative to this directory.
Davide Pesavento0064c1d2018-03-03 18:43:53 -050081html_theme_path = ['.']
Alexander Afanasyev49272f72014-04-06 21:49:46 -070082
83# Add any paths that contain custom static files (such as style sheets) here,
84# relative to this directory. They are copied after the builtin static files,
85# so a file named "default.css" will overwrite the builtin "default.css".
86html_static_path = ['_static']
87
Davide Pesavento9f6a7d92020-10-06 15:21:48 -040088# Disable syntax highlighting of code blocks by default.
89highlight_language = 'none'
90
Alexander Afanasyev49272f72014-04-06 21:49:46 -070091
Davide Pesavento08b91c82019-04-13 19:42:10 -040092# -- Options for LaTeX output ------------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -070093
94latex_elements = {
Davide Pesavento0064c1d2018-03-03 18:43:53 -050095 # The paper size ('letterpaper' or 'a4paper').
96 #
97 # 'papersize': 'letterpaper',
Alexander Afanasyev49272f72014-04-06 21:49:46 -070098
Davide Pesavento0064c1d2018-03-03 18:43:53 -050099 # The font size ('10pt', '11pt' or '12pt').
100 #
101 # 'pointsize': '10pt',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700102
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500103 # Additional stuff for the LaTeX preamble.
104 #
105 # 'preamble': '',
106
107 # Latex figure (float) alignment
108 #
109 # 'figure_align': 'htbp',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700110}
111
112# Grouping the document tree into LaTeX files. List of tuples
113# (source start file, target name, title,
114# author, documentclass [howto, manual, or own class]).
115latex_documents = [
Davide Pesavento08b91c82019-04-13 19:42:10 -0400116 ('index', 'nfd-docs.tex', u'Named Data Networking Forwarding Daemon (NFD)',
117 author, 'manual'),
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700118]
119
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700120
Davide Pesavento08b91c82019-04-13 19:42:10 -0400121# -- Options for manual page output ------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700122
123# One entry per manual page. List of tuples
124# (source start file, name, description, authors, manual section).
125man_pages = [
Davide Pesavento08b91c82019-04-13 19:42:10 -0400126 ('manpages/nfd', 'nfd', 'the Named Data Networking Forwarding Daemon', [], 1),
127 ('manpages/nfdc', 'nfdc', 'interact with NFD management from the command line', [], 1),
128 ('manpages/nfdc-status', 'nfdc-status', 'show NFD status', [], 1),
129 ('manpages/nfdc-face', 'nfdc-face', 'show and manipulate NFD\'s faces', [], 1),
130 ('manpages/nfdc-route', 'nfdc-route', 'show and manipulate NFD\'s routes', [], 1),
131 ('manpages/nfdc-cs', 'nfdc-cs', 'show and manipulate NFD\'s Content Store', [], 1),
132 ('manpages/nfdc-strategy', 'nfdc-strategy', 'show and manipulate NFD\'s strategy choices', [], 1),
133 ('manpages/nfd-status', 'nfd-status', 'show a comprehensive report of NFD\'s status', [], 1),
134 ('manpages/nfd-status-http-server', 'nfd-status-http-server', 'NFD status HTTP server', [], 1),
135 ('manpages/ndn-autoconfig-server', 'ndn-autoconfig-server', 'auto-configuration server for NDN', [], 1),
136 ('manpages/ndn-autoconfig', 'ndn-autoconfig', 'auto-configuration client for NDN', [], 1),
137 ('manpages/ndn-autoconfig.conf', 'ndn-autoconfig.conf', 'configuration file for ndn-autoconfig', [], 5),
138 ('manpages/nfd-autoreg', 'nfd-autoreg', 'NFD automatic prefix registration daemon', [], 1),
139 ('manpages/nfd-asf-strategy', 'nfd-asf-strategy', 'NFD ASF strategy', [], 7),
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700140]
141
Davide Pesavento08b91c82019-04-13 19:42:10 -0400142# If true, show URL addresses after external links.
143#man_show_urls = True
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700144
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500145
Davide Pesavento08b91c82019-04-13 19:42:10 -0400146# -- Custom options ----------------------------------------------------------
Alexander Afanasyev20757882014-08-25 22:39:08 -0700147
148doxylink = {
Davide Pesavento08b91c82019-04-13 19:42:10 -0400149 'nfd': ('NFD.tag', 'doxygen/'),
150}
151
152extlinks = {
153 'issue': ('https://redmine.named-data.net/issues/%s', 'issue #'),
Alexander Afanasyev20757882014-08-25 22:39:08 -0700154}