blob: 5a4c41b1a1f84a9eb200b8cd948d641d075eae1b [file] [log] [blame]
Alex Gaynorc62e91f2013-08-06 19:25:52 -07001# -*- coding: utf-8 -*-
Alex Gaynorc37feed2014-03-08 08:32:56 -08002
Alex Gaynor5951f462014-11-16 09:08:42 -08003# This file is dual licensed under the terms of the Apache License, Version
4# 2.0, and the BSD License. See the LICENSE file in the root of this repository
5# for complete details.
Alex Gaynorc37feed2014-03-08 08:32:56 -08006
Alex Gaynorc62e91f2013-08-06 19:25:52 -07007#
8# Cryptography documentation build configuration file, created by
9# sphinx-quickstart on Tue Aug 6 19:19:14 2013.
10#
Alex Gaynord21da672013-08-07 08:12:16 -070011# This file is execfile()d with the current directory set to its containing dir
Alex Gaynorc62e91f2013-08-06 19:25:52 -070012#
13# Note that not all possible configuration values are present in this
14# autogenerated file.
15#
16# All configuration values have a default; values that are commented out
17# serve to show the default.
18
Alex Gaynorc37feed2014-03-08 08:32:56 -080019from __future__ import absolute_import, division, print_function
20
Alex Gaynoraf82d5e2013-10-29 17:07:24 -070021import os
22import sys
23
Alex Gaynor27283cf2013-11-08 10:49:22 -080024try:
25 import sphinx_rtd_theme
26except ImportError:
27 sphinx_rtd_theme = None
28
Alex Gaynoreb656bd2014-01-16 14:43:37 -060029try:
30 from sphinxcontrib import spelling
31except ImportError:
32 spelling = None
33
Alex Gaynor27283cf2013-11-08 10:49:22 -080034
Alex Gaynorc62e91f2013-08-06 19:25:52 -070035# If extensions (or modules to document with autodoc) are in another directory,
36# add these directories to sys.path here. If the directory is relative to the
37# documentation root, use os.path.abspath to make it absolute, like shown here.
Alex Gaynoraf82d5e2013-10-29 17:07:24 -070038sys.path.insert(0, os.path.abspath('.'))
Alex Gaynorc62e91f2013-08-06 19:25:52 -070039
Alex Gaynord21da672013-08-07 08:12:16 -070040# -- General configuration ----------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -070041
42# If your documentation needs a minimal Sphinx version, state it here.
Alex Gaynorffcf3b12014-03-26 13:10:10 -070043# needs_sphinx = '1.0'
Alex Gaynorc62e91f2013-08-06 19:25:52 -070044
Alex Gaynord21da672013-08-07 08:12:16 -070045# Add any Sphinx extension module names here, as strings. They can be
46# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
47extensions = [
48 'sphinx.ext.autodoc',
Donald Stufft235fa712013-08-11 17:47:17 -040049 'sphinx.ext.doctest',
Alex Gaynord21da672013-08-07 08:12:16 -070050 'sphinx.ext.intersphinx',
51 'sphinx.ext.viewcode',
Alex Gaynoraf82d5e2013-10-29 17:07:24 -070052 'cryptography-docs',
Alex Gaynord21da672013-08-07 08:12:16 -070053]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070054
Alex Gaynoreb656bd2014-01-16 14:43:37 -060055if spelling is not None:
56 extensions.append('sphinxcontrib.spelling')
57
Alex Gaynorc62e91f2013-08-06 19:25:52 -070058# Add any paths that contain templates here, relative to this directory.
59templates_path = ['_templates']
60
Paul Kehrer45efdbc2015-02-12 10:58:22 -060061nitpicky = True
62
Alex Gaynorc62e91f2013-08-06 19:25:52 -070063# The suffix of source filenames.
64source_suffix = '.rst'
65
66# The encoding of source files.
Alex Gaynorffcf3b12014-03-26 13:10:10 -070067# source_encoding = 'utf-8-sig'
Alex Gaynorc62e91f2013-08-06 19:25:52 -070068
69# The master toctree document.
70master_doc = 'index'
71
72# General information about the project.
Alex Gaynorc113c3b2013-08-07 08:36:20 -070073project = 'Cryptography'
Alex Gaynor9f6aa0f2015-01-08 11:00:45 -080074copyright = '2013-2015, Individual Contributors'
Alex Gaynorc62e91f2013-08-06 19:25:52 -070075
76# The version info for the project you're documenting, acts as replacement for
77# |version| and |release|, also used in various other places throughout the
78# built documents.
79#
Alex Gaynor2b22fae2014-01-06 13:19:33 -080080
81base_dir = os.path.join(os.path.dirname(__file__), os.pardir)
82about = {}
Donald Stufftc62a78c2014-11-07 19:17:08 -050083with open(os.path.join(base_dir, "src", "cryptography", "__about__.py")) as f:
Alex Gaynor2b22fae2014-01-06 13:19:33 -080084 exec(f.read(), about)
85
86version = release = about["__version__"]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070087
88# The language for content autogenerated by Sphinx. Refer to documentation
89# for a list of supported languages.
Alex Gaynorffcf3b12014-03-26 13:10:10 -070090# language = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -070091
92# There are two options for replacing |today|: either, you set today to some
93# non-false value, then it is used:
Alex Gaynorffcf3b12014-03-26 13:10:10 -070094# today = ''
Alex Gaynorc62e91f2013-08-06 19:25:52 -070095# Else, today_fmt is used as the format for a strftime call.
Alex Gaynorffcf3b12014-03-26 13:10:10 -070096# today_fmt = '%B %d, %Y'
Alex Gaynorc62e91f2013-08-06 19:25:52 -070097
98# List of patterns, relative to source directory, that match files and
99# directories to ignore when looking for source files.
100exclude_patterns = ['_build']
101
Alex Gaynord21da672013-08-07 08:12:16 -0700102# The reST default role (used for this markup: `text`) to use for all documents
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700103# default_role = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700104
105# If true, '()' will be appended to :func: etc. cross-reference text.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700106# add_function_parentheses = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700107
108# If true, the current module name will be prepended to all description
109# unit titles (such as .. function::).
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700110# add_module_names = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700111
112# If true, sectionauthor and moduleauthor directives will be shown in the
113# output. They are ignored by default.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700114# show_authors = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700115
116# The name of the Pygments (syntax highlighting) style to use.
117pygments_style = 'sphinx'
118
119# A list of ignored prefixes for module index sorting.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700120# modindex_common_prefix = []
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700121
122
Alex Gaynord21da672013-08-07 08:12:16 -0700123# -- Options for HTML output --------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700124
125# The theme to use for HTML and HTML Help pages. See the documentation for
126# a list of builtin themes.
Alex Gaynor27283cf2013-11-08 10:49:22 -0800127
128if sphinx_rtd_theme:
129 html_theme = "sphinx_rtd_theme"
130 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
131else:
132 html_theme = "default"
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700133
134# Theme options are theme-specific and customize the look and feel of a theme
135# further. For a list of options available for each theme, see the
136# documentation.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700137# html_theme_options = {}
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700138
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700139# The name for this set of Sphinx documents. If None, it defaults to
140# "<project> v<release> documentation".
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700141# html_title = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700142
143# A shorter title for the navigation bar. Default is the same as html_title.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700144# html_short_title = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700145
146# The name of an image file (relative to this directory) to place at the top
147# of the sidebar.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700148# html_logo = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700149
150# The name of an image file (within the static path) to use as favicon of the
151# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
152# pixels large.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700153# html_favicon = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700154
155# Add any paths that contain custom static files (such as style sheets) here,
156# relative to this directory. They are copied after the builtin static files,
157# so a file named "default.css" will overwrite the builtin "default.css".
158html_static_path = ['_static']
159
160# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
161# using the given strftime format.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700162# html_last_updated_fmt = '%b %d, %Y'
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700163
164# If true, SmartyPants will be used to convert quotes and dashes to
165# typographically correct entities.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700166# html_use_smartypants = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700167
168# Custom sidebar templates, maps document names to template names.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700169# html_sidebars = {}
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700170
171# Additional templates that should be rendered to pages, maps page names to
172# template names.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700173# html_additional_pages = {}
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700174
175# If false, no module index is generated.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700176# html_domain_indices = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700177
178# If false, no index is generated.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700179# html_use_index = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700180
181# If true, the index is split into individual pages for each letter.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700182# html_split_index = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700183
184# If true, links to the reST sources are added to the pages.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700185# html_show_sourcelink = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700186
187# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700188# html_show_sphinx = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700189
190# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700191# html_show_copyright = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700192
193# If true, an OpenSearch description file will be output, and all pages will
194# contain a <link> tag referring to it. The value of this option must be the
195# base URL from which the finished HTML is served.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700196# html_use_opensearch = ''
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700197
198# This is the file name suffix for HTML files (e.g. ".xhtml").
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700199# html_file_suffix = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700200
201# Output file base name for HTML help builder.
202htmlhelp_basename = 'Cryptographydoc'
203
204
Alex Gaynord21da672013-08-07 08:12:16 -0700205# -- Options for LaTeX output -------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700206
207latex_elements = {
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700208}
209
210# Grouping the document tree into LaTeX files. List of tuples
Alex Gaynord21da672013-08-07 08:12:16 -0700211# (source start file, target name, title, author, documentclass [howto/manual])
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700212latex_documents = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700213 ('index', 'Cryptography.tex', 'Cryptography Documentation',
214 'Individual Contributors', 'manual'),
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700215]
216
217# The name of an image file (relative to this directory) to place at the top of
218# the title page.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700219# latex_logo = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700220
221# For "manual" documents, if this is true, then toplevel headings are parts,
222# not chapters.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700223# latex_use_parts = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700224
225# If true, show page references after internal links.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700226# latex_show_pagerefs = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700227
228# If true, show URL addresses after external links.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700229# latex_show_urls = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700230
231# Documents to append as an appendix to all manuals.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700232# latex_appendices = []
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700233
234# If false, no module index is generated.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700235# latex_domain_indices = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700236
237
Alex Gaynord21da672013-08-07 08:12:16 -0700238# -- Options for manual page output -------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700239
240# One entry per manual page. List of tuples
241# (source start file, name, description, authors, manual section).
242man_pages = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700243 ('index', 'cryptography', 'Cryptography Documentation',
244 ['Individual Contributors'], 1)
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700245]
246
247# If true, show URL addresses after external links.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700248# man_show_urls = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700249
250
Alex Gaynord21da672013-08-07 08:12:16 -0700251# -- Options for Texinfo output -----------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700252
253# Grouping the document tree into Texinfo files. List of tuples
254# (source start file, target name, title, author,
255# dir menu entry, description, category)
256texinfo_documents = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700257 ('index', 'Cryptography', 'Cryptography Documentation',
258 'Individual Contributors', 'Cryptography',
Alex Gaynord21da672013-08-07 08:12:16 -0700259 'One line description of project.',
260 'Miscellaneous'),
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700261]
262
263# Documents to append as an appendix to all manuals.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700264# texinfo_appendices = []
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700265
266# If false, no module index is generated.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700267# texinfo_domain_indices = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700268
269# How to display URL addresses: 'footnote', 'no', or 'inline'.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700270# texinfo_show_urls = 'footnote'
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700271
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700272# Example configuration for intersphinx: refer to the Python standard library.
Paul Kehrer45efdbc2015-02-12 10:58:22 -0600273intersphinx_mapping = {'https://docs.python.org/3': None}
David Reiddd97bfe2014-01-16 19:46:22 -0800274
275epub_theme = 'epub'