blob: b38059ec3ac6980d707188269e28e528f5322956 [file] [log] [blame]
Davide Pesaventofee7ee32020-04-15 02:45:07 -04001# Configuration file for the Sphinx documentation builder.
2#
3# This file only contains a selection of the most common options. For a full
4# list see the documentation:
Davide Pesavento3d01fa32021-10-03 17:13:38 -04005# https://www.sphinx-doc.org/en/master/usage/configuration.html
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -07006
Davide Pesaventofee7ee32020-04-15 02:45:07 -04007# -- Path setup --------------------------------------------------------------
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -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 Pesaventofee7ee32020-04-15 02:45:07 -040012#
13# import os
14import sys
15# sys.path.insert(0, os.path.abspath('.'))
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070016
Davide Pesaventofee7ee32020-04-15 02:45:07 -040017
18# -- Project information -----------------------------------------------------
19
20project = u'NDNS: Domain Name Service for Named Data Networking'
Davide Pesavento7f27ec12022-03-10 20:10:54 -050021copyright = u'Copyright © 2014-2022 Named Data Networking Project.'
Davide Pesaventofee7ee32020-04-15 02:45:07 -040022author = u'Named Data Networking Project'
23
Davide Pesavento3d01fa32021-10-03 17:13:38 -040024# The short X.Y version.
Davide Pesaventofee7ee32020-04-15 02:45:07 -040025#version = ''
26
Davide Pesavento3d01fa32021-10-03 17:13:38 -040027# The full version, including alpha/beta/rc tags.
Davide Pesaventofee7ee32020-04-15 02:45:07 -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 Afanasyevbd5b67a2014-09-02 16:06:21 -070038
39# If your documentation needs a minimal Sphinx version, state it here.
Davide Pesaventofee7ee32020-04-15 02:45:07 -040040#
Davide Pesavento3d01fa32021-10-03 17:13:38 -040041needs_sphinx = '1.3'
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -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 Pesaventofee7ee32020-04-15 02:45:07 -040047 'sphinx.ext.extlinks',
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070048 'sphinx.ext.todo',
49]
50
51def addExtensionIfExists(extension):
52 try:
53 __import__(extension)
54 extensions.append(extension)
55 except ImportError:
Davide Pesaventofee7ee32020-04-15 02:45:07 -040056 sys.stderr.write("Extension '%s' not found. "
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070057 "Some documentation may not build correctly.\n" % extension)
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070058
Davide Pesaventofee7ee32020-04-15 02:45:07 -040059addExtensionIfExists('sphinxcontrib.doxylink')
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070060
61# The master toctree document.
62master_doc = 'index'
63
Davide Pesaventofee7ee32020-04-15 02:45:07 -040064# Add any paths that contain templates here, relative to this directory.
65templates_path = ['_templates']
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070066
67# List of patterns, relative to source directory, that match files and
68# directories to ignore when looking for source files.
Davide Pesaventofee7ee32020-04-15 02:45:07 -040069# This pattern also affects html_static_path and html_extra_path.
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070070exclude_patterns = []
71
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070072
Davide Pesaventofee7ee32020-04-15 02:45:07 -040073# -- Options for HTML output -------------------------------------------------
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070074
75# The theme to use for HTML and HTML Help pages. See the documentation for
76# a list of builtin themes.
Davide Pesaventofee7ee32020-04-15 02:45:07 -040077#
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070078html_theme = 'named_data_theme'
79
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070080# Add any paths that contain custom themes here, relative to this directory.
Davide Pesaventofee7ee32020-04-15 02:45:07 -040081html_theme_path = ['.']
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -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 Pesavento3d01fa32021-10-03 17:13:38 -040088html_copy_source = False
89html_show_sourcelink = False
90
91# Disable syntax highlighting of code blocks by default.
92highlight_language = 'none'
93
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070094
Davide Pesaventofee7ee32020-04-15 02:45:07 -040095# -- Options for LaTeX output ------------------------------------------------
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070096
97latex_elements = {
Davide Pesaventofee7ee32020-04-15 02:45:07 -040098 # The paper size ('letterpaper' or 'a4paper').
99 #
100 # 'papersize': 'letterpaper',
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700101
Davide Pesaventofee7ee32020-04-15 02:45:07 -0400102 # The font size ('10pt', '11pt' or '12pt').
103 #
104 # 'pointsize': '10pt',
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700105
Davide Pesaventofee7ee32020-04-15 02:45:07 -0400106 # Additional stuff for the LaTeX preamble.
107 #
108 # 'preamble': '',
109
110 # Latex figure (float) alignment
111 #
112 # 'figure_align': 'htbp',
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -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 Pesaventofee7ee32020-04-15 02:45:07 -0400119 ('index', 'ndns-docs.tex', u'NDNS: Domain Name Service for Named Data Networking',
120 author, 'manual'),
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700121]
122
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700123
Davide Pesaventofee7ee32020-04-15 02:45:07 -0400124# -- Options for manual page output ------------------------------------------
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700125
126# One entry per manual page. List of tuples
127# (source start file, name, description, authors, manual section).
128man_pages = [
129 ('manpages/ndns-daemon', 'ndns-daemon', u'Domain Name Service Daemon for Named Data Networking', None, 1),
130]
131
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700132# If true, show URL addresses after external links.
Davide Pesaventofee7ee32020-04-15 02:45:07 -0400133#man_show_urls = True
134
135
136# -- Custom options ----------------------------------------------------------
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700137
138doxylink = {
Davide Pesaventofee7ee32020-04-15 02:45:07 -0400139 'NDNS': ('NDNS.tag', 'doxygen/'),
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700140}
141
Davide Pesaventofee7ee32020-04-15 02:45:07 -0400142extlinks = {
143 'issue': ('https://redmine.named-data.net/issues/%s', 'issue #'),
144}