blob: f674ebe89ccd501fa2634c7acd1da83bfe0f3983 [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
61# The suffix of source filenames.
62source_suffix = '.rst'
63
64# The encoding of source files.
Alex Gaynorffcf3b12014-03-26 13:10:10 -070065# source_encoding = 'utf-8-sig'
Alex Gaynorc62e91f2013-08-06 19:25:52 -070066
67# The master toctree document.
68master_doc = 'index'
69
70# General information about the project.
Alex Gaynorc113c3b2013-08-07 08:36:20 -070071project = 'Cryptography'
Alex Gaynor9f6aa0f2015-01-08 11:00:45 -080072copyright = '2013-2015, Individual Contributors'
Alex Gaynorc62e91f2013-08-06 19:25:52 -070073
74# The version info for the project you're documenting, acts as replacement for
75# |version| and |release|, also used in various other places throughout the
76# built documents.
77#
Alex Gaynor2b22fae2014-01-06 13:19:33 -080078
79base_dir = os.path.join(os.path.dirname(__file__), os.pardir)
80about = {}
Donald Stufftc62a78c2014-11-07 19:17:08 -050081with open(os.path.join(base_dir, "src", "cryptography", "__about__.py")) as f:
Alex Gaynor2b22fae2014-01-06 13:19:33 -080082 exec(f.read(), about)
83
84version = release = about["__version__"]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070085
86# The language for content autogenerated by Sphinx. Refer to documentation
87# for a list of supported languages.
Alex Gaynorffcf3b12014-03-26 13:10:10 -070088# language = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -070089
90# There are two options for replacing |today|: either, you set today to some
91# non-false value, then it is used:
Alex Gaynorffcf3b12014-03-26 13:10:10 -070092# today = ''
Alex Gaynorc62e91f2013-08-06 19:25:52 -070093# Else, today_fmt is used as the format for a strftime call.
Alex Gaynorffcf3b12014-03-26 13:10:10 -070094# today_fmt = '%B %d, %Y'
Alex Gaynorc62e91f2013-08-06 19:25:52 -070095
96# List of patterns, relative to source directory, that match files and
97# directories to ignore when looking for source files.
98exclude_patterns = ['_build']
99
Alex Gaynord21da672013-08-07 08:12:16 -0700100# The reST default role (used for this markup: `text`) to use for all documents
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700101# default_role = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700102
103# If true, '()' will be appended to :func: etc. cross-reference text.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700104# add_function_parentheses = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700105
106# If true, the current module name will be prepended to all description
107# unit titles (such as .. function::).
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700108# add_module_names = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700109
110# If true, sectionauthor and moduleauthor directives will be shown in the
111# output. They are ignored by default.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700112# show_authors = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700113
114# The name of the Pygments (syntax highlighting) style to use.
115pygments_style = 'sphinx'
116
117# A list of ignored prefixes for module index sorting.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700118# modindex_common_prefix = []
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700119
120
Alex Gaynord21da672013-08-07 08:12:16 -0700121# -- Options for HTML output --------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700122
123# The theme to use for HTML and HTML Help pages. See the documentation for
124# a list of builtin themes.
Alex Gaynor27283cf2013-11-08 10:49:22 -0800125
126if sphinx_rtd_theme:
127 html_theme = "sphinx_rtd_theme"
128 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
129else:
130 html_theme = "default"
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700131
132# Theme options are theme-specific and customize the look and feel of a theme
133# further. For a list of options available for each theme, see the
134# documentation.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700135# html_theme_options = {}
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700136
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700137# The name for this set of Sphinx documents. If None, it defaults to
138# "<project> v<release> documentation".
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700139# html_title = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700140
141# A shorter title for the navigation bar. Default is the same as html_title.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700142# html_short_title = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700143
144# The name of an image file (relative to this directory) to place at the top
145# of the sidebar.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700146# html_logo = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700147
148# The name of an image file (within the static path) to use as favicon of the
149# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
150# pixels large.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700151# html_favicon = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700152
153# Add any paths that contain custom static files (such as style sheets) here,
154# relative to this directory. They are copied after the builtin static files,
155# so a file named "default.css" will overwrite the builtin "default.css".
156html_static_path = ['_static']
157
158# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
159# using the given strftime format.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700160# html_last_updated_fmt = '%b %d, %Y'
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700161
162# If true, SmartyPants will be used to convert quotes and dashes to
163# typographically correct entities.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700164# html_use_smartypants = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700165
166# Custom sidebar templates, maps document names to template names.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700167# html_sidebars = {}
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700168
169# Additional templates that should be rendered to pages, maps page names to
170# template names.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700171# html_additional_pages = {}
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700172
173# If false, no module index is generated.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700174# html_domain_indices = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700175
176# If false, no index is generated.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700177# html_use_index = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700178
179# If true, the index is split into individual pages for each letter.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700180# html_split_index = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700181
182# If true, links to the reST sources are added to the pages.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700183# html_show_sourcelink = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700184
185# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700186# html_show_sphinx = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700187
188# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700189# html_show_copyright = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700190
191# If true, an OpenSearch description file will be output, and all pages will
192# contain a <link> tag referring to it. The value of this option must be the
193# base URL from which the finished HTML is served.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700194# html_use_opensearch = ''
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700195
196# This is the file name suffix for HTML files (e.g. ".xhtml").
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700197# html_file_suffix = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700198
199# Output file base name for HTML help builder.
200htmlhelp_basename = 'Cryptographydoc'
201
202
Alex Gaynord21da672013-08-07 08:12:16 -0700203# -- Options for LaTeX output -------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700204
205latex_elements = {
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700206}
207
208# Grouping the document tree into LaTeX files. List of tuples
Alex Gaynord21da672013-08-07 08:12:16 -0700209# (source start file, target name, title, author, documentclass [howto/manual])
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700210latex_documents = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700211 ('index', 'Cryptography.tex', 'Cryptography Documentation',
212 'Individual Contributors', 'manual'),
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700213]
214
215# The name of an image file (relative to this directory) to place at the top of
216# the title page.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700217# latex_logo = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700218
219# For "manual" documents, if this is true, then toplevel headings are parts,
220# not chapters.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700221# latex_use_parts = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700222
223# If true, show page references after internal links.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700224# latex_show_pagerefs = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700225
226# If true, show URL addresses after external links.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700227# latex_show_urls = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700228
229# Documents to append as an appendix to all manuals.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700230# latex_appendices = []
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700231
232# If false, no module index is generated.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700233# latex_domain_indices = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700234
235
Alex Gaynord21da672013-08-07 08:12:16 -0700236# -- Options for manual page output -------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700237
238# One entry per manual page. List of tuples
239# (source start file, name, description, authors, manual section).
240man_pages = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700241 ('index', 'cryptography', 'Cryptography Documentation',
242 ['Individual Contributors'], 1)
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700243]
244
245# If true, show URL addresses after external links.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700246# man_show_urls = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700247
248
Alex Gaynord21da672013-08-07 08:12:16 -0700249# -- Options for Texinfo output -----------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700250
251# Grouping the document tree into Texinfo files. List of tuples
252# (source start file, target name, title, author,
253# dir menu entry, description, category)
254texinfo_documents = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700255 ('index', 'Cryptography', 'Cryptography Documentation',
256 'Individual Contributors', 'Cryptography',
Alex Gaynord21da672013-08-07 08:12:16 -0700257 'One line description of project.',
258 'Miscellaneous'),
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700259]
260
261# Documents to append as an appendix to all manuals.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700262# texinfo_appendices = []
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700263
264# If false, no module index is generated.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700265# texinfo_domain_indices = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700266
267# How to display URL addresses: 'footnote', 'no', or 'inline'.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700268# texinfo_show_urls = 'footnote'
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700269
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700270# Example configuration for intersphinx: refer to the Python standard library.
Alex Gaynore9df2942014-12-12 10:56:26 -0800271intersphinx_mapping = {'https://docs.python.org/': None}
David Reiddd97bfe2014-01-16 19:46:22 -0800272
273epub_theme = 'epub'