blob: 5fa4789d3ebd474c00a99270964a255c421a3c82 [file] [log] [blame]
Yingdi Yu06a678a2014-08-01 17:07:08 -07001# -*- coding: utf-8 -*-
2#
Davide Pesaventoa0546db2020-04-01 19:18:04 -04003# Configuration file for the Sphinx documentation builder.
Yingdi Yu06a678a2014-08-01 17:07:08 -07004#
Davide Pesaventoa0546db2020-04-01 19:18:04 -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
Yingdi Yu06a678a2014-08-01 17:07:08 -07008
Davide Pesaventoa0546db2020-04-01 19:18:04 -04009# -- Path setup --------------------------------------------------------------
Yingdi Yu06a678a2014-08-01 17:07:08 -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 Pesaventoa0546db2020-04-01 19:18:04 -040014#
15# import os
16import sys
17# sys.path.insert(0, os.path.abspath('.'))
Yingdi Yu06a678a2014-08-01 17:07:08 -070018
Davide Pesaventoa0546db2020-04-01 19:18:04 -040019
20# -- Project information -----------------------------------------------------
21
22project = u'ChronoSync: A Synchronization Protocol for NDN'
23copyright = u'Copyright © 2012-2020 Regents of the University of California.'
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 ---------------------------------------------------
Yingdi Yu06a678a2014-08-01 17:07:08 -070040
41# If your documentation needs a minimal Sphinx version, state it here.
Davide Pesaventoa0546db2020-04-01 19:18:04 -040042#
43needs_sphinx = '1.1'
Yingdi Yu06a678a2014-08-01 17:07:08 -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 = [
49 'sphinx.ext.todo',
50]
51
52def addExtensionIfExists(extension):
53 try:
54 __import__(extension)
55 extensions.append(extension)
56 except ImportError:
Davide Pesaventoa0546db2020-04-01 19:18:04 -040057 sys.stderr.write("Extension '%s' not found. "
Yingdi Yu06a678a2014-08-01 17:07:08 -070058 "Some documentation may not build correctly.\n" % extension)
Yingdi Yu06a678a2014-08-01 17:07:08 -070059
Davide Pesaventoa0546db2020-04-01 19:18:04 -040060addExtensionIfExists('sphinxcontrib.doxylink')
Yingdi Yu06a678a2014-08-01 17:07:08 -070061
62# The master toctree document.
63master_doc = 'index'
64
Davide Pesaventoa0546db2020-04-01 19:18:04 -040065# Add any paths that contain templates here, relative to this directory.
66templates_path = ['_templates']
Yingdi Yu06a678a2014-08-01 17:07:08 -070067
68# List of patterns, relative to source directory, that match files and
69# directories to ignore when looking for source files.
Davide Pesaventoa0546db2020-04-01 19:18:04 -040070# This pattern also affects html_static_path and html_extra_path.
71exclude_patterns = ['RELEASE_NOTES.rst']
Yingdi Yu06a678a2014-08-01 17:07:08 -070072
73
Davide Pesaventoa0546db2020-04-01 19:18:04 -040074# -- Options for HTML output -------------------------------------------------
Yingdi Yu06a678a2014-08-01 17:07:08 -070075
76# The theme to use for HTML and HTML Help pages. See the documentation for
77# a list of builtin themes.
Davide Pesaventoa0546db2020-04-01 19:18:04 -040078#
Yingdi Yu06a678a2014-08-01 17:07:08 -070079html_theme = 'named_data_theme'
80
Yingdi Yu06a678a2014-08-01 17:07:08 -070081# Add any paths that contain custom themes here, relative to this directory.
Davide Pesaventoa0546db2020-04-01 19:18:04 -040082html_theme_path = ['.']
Yingdi Yu06a678a2014-08-01 17:07:08 -070083
84# Add any paths that contain custom static files (such as style sheets) here,
85# relative to this directory. They are copied after the builtin static files,
86# so a file named "default.css" will overwrite the builtin "default.css".
Davide Pesaventoa0546db2020-04-01 19:18:04 -040087html_static_path = ['_static']
Yingdi Yu06a678a2014-08-01 17:07:08 -070088
89
Davide Pesaventoa0546db2020-04-01 19:18:04 -040090# -- Options for LaTeX output ------------------------------------------------
Yingdi Yu06a678a2014-08-01 17:07:08 -070091
92latex_elements = {
Davide Pesaventoa0546db2020-04-01 19:18:04 -040093 # The paper size ('letterpaper' or 'a4paper').
94 #
95 # 'papersize': 'letterpaper',
Yingdi Yu06a678a2014-08-01 17:07:08 -070096
Davide Pesaventoa0546db2020-04-01 19:18:04 -040097 # The font size ('10pt', '11pt' or '12pt').
98 #
99 # 'pointsize': '10pt',
Yingdi Yu06a678a2014-08-01 17:07:08 -0700100
Davide Pesaventoa0546db2020-04-01 19:18:04 -0400101 # Additional stuff for the LaTeX preamble.
102 #
103 # 'preamble': '',
104
105 # Latex figure (float) alignment
106 #
107 # 'figure_align': 'htbp',
Yingdi Yu06a678a2014-08-01 17:07:08 -0700108}
109
110# Grouping the document tree into LaTeX files. List of tuples
111# (source start file, target name, title,
112# author, documentclass [howto, manual, or own class]).
113latex_documents = [
Davide Pesaventoa0546db2020-04-01 19:18:04 -0400114 ('index', 'ChronoSync-docs.tex', u'A Synchronization Protocol for NDN',
115 author, 'manual'),
Yingdi Yu06a678a2014-08-01 17:07:08 -0700116]
117
Yingdi Yu06a678a2014-08-01 17:07:08 -0700118
Davide Pesaventoa0546db2020-04-01 19:18:04 -0400119# -- Options for manual page output ------------------------------------------
Yingdi Yu06a678a2014-08-01 17:07:08 -0700120
121# One entry per manual page. List of tuples
122# (source start file, name, description, authors, manual section).
123man_pages = [
124]
125
Yingdi Yu06a678a2014-08-01 17:07:08 -0700126# If true, show URL addresses after external links.
Davide Pesaventoa0546db2020-04-01 19:18:04 -0400127#man_show_urls = True
Yingdi Yu06a678a2014-08-01 17:07:08 -0700128
129
Davide Pesaventoa0546db2020-04-01 19:18:04 -0400130# -- Custom options ----------------------------------------------------------
Yingdi Yu06a678a2014-08-01 17:07:08 -0700131
132doxylink = {
Davide Pesaventoa0546db2020-04-01 19:18:04 -0400133 'ChronoSync': ('ChronoSync.tag', 'doxygen/'),
Yingdi Yu06a678a2014-08-01 17:07:08 -0700134}