blob: 82be059092706586e57fff6c9ade8fff194974a6 [file] [log] [blame]
Davide Pesaventoec61b742020-04-18 01:00:12 -04001# Configuration file for the Sphinx documentation builder.
2#
3# This file only contains a selection of the most common options. For a full
4# list see the documentation:
Davide Pesavento3c7f6452021-10-02 04:06:26 -04005# https://www.sphinx-doc.org/en/master/usage/configuration.html
Davide Pesaventoec61b742020-04-18 01:00:12 -04006
7# -- Path setup --------------------------------------------------------------
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -04008
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 Pesaventoec61b742020-04-18 01:00:12 -040012#
13# import os
14import sys
15# sys.path.insert(0, os.path.abspath('.'))
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040016
Davide Pesaventoec61b742020-04-18 01:00:12 -040017
18# -- Project information -----------------------------------------------------
19
20project = u'NAC: Name-based Access Control library'
Davide Pesaventoa0ae15d2022-03-09 18:10:23 -050021copyright = u'Copyright © 2014-2022 Regents of the University of California.'
Davide Pesaventoec61b742020-04-18 01:00:12 -040022author = u'Named Data Networking Project'
23
Davide Pesavento3c7f6452021-10-02 04:06:26 -040024# The short X.Y version.
Davide Pesaventoec61b742020-04-18 01:00:12 -040025#version = ''
26
Davide Pesavento3c7f6452021-10-02 04:06:26 -040027# The full version, including alpha/beta/rc tags.
Davide Pesaventoec61b742020-04-18 01:00:12 -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 ---------------------------------------------------
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040038
39# If your documentation needs a minimal Sphinx version, state it here.
Davide Pesaventoec61b742020-04-18 01:00:12 -040040#
Davide Pesavento3c7f6452021-10-02 04:06:26 -040041needs_sphinx = '1.3'
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040042
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 Pesaventoec61b742020-04-18 01:00:12 -040047 'sphinx.ext.extlinks',
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040048 'sphinx.ext.todo',
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040049]
50
51def addExtensionIfExists(extension):
52 try:
53 __import__(extension)
54 extensions.append(extension)
55 except ImportError:
Davide Pesaventoec61b742020-04-18 01:00:12 -040056 sys.stderr.write("Extension '%s' not found. "
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040057 "Some documentation may not build correctly.\n" % extension)
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040058
Davide Pesaventoec61b742020-04-18 01:00:12 -040059addExtensionIfExists('sphinxcontrib.doxylink')
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040060
61# The master toctree document.
62master_doc = 'index'
63
Davide Pesaventoec61b742020-04-18 01:00:12 -040064# Add any paths that contain templates here, relative to this directory.
65templates_path = ['_templates']
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040066
67# List of patterns, relative to source directory, that match files and
68# directories to ignore when looking for source files.
Davide Pesaventoec61b742020-04-18 01:00:12 -040069# This pattern also affects html_static_path and html_extra_path.
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040070exclude_patterns = []
71
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040072
Davide Pesaventoec61b742020-04-18 01:00:12 -040073# -- Options for HTML output -------------------------------------------------
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040074
75# The theme to use for HTML and HTML Help pages. See the documentation for
76# a list of builtin themes.
Davide Pesaventoec61b742020-04-18 01:00:12 -040077#
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040078html_theme = 'named_data_theme'
79
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040080# Add any paths that contain custom themes here, relative to this directory.
Davide Pesaventoec61b742020-04-18 01:00:12 -040081html_theme_path = ['.']
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040082
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 Pesavento3c7f6452021-10-02 04:06:26 -040088html_copy_source = False
89html_show_sourcelink = False
90
91# Disable syntax highlighting of code blocks by default.
92highlight_language = 'none'
93
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040094
Davide Pesaventoec61b742020-04-18 01:00:12 -040095# -- Options for LaTeX output ------------------------------------------------
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040096
97latex_elements = {
Davide Pesaventoec61b742020-04-18 01:00:12 -040098 # The paper size ('letterpaper' or 'a4paper').
99 #
100 # 'papersize': 'letterpaper',
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -0400101
Davide Pesaventoec61b742020-04-18 01:00:12 -0400102 # The font size ('10pt', '11pt' or '12pt').
103 #
104 # 'pointsize': '10pt',
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -0400105
Davide Pesaventoec61b742020-04-18 01:00:12 -0400106 # Additional stuff for the LaTeX preamble.
107 #
108 # 'preamble': '',
109
110 # Latex figure (float) alignment
111 #
112 # 'figure_align': 'htbp',
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -0400113}
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 Pesaventoec61b742020-04-18 01:00:12 -0400119 ('index', 'nac-docs.tex', u'NAC: Name-based Access Control library',
120 author, 'manual'),
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -0400121]
122
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -0400123
Davide Pesaventoec61b742020-04-18 01:00:12 -0400124# -- Options for manual page output ------------------------------------------
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -0400125
126# One entry per manual page. List of tuples
127# (source start file, name, description, authors, manual section).
128man_pages = [
129]
130
131# If true, show URL addresses after external links.
Davide Pesaventoec61b742020-04-18 01:00:12 -0400132#man_show_urls = True
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -0400133
134
Davide Pesaventoec61b742020-04-18 01:00:12 -0400135# -- Custom options ----------------------------------------------------------
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -0400136
137doxylink = {
Davide Pesaventoec61b742020-04-18 01:00:12 -0400138 'nac': ('nac.tag', 'doxygen/'),
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -0400139}
140
Davide Pesaventoec61b742020-04-18 01:00:12 -0400141extlinks = {
142 'issue': ('https://redmine.named-data.net/issues/%s', 'issue #'),
143}