blob: 3486fb38c98779af47db190fd0c1d3ff2f13f8df [file] [log] [blame]
Alex Gaynorc62e91f2013-08-06 19:25:52 -07001# -*- coding: utf-8 -*-
2#
3# Cryptography documentation build configuration file, created by
4# sphinx-quickstart on Tue Aug 6 19:19:14 2013.
5#
Alex Gaynord21da672013-08-07 08:12:16 -07006# This file is execfile()d with the current directory set to its containing dir
Alex Gaynorc62e91f2013-08-06 19:25:52 -07007#
8# Note that not all possible configuration values are present in this
9# autogenerated file.
10#
11# All configuration values have a default; values that are commented out
12# serve to show the default.
13
Alex Gaynoraf82d5e2013-10-29 17:07:24 -070014import os
15import sys
16
Alex Gaynor27283cf2013-11-08 10:49:22 -080017try:
18 import sphinx_rtd_theme
19except ImportError:
20 sphinx_rtd_theme = None
21
Alex Gaynoreb656bd2014-01-16 14:43:37 -060022try:
23 from sphinxcontrib import spelling
24except ImportError:
25 spelling = None
26
Alex Gaynor27283cf2013-11-08 10:49:22 -080027
Alex Gaynorc62e91f2013-08-06 19:25:52 -070028# If extensions (or modules to document with autodoc) are in another directory,
29# add these directories to sys.path here. If the directory is relative to the
30# documentation root, use os.path.abspath to make it absolute, like shown here.
Alex Gaynoraf82d5e2013-10-29 17:07:24 -070031sys.path.insert(0, os.path.abspath('.'))
Alex Gaynorc62e91f2013-08-06 19:25:52 -070032
Alex Gaynord21da672013-08-07 08:12:16 -070033# -- General configuration ----------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -070034
35# If your documentation needs a minimal Sphinx version, state it here.
36#needs_sphinx = '1.0'
37
Alex Gaynord21da672013-08-07 08:12:16 -070038# Add any Sphinx extension module names here, as strings. They can be
39# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
40extensions = [
41 'sphinx.ext.autodoc',
Donald Stufft235fa712013-08-11 17:47:17 -040042 'sphinx.ext.doctest',
Alex Gaynord21da672013-08-07 08:12:16 -070043 'sphinx.ext.intersphinx',
44 'sphinx.ext.viewcode',
Alex Gaynoraf82d5e2013-10-29 17:07:24 -070045 'cryptography-docs',
Alex Gaynord21da672013-08-07 08:12:16 -070046]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070047
Alex Gaynoreb656bd2014-01-16 14:43:37 -060048if spelling is not None:
49 extensions.append('sphinxcontrib.spelling')
50
Alex Gaynorc62e91f2013-08-06 19:25:52 -070051# Add any paths that contain templates here, relative to this directory.
52templates_path = ['_templates']
53
54# The suffix of source filenames.
55source_suffix = '.rst'
56
57# The encoding of source files.
58#source_encoding = 'utf-8-sig'
59
60# The master toctree document.
61master_doc = 'index'
62
63# General information about the project.
Alex Gaynorc113c3b2013-08-07 08:36:20 -070064project = 'Cryptography'
Alex Gaynordd1f5c52014-01-01 06:23:31 -080065copyright = '2013-2014, Individual Contributors'
Alex Gaynorc62e91f2013-08-06 19:25:52 -070066
67# The version info for the project you're documenting, acts as replacement for
68# |version| and |release|, also used in various other places throughout the
69# built documents.
70#
Alex Gaynor2b22fae2014-01-06 13:19:33 -080071
72base_dir = os.path.join(os.path.dirname(__file__), os.pardir)
73about = {}
74with open(os.path.join(base_dir, "cryptography", "__about__.py")) as f:
75 exec(f.read(), about)
76
77version = release = about["__version__"]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070078
79# The language for content autogenerated by Sphinx. Refer to documentation
80# for a list of supported languages.
81#language = None
82
83# There are two options for replacing |today|: either, you set today to some
84# non-false value, then it is used:
85#today = ''
86# Else, today_fmt is used as the format for a strftime call.
87#today_fmt = '%B %d, %Y'
88
89# List of patterns, relative to source directory, that match files and
90# directories to ignore when looking for source files.
91exclude_patterns = ['_build']
92
Alex Gaynord21da672013-08-07 08:12:16 -070093# The reST default role (used for this markup: `text`) to use for all documents
Alex Gaynorc62e91f2013-08-06 19:25:52 -070094#default_role = None
95
96# If true, '()' will be appended to :func: etc. cross-reference text.
97#add_function_parentheses = True
98
99# If true, the current module name will be prepended to all description
100# unit titles (such as .. function::).
101#add_module_names = True
102
103# If true, sectionauthor and moduleauthor directives will be shown in the
104# output. They are ignored by default.
105#show_authors = False
106
107# The name of the Pygments (syntax highlighting) style to use.
108pygments_style = 'sphinx'
109
110# A list of ignored prefixes for module index sorting.
111#modindex_common_prefix = []
112
113
Alex Gaynord21da672013-08-07 08:12:16 -0700114# -- Options for HTML output --------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700115
116# The theme to use for HTML and HTML Help pages. See the documentation for
117# a list of builtin themes.
Alex Gaynor27283cf2013-11-08 10:49:22 -0800118
119if sphinx_rtd_theme:
120 html_theme = "sphinx_rtd_theme"
121 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
122else:
123 html_theme = "default"
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700124
125# Theme options are theme-specific and customize the look and feel of a theme
126# further. For a list of options available for each theme, see the
127# documentation.
128#html_theme_options = {}
129
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700130# The name for this set of Sphinx documents. If None, it defaults to
131# "<project> v<release> documentation".
132#html_title = None
133
134# A shorter title for the navigation bar. Default is the same as html_title.
135#html_short_title = None
136
137# The name of an image file (relative to this directory) to place at the top
138# of the sidebar.
139#html_logo = None
140
141# The name of an image file (within the static path) to use as favicon of the
142# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
143# pixels large.
144#html_favicon = None
145
146# Add any paths that contain custom static files (such as style sheets) here,
147# relative to this directory. They are copied after the builtin static files,
148# so a file named "default.css" will overwrite the builtin "default.css".
149html_static_path = ['_static']
150
151# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
152# using the given strftime format.
153#html_last_updated_fmt = '%b %d, %Y'
154
155# If true, SmartyPants will be used to convert quotes and dashes to
156# typographically correct entities.
157#html_use_smartypants = True
158
159# Custom sidebar templates, maps document names to template names.
160#html_sidebars = {}
161
162# Additional templates that should be rendered to pages, maps page names to
163# template names.
164#html_additional_pages = {}
165
166# If false, no module index is generated.
167#html_domain_indices = True
168
169# If false, no index is generated.
170#html_use_index = True
171
172# If true, the index is split into individual pages for each letter.
173#html_split_index = False
174
175# If true, links to the reST sources are added to the pages.
176#html_show_sourcelink = True
177
178# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
179#html_show_sphinx = True
180
181# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
182#html_show_copyright = True
183
184# If true, an OpenSearch description file will be output, and all pages will
185# contain a <link> tag referring to it. The value of this option must be the
186# base URL from which the finished HTML is served.
187#html_use_opensearch = ''
188
189# This is the file name suffix for HTML files (e.g. ".xhtml").
190#html_file_suffix = None
191
192# Output file base name for HTML help builder.
193htmlhelp_basename = 'Cryptographydoc'
194
195
Alex Gaynord21da672013-08-07 08:12:16 -0700196# -- Options for LaTeX output -------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700197
198latex_elements = {
Alex Gaynord21da672013-08-07 08:12:16 -0700199 # The paper size ('letterpaper' or 'a4paper').
200 #'papersize': 'letterpaper',
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700201
Alex Gaynord21da672013-08-07 08:12:16 -0700202 # The font size ('10pt', '11pt' or '12pt').
203 #'pointsize': '10pt',
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700204
Alex Gaynord21da672013-08-07 08:12:16 -0700205 # Additional stuff for the LaTeX preamble.
206 #'preamble': '',
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700207}
208
209# Grouping the document tree into LaTeX files. List of tuples
Alex Gaynord21da672013-08-07 08:12:16 -0700210# (source start file, target name, title, author, documentclass [howto/manual])
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700211latex_documents = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700212 ('index', 'Cryptography.tex', 'Cryptography Documentation',
213 'Individual Contributors', 'manual'),
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700214]
215
216# The name of an image file (relative to this directory) to place at the top of
217# the title page.
218#latex_logo = None
219
220# For "manual" documents, if this is true, then toplevel headings are parts,
221# not chapters.
222#latex_use_parts = False
223
224# If true, show page references after internal links.
225#latex_show_pagerefs = False
226
227# If true, show URL addresses after external links.
228#latex_show_urls = False
229
230# Documents to append as an appendix to all manuals.
231#latex_appendices = []
232
233# If false, no module index is generated.
234#latex_domain_indices = True
235
236
Alex Gaynord21da672013-08-07 08:12:16 -0700237# -- Options for manual page output -------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700238
239# One entry per manual page. List of tuples
240# (source start file, name, description, authors, manual section).
241man_pages = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700242 ('index', 'cryptography', 'Cryptography Documentation',
243 ['Individual Contributors'], 1)
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700244]
245
246# If true, show URL addresses after external links.
247#man_show_urls = False
248
249
Alex Gaynord21da672013-08-07 08:12:16 -0700250# -- Options for Texinfo output -----------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700251
252# Grouping the document tree into Texinfo files. List of tuples
253# (source start file, target name, title, author,
254# dir menu entry, description, category)
255texinfo_documents = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700256 ('index', 'Cryptography', 'Cryptography Documentation',
257 'Individual Contributors', 'Cryptography',
Alex Gaynord21da672013-08-07 08:12:16 -0700258 'One line description of project.',
259 'Miscellaneous'),
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700260]
261
262# Documents to append as an appendix to all manuals.
263#texinfo_appendices = []
264
265# If false, no module index is generated.
266#texinfo_domain_indices = True
267
268# How to display URL addresses: 'footnote', 'no', or 'inline'.
269#texinfo_show_urls = 'footnote'
270
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700271# Example configuration for intersphinx: refer to the Python standard library.
272intersphinx_mapping = {'http://docs.python.org/': None}
David Reiddd97bfe2014-01-16 19:46:22 -0800273
274epub_theme = 'epub'