blob: 495d44132c4c7f5833ceeeeadf4420996d31d67a [file] [log] [blame]
Davide Pesavento133067f2020-04-02 22:08:27 -04001# Configuration file for the Sphinx documentation builder.
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -05002#
Davide Pesavento133067f2020-04-02 22:08:27 -04003# This file only contains a selection of the most common options. For a full
4# list see the documentation:
Davide Pesavento51189592021-10-02 22:34:34 -04005# https://www.sphinx-doc.org/en/master/usage/configuration.html
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -05006
Davide Pesavento133067f2020-04-02 22:08:27 -04007# -- Path setup --------------------------------------------------------------
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -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 Pesavento133067f2020-04-02 22:08:27 -040012#
13# import os
14import sys
15# sys.path.insert(0, os.path.abspath('.'))
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050016
Davide Pesavento133067f2020-04-02 22:08:27 -040017
18# -- Project information -----------------------------------------------------
19
20project = u'PSync: Full/Partial Synchronization Protocol for NDN'
Davide Pesavento51189592021-10-02 22:34:34 -040021copyright = u'Copyright © 2018-2021 Named Data Networking Project.'
Davide Pesavento133067f2020-04-02 22:08:27 -040022author = u'Named Data Networking Project'
23
Davide Pesavento51189592021-10-02 22:34:34 -040024# The short X.Y version.
Davide Pesavento133067f2020-04-02 22:08:27 -040025#version = ''
26
Davide Pesavento51189592021-10-02 22:34:34 -040027# The full version, including alpha/beta/rc tags.
Davide Pesavento133067f2020-04-02 22:08:27 -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 ---------------------------------------------------
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050038
39# If your documentation needs a minimal Sphinx version, state it here.
Davide Pesavento133067f2020-04-02 22:08:27 -040040#
Davide Pesavento51189592021-10-02 22:34:34 -040041needs_sphinx = '1.3'
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -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 Pesavento133067f2020-04-02 22:08:27 -040047 'sphinx.ext.extlinks',
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050048 'sphinx.ext.todo',
49]
50
51def addExtensionIfExists(extension):
52 try:
53 __import__(extension)
54 extensions.append(extension)
55 except ImportError:
Davide Pesavento133067f2020-04-02 22:08:27 -040056 sys.stderr.write("Extension '%s' not found. "
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050057 "Some documentation may not build correctly.\n" % extension)
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050058
Davide Pesavento133067f2020-04-02 22:08:27 -040059addExtensionIfExists('sphinxcontrib.doxylink')
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050060
61# The master toctree document.
62master_doc = 'index'
63
Davide Pesavento133067f2020-04-02 22:08:27 -040064# Add any paths that contain templates here, relative to this directory.
65templates_path = ['_templates']
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050066
67# List of patterns, relative to source directory, that match files and
68# directories to ignore when looking for source files.
Davide Pesavento133067f2020-04-02 22:08:27 -040069# This pattern also affects html_static_path and html_extra_path.
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050070exclude_patterns = []
71
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050072
Davide Pesavento133067f2020-04-02 22:08:27 -040073# -- Options for HTML output -------------------------------------------------
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050074
75# The theme to use for HTML and HTML Help pages. See the documentation for
76# a list of builtin themes.
Davide Pesavento133067f2020-04-02 22:08:27 -040077#
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050078html_theme = 'named_data_theme'
79
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050080# Add any paths that contain custom themes here, relative to this directory.
Davide Pesavento133067f2020-04-02 22:08:27 -040081html_theme_path = ['.']
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -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".
Ashlesh Gawande465d1492019-01-10 15:12:01 -060086html_static_path = ['_static']
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050087
Davide Pesavento51189592021-10-02 22:34:34 -040088html_copy_source = False
89html_show_sourcelink = False
90
91# Disable syntax highlighting of code blocks by default.
92highlight_language = 'none'
93
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050094
Davide Pesavento133067f2020-04-02 22:08:27 -040095# -- Options for LaTeX output ------------------------------------------------
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050096
97latex_elements = {
Davide Pesavento133067f2020-04-02 22:08:27 -040098 # The paper size ('letterpaper' or 'a4paper').
99 #
100 # 'papersize': 'letterpaper',
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500101
Davide Pesavento133067f2020-04-02 22:08:27 -0400102 # The font size ('10pt', '11pt' or '12pt').
103 #
104 # 'pointsize': '10pt',
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500105
Davide Pesavento133067f2020-04-02 22:08:27 -0400106 # Additional stuff for the LaTeX preamble.
107 #
108 # 'preamble': '',
109
110 # Latex figure (float) alignment
111 #
112 # 'figure_align': 'htbp',
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -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 Pesavento133067f2020-04-02 22:08:27 -0400119 ('index', 'PSync-docs.tex', u'Full/Partial Synchronization Protocol for NDN',
120 author, 'manual'),
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500121]
122
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500123
Davide Pesavento133067f2020-04-02 22:08:27 -0400124# -- Options for manual page output ------------------------------------------
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500125
126# One entry per manual page. List of tuples
127# (source start file, name, description, authors, manual section).
128man_pages = [
129]
130
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500131# If true, show URL addresses after external links.
Davide Pesavento133067f2020-04-02 22:08:27 -0400132#man_show_urls = True
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500133
134
Davide Pesavento133067f2020-04-02 22:08:27 -0400135# -- Custom options ----------------------------------------------------------
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500136
137doxylink = {
Davide Pesavento133067f2020-04-02 22:08:27 -0400138 'PSync': ('PSync.tag', 'doxygen/'),
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500139}
140
Davide Pesavento133067f2020-04-02 22:08:27 -0400141extlinks = {
142 'issue': ('https://redmine.named-data.net/issues/%s', 'issue #'),
143}