blob: 2ec076be6fd386bb6657a5fdf016f9a3bcc6f0ad [file] [log] [blame]
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -05001# -*- coding: utf-8 -*-
2#
Davide Pesavento133067f2020-04-02 22:08:27 -04003# Configuration file for the Sphinx documentation builder.
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -05004#
Davide Pesavento133067f2020-04-02 22:08:27 -04005# 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
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -05008
Davide Pesavento133067f2020-04-02 22:08:27 -04009# -- Path setup --------------------------------------------------------------
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050010
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 Pesavento133067f2020-04-02 22:08:27 -040014#
15# import os
16import sys
17# sys.path.insert(0, os.path.abspath('.'))
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050018
Davide Pesavento133067f2020-04-02 22:08:27 -040019
20# -- Project information -----------------------------------------------------
21
22project = u'PSync: Full/Partial Synchronization Protocol for NDN'
23copyright = u'Copyright © 2018-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 ---------------------------------------------------
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050040
41# If your documentation needs a minimal Sphinx version, state it here.
Davide Pesavento133067f2020-04-02 22:08:27 -040042#
43needs_sphinx = '1.1'
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050044
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 Pesavento133067f2020-04-02 22:08:27 -040049 'sphinx.ext.extlinks',
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050050 'sphinx.ext.todo',
51]
52
53def addExtensionIfExists(extension):
54 try:
55 __import__(extension)
56 extensions.append(extension)
57 except ImportError:
Davide Pesavento133067f2020-04-02 22:08:27 -040058 sys.stderr.write("Extension '%s' not found. "
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050059 "Some documentation may not build correctly.\n" % extension)
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050060
Davide Pesavento133067f2020-04-02 22:08:27 -040061addExtensionIfExists('sphinxcontrib.doxylink')
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050062
63# The master toctree document.
64master_doc = 'index'
65
Davide Pesavento133067f2020-04-02 22:08:27 -040066# Add any paths that contain templates here, relative to this directory.
67templates_path = ['_templates']
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050068
69# List of patterns, relative to source directory, that match files and
70# directories to ignore when looking for source files.
Davide Pesavento133067f2020-04-02 22:08:27 -040071# This pattern also affects html_static_path and html_extra_path.
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050072exclude_patterns = []
73
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050074
Davide Pesavento133067f2020-04-02 22:08:27 -040075# -- Options for HTML output -------------------------------------------------
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050076
77# The theme to use for HTML and HTML Help pages. See the documentation for
78# a list of builtin themes.
Davide Pesavento133067f2020-04-02 22:08:27 -040079#
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050080html_theme = 'named_data_theme'
81
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050082# Add any paths that contain custom themes here, relative to this directory.
Davide Pesavento133067f2020-04-02 22:08:27 -040083html_theme_path = ['.']
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050084
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".
Ashlesh Gawande465d1492019-01-10 15:12:01 -060088html_static_path = ['_static']
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050089
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050090
Davide Pesavento133067f2020-04-02 22:08:27 -040091# -- Options for LaTeX output ------------------------------------------------
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050092
93latex_elements = {
Davide Pesavento133067f2020-04-02 22:08:27 -040094 # The paper size ('letterpaper' or 'a4paper').
95 #
96 # 'papersize': 'letterpaper',
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050097
Davide Pesavento133067f2020-04-02 22:08:27 -040098 # The font size ('10pt', '11pt' or '12pt').
99 #
100 # 'pointsize': '10pt',
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500101
Davide Pesavento133067f2020-04-02 22:08:27 -0400102 # Additional stuff for the LaTeX preamble.
103 #
104 # 'preamble': '',
105
106 # Latex figure (float) alignment
107 #
108 # 'figure_align': 'htbp',
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500109}
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 Pesavento133067f2020-04-02 22:08:27 -0400115 ('index', 'PSync-docs.tex', u'Full/Partial Synchronization Protocol for NDN',
116 author, 'manual'),
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500117]
118
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500119
Davide Pesavento133067f2020-04-02 22:08:27 -0400120# -- Options for manual page output ------------------------------------------
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500121
122# One entry per manual page. List of tuples
123# (source start file, name, description, authors, manual section).
124man_pages = [
125]
126
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500127# If true, show URL addresses after external links.
Davide Pesavento133067f2020-04-02 22:08:27 -0400128#man_show_urls = True
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500129
130
Davide Pesavento133067f2020-04-02 22:08:27 -0400131# -- Custom options ----------------------------------------------------------
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500132
133doxylink = {
Davide Pesavento133067f2020-04-02 22:08:27 -0400134 'PSync': ('PSync.tag', 'doxygen/'),
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -0500135}
136
Davide Pesavento133067f2020-04-02 22:08:27 -0400137extlinks = {
138 'issue': ('https://redmine.named-data.net/issues/%s', 'issue #'),
139}