blob: 2362babae6cba08bf59a18c98fc32ba72e4ab42f [file] [log] [blame]
Davide Pesaventof6be8e32020-04-30 16:06:03 -04001# Configuration file for the Sphinx documentation builder.
Vince Lehmanb722b102014-08-24 16:33:49 -05002#
Davide Pesaventof6be8e32020-04-30 16:06:03 -04003# This file only contains a selection of the most common options. For a full
4# list see the documentation:
Davide Pesavento7ae8b082021-10-12 21:45:47 -04005# https://www.sphinx-doc.org/en/master/usage/configuration.html
Vince Lehmanb722b102014-08-24 16:33:49 -05006
Davide Pesaventof6be8e32020-04-30 16:06:03 -04007# -- Path setup --------------------------------------------------------------
Vince Lehmanb722b102014-08-24 16:33:49 -05008
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 Pesaventof6be8e32020-04-30 16:06:03 -040012#
13# import os
14import sys
15# sys.path.insert(0, os.path.abspath('.'))
Vince Lehmanb722b102014-08-24 16:33:49 -050016
Davide Pesaventof6be8e32020-04-30 16:06:03 -040017
18# -- Project information -----------------------------------------------------
19
20project = u'Named Data Link State Routing Protocol (NLSR)'
Davide Pesaventod1f1df82022-03-12 16:40:37 -050021copyright = u'Copyright © 2014-2022 Named Data Networking Project.'
Davide Pesaventof6be8e32020-04-30 16:06:03 -040022author = u'Named Data Networking Project'
23
Davide Pesavento7ae8b082021-10-12 21:45:47 -040024# The short X.Y version.
Davide Pesaventof6be8e32020-04-30 16:06:03 -040025#version = ''
26
Davide Pesavento7ae8b082021-10-12 21:45:47 -040027# The full version, including alpha/beta/rc tags.
Davide Pesaventof6be8e32020-04-30 16:06:03 -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 ---------------------------------------------------
Vince Lehmanb722b102014-08-24 16:33:49 -050038
39# If your documentation needs a minimal Sphinx version, state it here.
Davide Pesaventof6be8e32020-04-30 16:06:03 -040040#
Davide Pesavento7ae8b082021-10-12 21:45:47 -040041needs_sphinx = '1.3'
Vince Lehmanb722b102014-08-24 16:33:49 -050042
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 Pesaventof6be8e32020-04-30 16:06:03 -040047 'sphinx.ext.extlinks',
Vince Lehmanb722b102014-08-24 16:33:49 -050048 'sphinx.ext.todo',
49]
50
Alexander Afanasyev7decbbf2014-08-24 21:29:01 -070051def addExtensionIfExists(extension):
52 try:
53 __import__(extension)
54 extensions.append(extension)
55 except ImportError:
Davide Pesaventof6be8e32020-04-30 16:06:03 -040056 sys.stderr.write("Extension '%s' not found. "
Alexander Afanasyev7decbbf2014-08-24 21:29:01 -070057 "Some documentation may not build correctly.\n" % extension)
Alexander Afanasyev7decbbf2014-08-24 21:29:01 -070058
Davide Pesaventof6be8e32020-04-30 16:06:03 -040059addExtensionIfExists('sphinxcontrib.doxylink')
Vince Lehmanb722b102014-08-24 16:33:49 -050060
61# The master toctree document.
62master_doc = 'index'
63
Davide Pesaventof6be8e32020-04-30 16:06:03 -040064# Add any paths that contain templates here, relative to this directory.
65templates_path = ['_templates']
Vince Lehmanb722b102014-08-24 16:33:49 -050066
67# List of patterns, relative to source directory, that match files and
68# directories to ignore when looking for source files.
Davide Pesaventof6be8e32020-04-30 16:06:03 -040069# This pattern also affects html_static_path and html_extra_path.
Vince Lehmanb722b102014-08-24 16:33:49 -050070exclude_patterns = []
71
Vince Lehmanb722b102014-08-24 16:33:49 -050072
Davide Pesaventof6be8e32020-04-30 16:06:03 -040073# -- Options for HTML output -------------------------------------------------
Vince Lehmanb722b102014-08-24 16:33:49 -050074
75# The theme to use for HTML and HTML Help pages. See the documentation for
76# a list of builtin themes.
Davide Pesaventof6be8e32020-04-30 16:06:03 -040077#
Vince Lehmanb722b102014-08-24 16:33:49 -050078html_theme = 'named_data_theme'
79
Vince Lehmanb722b102014-08-24 16:33:49 -050080# Add any paths that contain custom themes here, relative to this directory.
Davide Pesaventof6be8e32020-04-30 16:06:03 -040081html_theme_path = ['.']
Vince Lehmanb722b102014-08-24 16:33:49 -050082
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 Pesavento7ae8b082021-10-12 21:45:47 -040088html_copy_source = False
89html_show_sourcelink = False
90
91# Disable syntax highlighting of code blocks by default.
92highlight_language = 'none'
93
Vince Lehmanb722b102014-08-24 16:33:49 -050094
Davide Pesaventof6be8e32020-04-30 16:06:03 -040095# -- Options for LaTeX output ------------------------------------------------
Vince Lehmanb722b102014-08-24 16:33:49 -050096
97latex_elements = {
Davide Pesaventof6be8e32020-04-30 16:06:03 -040098 # The paper size ('letterpaper' or 'a4paper').
99 #
100 # 'papersize': 'letterpaper',
Vince Lehmanb722b102014-08-24 16:33:49 -0500101
Davide Pesaventof6be8e32020-04-30 16:06:03 -0400102 # The font size ('10pt', '11pt' or '12pt').
103 #
104 # 'pointsize': '10pt',
Vince Lehmanb722b102014-08-24 16:33:49 -0500105
Davide Pesaventof6be8e32020-04-30 16:06:03 -0400106 # Additional stuff for the LaTeX preamble.
107 #
108 # 'preamble': '',
109
110 # Latex figure (float) alignment
111 #
112 # 'figure_align': 'htbp',
Vince Lehmanb722b102014-08-24 16:33:49 -0500113}
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 Pesaventof6be8e32020-04-30 16:06:03 -0400119 ('index', 'nlsr-docs.tex', u'Named Data Link State Routing Protocol (NLSR)',
120 author, 'manual'),
Vince Lehmanb722b102014-08-24 16:33:49 -0500121]
122
Vince Lehmanb722b102014-08-24 16:33:49 -0500123
Davide Pesaventof6be8e32020-04-30 16:06:03 -0400124# -- Options for manual page output ------------------------------------------
Vince Lehmanb722b102014-08-24 16:33:49 -0500125
126# One entry per manual page. List of tuples
127# (source start file, name, description, authors, manual section).
128man_pages = [
Davide Pesaventof6be8e32020-04-30 16:06:03 -0400129 ('manpages/nlsr', 'nlsr', u'Named Data Link State Routing daemon', None, 1),
130 ('manpages/nlsr.conf', 'nlsr.conf', u'Named Data Link State Routing daemon configuration file', None, 5),
131 ('manpages/nlsrc', 'nlsrc', u'command-line utility to interact with and collect statistics from NLSR', None, 1),
Vince Lehmanb722b102014-08-24 16:33:49 -0500132]
133
Vince Lehmanb722b102014-08-24 16:33:49 -0500134# If true, show URL addresses after external links.
Davide Pesaventof6be8e32020-04-30 16:06:03 -0400135#man_show_urls = True
Alexander Afanasyev7decbbf2014-08-24 21:29:01 -0700136
Vince Lehmande5560c2015-04-29 17:18:51 -0500137
Davide Pesaventof6be8e32020-04-30 16:06:03 -0400138# -- Custom options ----------------------------------------------------------
139
140doxylink = {
141 'nlsr': ('NLSR.tag', 'doxygen/'),
142}
143
144extlinks = {
145 'issue': ('https://redmine.named-data.net/issues/%s', 'issue #'),
146}