blob: a924fa437f11b11ce5d786519ed73060ad6311f2 [file] [log] [blame]
Alex Gaynorc62e91f2013-08-06 19:25:52 -07001# -*- coding: utf-8 -*-
Alex Gaynorc37feed2014-03-08 08:32:56 -08002
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12# implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
Alex Gaynorc62e91f2013-08-06 19:25:52 -070016#
17# Cryptography documentation build configuration file, created by
18# sphinx-quickstart on Tue Aug 6 19:19:14 2013.
19#
Alex Gaynord21da672013-08-07 08:12:16 -070020# This file is execfile()d with the current directory set to its containing dir
Alex Gaynorc62e91f2013-08-06 19:25:52 -070021#
22# Note that not all possible configuration values are present in this
23# autogenerated file.
24#
25# All configuration values have a default; values that are commented out
26# serve to show the default.
27
Alex Gaynorc37feed2014-03-08 08:32:56 -080028from __future__ import absolute_import, division, print_function
29
Alex Gaynoraf82d5e2013-10-29 17:07:24 -070030import os
31import sys
32
Alex Gaynor27283cf2013-11-08 10:49:22 -080033try:
34 import sphinx_rtd_theme
35except ImportError:
36 sphinx_rtd_theme = None
37
Alex Gaynoreb656bd2014-01-16 14:43:37 -060038try:
39 from sphinxcontrib import spelling
40except ImportError:
41 spelling = None
42
Alex Gaynor27283cf2013-11-08 10:49:22 -080043
Alex Gaynorc62e91f2013-08-06 19:25:52 -070044# If extensions (or modules to document with autodoc) are in another directory,
45# add these directories to sys.path here. If the directory is relative to the
46# documentation root, use os.path.abspath to make it absolute, like shown here.
Alex Gaynoraf82d5e2013-10-29 17:07:24 -070047sys.path.insert(0, os.path.abspath('.'))
Alex Gaynorc62e91f2013-08-06 19:25:52 -070048
Alex Gaynord21da672013-08-07 08:12:16 -070049# -- General configuration ----------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -070050
51# If your documentation needs a minimal Sphinx version, state it here.
Alex Gaynorffcf3b12014-03-26 13:10:10 -070052# needs_sphinx = '1.0'
Alex Gaynorc62e91f2013-08-06 19:25:52 -070053
Alex Gaynord21da672013-08-07 08:12:16 -070054# Add any Sphinx extension module names here, as strings. They can be
55# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
56extensions = [
57 'sphinx.ext.autodoc',
Donald Stufft235fa712013-08-11 17:47:17 -040058 'sphinx.ext.doctest',
Alex Gaynord21da672013-08-07 08:12:16 -070059 'sphinx.ext.intersphinx',
60 'sphinx.ext.viewcode',
Alex Gaynoraf82d5e2013-10-29 17:07:24 -070061 'cryptography-docs',
Alex Gaynord21da672013-08-07 08:12:16 -070062]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070063
Alex Gaynoreb656bd2014-01-16 14:43:37 -060064if spelling is not None:
65 extensions.append('sphinxcontrib.spelling')
66
Alex Gaynorc62e91f2013-08-06 19:25:52 -070067# Add any paths that contain templates here, relative to this directory.
68templates_path = ['_templates']
69
70# The suffix of source filenames.
71source_suffix = '.rst'
72
73# The encoding of source files.
Alex Gaynorffcf3b12014-03-26 13:10:10 -070074# source_encoding = 'utf-8-sig'
Alex Gaynorc62e91f2013-08-06 19:25:52 -070075
76# The master toctree document.
77master_doc = 'index'
78
79# General information about the project.
Alex Gaynorc113c3b2013-08-07 08:36:20 -070080project = 'Cryptography'
Alex Gaynordd1f5c52014-01-01 06:23:31 -080081copyright = '2013-2014, Individual Contributors'
Alex Gaynorc62e91f2013-08-06 19:25:52 -070082
83# The version info for the project you're documenting, acts as replacement for
84# |version| and |release|, also used in various other places throughout the
85# built documents.
86#
Alex Gaynor2b22fae2014-01-06 13:19:33 -080087
88base_dir = os.path.join(os.path.dirname(__file__), os.pardir)
89about = {}
90with open(os.path.join(base_dir, "cryptography", "__about__.py")) as f:
91 exec(f.read(), about)
92
93version = release = about["__version__"]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070094
95# The language for content autogenerated by Sphinx. Refer to documentation
96# for a list of supported languages.
Alex Gaynorffcf3b12014-03-26 13:10:10 -070097# language = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -070098
99# There are two options for replacing |today|: either, you set today to some
100# non-false value, then it is used:
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700101# today = ''
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700102# Else, today_fmt is used as the format for a strftime call.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700103# today_fmt = '%B %d, %Y'
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700104
105# List of patterns, relative to source directory, that match files and
106# directories to ignore when looking for source files.
107exclude_patterns = ['_build']
108
Alex Gaynord21da672013-08-07 08:12:16 -0700109# The reST default role (used for this markup: `text`) to use for all documents
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700110# default_role = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700111
112# If true, '()' will be appended to :func: etc. cross-reference text.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700113# add_function_parentheses = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700114
115# If true, the current module name will be prepended to all description
116# unit titles (such as .. function::).
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700117# add_module_names = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700118
119# If true, sectionauthor and moduleauthor directives will be shown in the
120# output. They are ignored by default.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700121# show_authors = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700122
123# The name of the Pygments (syntax highlighting) style to use.
124pygments_style = 'sphinx'
125
126# A list of ignored prefixes for module index sorting.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700127# modindex_common_prefix = []
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700128
129
Alex Gaynord21da672013-08-07 08:12:16 -0700130# -- Options for HTML output --------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700131
132# The theme to use for HTML and HTML Help pages. See the documentation for
133# a list of builtin themes.
Alex Gaynor27283cf2013-11-08 10:49:22 -0800134
135if sphinx_rtd_theme:
136 html_theme = "sphinx_rtd_theme"
137 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
138else:
139 html_theme = "default"
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700140
141# Theme options are theme-specific and customize the look and feel of a theme
142# further. For a list of options available for each theme, see the
143# documentation.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700144# html_theme_options = {}
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700145
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700146# The name for this set of Sphinx documents. If None, it defaults to
147# "<project> v<release> documentation".
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700148# html_title = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700149
150# A shorter title for the navigation bar. Default is the same as html_title.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700151# html_short_title = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700152
153# The name of an image file (relative to this directory) to place at the top
154# of the sidebar.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700155# html_logo = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700156
157# The name of an image file (within the static path) to use as favicon of the
158# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
159# pixels large.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700160# html_favicon = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700161
162# Add any paths that contain custom static files (such as style sheets) here,
163# relative to this directory. They are copied after the builtin static files,
164# so a file named "default.css" will overwrite the builtin "default.css".
165html_static_path = ['_static']
166
167# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
168# using the given strftime format.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700169# html_last_updated_fmt = '%b %d, %Y'
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700170
171# If true, SmartyPants will be used to convert quotes and dashes to
172# typographically correct entities.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700173# html_use_smartypants = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700174
175# Custom sidebar templates, maps document names to template names.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700176# html_sidebars = {}
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700177
178# Additional templates that should be rendered to pages, maps page names to
179# template names.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700180# html_additional_pages = {}
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700181
182# If false, no module index is generated.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700183# html_domain_indices = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700184
185# If false, no index is generated.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700186# html_use_index = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700187
188# If true, the index is split into individual pages for each letter.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700189# html_split_index = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700190
191# If true, links to the reST sources are added to the pages.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700192# html_show_sourcelink = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700193
194# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700195# html_show_sphinx = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700196
197# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700198# html_show_copyright = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700199
200# If true, an OpenSearch description file will be output, and all pages will
201# contain a <link> tag referring to it. The value of this option must be the
202# base URL from which the finished HTML is served.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700203# html_use_opensearch = ''
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700204
205# This is the file name suffix for HTML files (e.g. ".xhtml").
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700206# html_file_suffix = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700207
208# Output file base name for HTML help builder.
209htmlhelp_basename = 'Cryptographydoc'
210
211
Alex Gaynord21da672013-08-07 08:12:16 -0700212# -- Options for LaTeX output -------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700213
214latex_elements = {
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700215}
216
217# Grouping the document tree into LaTeX files. List of tuples
Alex Gaynord21da672013-08-07 08:12:16 -0700218# (source start file, target name, title, author, documentclass [howto/manual])
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700219latex_documents = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700220 ('index', 'Cryptography.tex', 'Cryptography Documentation',
221 'Individual Contributors', 'manual'),
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700222]
223
224# The name of an image file (relative to this directory) to place at the top of
225# the title page.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700226# latex_logo = None
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700227
228# For "manual" documents, if this is true, then toplevel headings are parts,
229# not chapters.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700230# latex_use_parts = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700231
232# If true, show page references after internal links.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700233# latex_show_pagerefs = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700234
235# If true, show URL addresses after external links.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700236# latex_show_urls = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700237
238# Documents to append as an appendix to all manuals.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700239# latex_appendices = []
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700240
241# If false, no module index is generated.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700242# latex_domain_indices = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700243
244
Alex Gaynord21da672013-08-07 08:12:16 -0700245# -- Options for manual page output -------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700246
247# One entry per manual page. List of tuples
248# (source start file, name, description, authors, manual section).
249man_pages = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700250 ('index', 'cryptography', 'Cryptography Documentation',
251 ['Individual Contributors'], 1)
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700252]
253
254# If true, show URL addresses after external links.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700255# man_show_urls = False
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700256
257
Alex Gaynord21da672013-08-07 08:12:16 -0700258# -- Options for Texinfo output -----------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700259
260# Grouping the document tree into Texinfo files. List of tuples
261# (source start file, target name, title, author,
262# dir menu entry, description, category)
263texinfo_documents = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700264 ('index', 'Cryptography', 'Cryptography Documentation',
265 'Individual Contributors', 'Cryptography',
Alex Gaynord21da672013-08-07 08:12:16 -0700266 'One line description of project.',
267 'Miscellaneous'),
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700268]
269
270# Documents to append as an appendix to all manuals.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700271# texinfo_appendices = []
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700272
273# If false, no module index is generated.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700274# texinfo_domain_indices = True
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700275
276# How to display URL addresses: 'footnote', 'no', or 'inline'.
Alex Gaynorffcf3b12014-03-26 13:10:10 -0700277# texinfo_show_urls = 'footnote'
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700278
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700279# Example configuration for intersphinx: refer to the Python standard library.
280intersphinx_mapping = {'http://docs.python.org/': None}
David Reiddd97bfe2014-01-16 19:46:22 -0800281
282epub_theme = 'epub'