blob: 9b73a5bb5d8520e048d9dd64f21ff6093fdd9711 [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.
52#needs_sphinx = '1.0'
53
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.
74#source_encoding = 'utf-8-sig'
75
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.
97#language = None
98
99# There are two options for replacing |today|: either, you set today to some
100# non-false value, then it is used:
101#today = ''
102# Else, today_fmt is used as the format for a strftime call.
103#today_fmt = '%B %d, %Y'
104
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 Gaynorc62e91f2013-08-06 19:25:52 -0700110#default_role = None
111
112# If true, '()' will be appended to :func: etc. cross-reference text.
113#add_function_parentheses = True
114
115# If true, the current module name will be prepended to all description
116# unit titles (such as .. function::).
117#add_module_names = True
118
119# If true, sectionauthor and moduleauthor directives will be shown in the
120# output. They are ignored by default.
121#show_authors = False
122
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.
127#modindex_common_prefix = []
128
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.
144#html_theme_options = {}
145
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".
148#html_title = None
149
150# A shorter title for the navigation bar. Default is the same as html_title.
151#html_short_title = None
152
153# The name of an image file (relative to this directory) to place at the top
154# of the sidebar.
155#html_logo = None
156
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.
160#html_favicon = None
161
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.
169#html_last_updated_fmt = '%b %d, %Y'
170
171# If true, SmartyPants will be used to convert quotes and dashes to
172# typographically correct entities.
173#html_use_smartypants = True
174
175# Custom sidebar templates, maps document names to template names.
176#html_sidebars = {}
177
178# Additional templates that should be rendered to pages, maps page names to
179# template names.
180#html_additional_pages = {}
181
182# If false, no module index is generated.
183#html_domain_indices = True
184
185# If false, no index is generated.
186#html_use_index = True
187
188# If true, the index is split into individual pages for each letter.
189#html_split_index = False
190
191# If true, links to the reST sources are added to the pages.
192#html_show_sourcelink = True
193
194# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
195#html_show_sphinx = True
196
197# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
198#html_show_copyright = True
199
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.
203#html_use_opensearch = ''
204
205# This is the file name suffix for HTML files (e.g. ".xhtml").
206#html_file_suffix = None
207
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 Gaynord21da672013-08-07 08:12:16 -0700215 # The paper size ('letterpaper' or 'a4paper').
216 #'papersize': 'letterpaper',
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700217
Alex Gaynord21da672013-08-07 08:12:16 -0700218 # The font size ('10pt', '11pt' or '12pt').
219 #'pointsize': '10pt',
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700220
Alex Gaynord21da672013-08-07 08:12:16 -0700221 # Additional stuff for the LaTeX preamble.
222 #'preamble': '',
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700223}
224
225# Grouping the document tree into LaTeX files. List of tuples
Alex Gaynord21da672013-08-07 08:12:16 -0700226# (source start file, target name, title, author, documentclass [howto/manual])
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700227latex_documents = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700228 ('index', 'Cryptography.tex', 'Cryptography Documentation',
229 'Individual Contributors', 'manual'),
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700230]
231
232# The name of an image file (relative to this directory) to place at the top of
233# the title page.
234#latex_logo = None
235
236# For "manual" documents, if this is true, then toplevel headings are parts,
237# not chapters.
238#latex_use_parts = False
239
240# If true, show page references after internal links.
241#latex_show_pagerefs = False
242
243# If true, show URL addresses after external links.
244#latex_show_urls = False
245
246# Documents to append as an appendix to all manuals.
247#latex_appendices = []
248
249# If false, no module index is generated.
250#latex_domain_indices = True
251
252
Alex Gaynord21da672013-08-07 08:12:16 -0700253# -- Options for manual page output -------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700254
255# One entry per manual page. List of tuples
256# (source start file, name, description, authors, manual section).
257man_pages = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700258 ('index', 'cryptography', 'Cryptography Documentation',
259 ['Individual Contributors'], 1)
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700260]
261
262# If true, show URL addresses after external links.
263#man_show_urls = False
264
265
Alex Gaynord21da672013-08-07 08:12:16 -0700266# -- Options for Texinfo output -----------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700267
268# Grouping the document tree into Texinfo files. List of tuples
269# (source start file, target name, title, author,
270# dir menu entry, description, category)
271texinfo_documents = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700272 ('index', 'Cryptography', 'Cryptography Documentation',
273 'Individual Contributors', 'Cryptography',
Alex Gaynord21da672013-08-07 08:12:16 -0700274 'One line description of project.',
275 'Miscellaneous'),
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700276]
277
278# Documents to append as an appendix to all manuals.
279#texinfo_appendices = []
280
281# If false, no module index is generated.
282#texinfo_domain_indices = True
283
284# How to display URL addresses: 'footnote', 'no', or 'inline'.
285#texinfo_show_urls = 'footnote'
286
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700287# Example configuration for intersphinx: refer to the Python standard library.
288intersphinx_mapping = {'http://docs.python.org/': None}
David Reiddd97bfe2014-01-16 19:46:22 -0800289
290epub_theme = 'epub'