blob: e661298d440861744233e168c47a82bc20b6cd98 [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 Pesaventoc52cd5e2022-03-05 20:40:54 -050021copyright = u'Copyright © 2014-2022 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 Pesaventoc0c08932020-10-07 00:26:25 -040088html_copy_source = False
89html_show_sourcelink = False
90
Davide Pesavento9f6a7d92020-10-06 15:21:48 -040091# Disable syntax highlighting of code blocks by default.
92highlight_language = 'none'
93
Alexander Afanasyev49272f72014-04-06 21:49:46 -070094
Davide Pesavento08b91c82019-04-13 19:42:10 -040095# -- Options for LaTeX output ------------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -070096
97latex_elements = {
Davide Pesavento0064c1d2018-03-03 18:43:53 -050098 # The paper size ('letterpaper' or 'a4paper').
99 #
100 # 'papersize': 'letterpaper',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700101
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500102 # The font size ('10pt', '11pt' or '12pt').
103 #
104 # 'pointsize': '10pt',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700105
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500106 # Additional stuff for the LaTeX preamble.
107 #
108 # 'preamble': '',
109
110 # Latex figure (float) alignment
111 #
112 # 'figure_align': 'htbp',
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700113}
114
115# Grouping the document tree into LaTeX files. List of tuples
116# (source start file, target name, title,
117# author, documentclass [howto, manual, or own class]).
118latex_documents = [
Davide Pesavento08b91c82019-04-13 19:42:10 -0400119 ('index', 'nfd-docs.tex', u'Named Data Networking Forwarding Daemon (NFD)',
120 author, 'manual'),
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700121]
122
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700123
Davide Pesavento08b91c82019-04-13 19:42:10 -0400124# -- Options for manual page output ------------------------------------------
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700125
126# One entry per manual page. List of tuples
127# (source start file, name, description, authors, manual section).
128man_pages = [
Davide Pesavento08b91c82019-04-13 19:42:10 -0400129 ('manpages/nfd', 'nfd', 'the Named Data Networking Forwarding Daemon', [], 1),
130 ('manpages/nfdc', 'nfdc', 'interact with NFD management from the command line', [], 1),
131 ('manpages/nfdc-status', 'nfdc-status', 'show NFD status', [], 1),
132 ('manpages/nfdc-face', 'nfdc-face', 'show and manipulate NFD\'s faces', [], 1),
133 ('manpages/nfdc-route', 'nfdc-route', 'show and manipulate NFD\'s routes', [], 1),
134 ('manpages/nfdc-cs', 'nfdc-cs', 'show and manipulate NFD\'s Content Store', [], 1),
135 ('manpages/nfdc-strategy', 'nfdc-strategy', 'show and manipulate NFD\'s strategy choices', [], 1),
136 ('manpages/nfd-status', 'nfd-status', 'show a comprehensive report of NFD\'s status', [], 1),
137 ('manpages/nfd-status-http-server', 'nfd-status-http-server', 'NFD status HTTP server', [], 1),
138 ('manpages/ndn-autoconfig-server', 'ndn-autoconfig-server', 'auto-configuration server for NDN', [], 1),
139 ('manpages/ndn-autoconfig', 'ndn-autoconfig', 'auto-configuration client for NDN', [], 1),
140 ('manpages/ndn-autoconfig.conf', 'ndn-autoconfig.conf', 'configuration file for ndn-autoconfig', [], 5),
141 ('manpages/nfd-autoreg', 'nfd-autoreg', 'NFD automatic prefix registration daemon', [], 1),
142 ('manpages/nfd-asf-strategy', 'nfd-asf-strategy', 'NFD ASF strategy', [], 7),
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700143]
144
Davide Pesavento08b91c82019-04-13 19:42:10 -0400145# If true, show URL addresses after external links.
146#man_show_urls = True
Alexander Afanasyev49272f72014-04-06 21:49:46 -0700147
Davide Pesavento0064c1d2018-03-03 18:43:53 -0500148
Davide Pesavento08b91c82019-04-13 19:42:10 -0400149# -- Custom options ----------------------------------------------------------
Alexander Afanasyev20757882014-08-25 22:39:08 -0700150
151doxylink = {
Davide Pesavento08b91c82019-04-13 19:42:10 -0400152 'nfd': ('NFD.tag', 'doxygen/'),
153}
154
155extlinks = {
156 'issue': ('https://redmine.named-data.net/issues/%s', 'issue #'),
Alexander Afanasyev20757882014-08-25 22:39:08 -0700157}