blob: 8dbae78332f732c7c026b1a52f36b923d5fa4e5f [file] [log] [blame]
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -07001# -*- coding: utf-8 -*-
Davide Pesaventofee7ee32020-04-15 02:45:07 -04002#
3# Configuration file for the Sphinx documentation builder.
4#
5# 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 Afanasyevbd5b67a2014-09-02 16:06:21 -07008
Davide Pesaventofee7ee32020-04-15 02:45:07 -04009# -- Path setup --------------------------------------------------------------
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -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 Pesaventofee7ee32020-04-15 02:45:07 -040014#
15# import os
16import sys
17# sys.path.insert(0, os.path.abspath('.'))
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070018
Davide Pesaventofee7ee32020-04-15 02:45:07 -040019
20# -- Project information -----------------------------------------------------
21
22project = u'NDNS: Domain Name Service for Named Data Networking'
23copyright = u'Copyright © 2014-2020 Named Data Networking Project.'
24author = 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 Afanasyevbd5b67a2014-09-02 16:06:21 -070040
41# If your documentation needs a minimal Sphinx version, state it here.
Davide Pesaventofee7ee32020-04-15 02:45:07 -040042#
43needs_sphinx = '1.1'
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -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 Pesaventofee7ee32020-04-15 02:45:07 -040049 'sphinx.ext.extlinks',
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070050 'sphinx.ext.todo',
51]
52
53def addExtensionIfExists(extension):
54 try:
55 __import__(extension)
56 extensions.append(extension)
57 except ImportError:
Davide Pesaventofee7ee32020-04-15 02:45:07 -040058 sys.stderr.write("Extension '%s' not found. "
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070059 "Some documentation may not build correctly.\n" % extension)
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070060
Davide Pesaventofee7ee32020-04-15 02:45:07 -040061addExtensionIfExists('sphinxcontrib.doxylink')
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070062
63# The master toctree document.
64master_doc = 'index'
65
Davide Pesaventofee7ee32020-04-15 02:45:07 -040066# Add any paths that contain templates here, relative to this directory.
67templates_path = ['_templates']
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070068
69# List of patterns, relative to source directory, that match files and
70# directories to ignore when looking for source files.
Davide Pesaventofee7ee32020-04-15 02:45:07 -040071# This pattern also affects html_static_path and html_extra_path.
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070072exclude_patterns = []
73
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070074
Davide Pesaventofee7ee32020-04-15 02:45:07 -040075# -- Options for HTML output -------------------------------------------------
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070076
77# The theme to use for HTML and HTML Help pages. See the documentation for
78# a list of builtin themes.
Davide Pesaventofee7ee32020-04-15 02:45:07 -040079#
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070080html_theme = 'named_data_theme'
81
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070082# Add any paths that contain custom themes here, relative to this directory.
Davide Pesaventofee7ee32020-04-15 02:45:07 -040083html_theme_path = ['.']
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -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 Afanasyevbd5b67a2014-09-02 16:06:21 -070090
Davide Pesaventofee7ee32020-04-15 02:45:07 -040091# -- Options for LaTeX output ------------------------------------------------
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070092
93latex_elements = {
Davide Pesaventofee7ee32020-04-15 02:45:07 -040094 # The paper size ('letterpaper' or 'a4paper').
95 #
96 # 'papersize': 'letterpaper',
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -070097
Davide Pesaventofee7ee32020-04-15 02:45:07 -040098 # The font size ('10pt', '11pt' or '12pt').
99 #
100 # 'pointsize': '10pt',
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700101
Davide Pesaventofee7ee32020-04-15 02:45:07 -0400102 # Additional stuff for the LaTeX preamble.
103 #
104 # 'preamble': '',
105
106 # Latex figure (float) alignment
107 #
108 # 'figure_align': 'htbp',
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -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 Pesaventofee7ee32020-04-15 02:45:07 -0400115 ('index', 'ndns-docs.tex', u'NDNS: Domain Name Service for Named Data Networking',
116 author, 'manual'),
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700117]
118
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700119
Davide Pesaventofee7ee32020-04-15 02:45:07 -0400120# -- Options for manual page output ------------------------------------------
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700121
122# One entry per manual page. List of tuples
123# (source start file, name, description, authors, manual section).
124man_pages = [
125 ('manpages/ndns-daemon', 'ndns-daemon', u'Domain Name Service Daemon for Named Data Networking', None, 1),
126]
127
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700128# If true, show URL addresses after external links.
Davide Pesaventofee7ee32020-04-15 02:45:07 -0400129#man_show_urls = True
130
131
132# -- Custom options ----------------------------------------------------------
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700133
134doxylink = {
Davide Pesaventofee7ee32020-04-15 02:45:07 -0400135 'NDNS': ('NDNS.tag', 'doxygen/'),
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -0700136}
137
Davide Pesaventofee7ee32020-04-15 02:45:07 -0400138extlinks = {
139 'issue': ('https://redmine.named-data.net/issues/%s', 'issue #'),
140}