blob: a42dcb228582b230ab0feaf10f82bfbdce9aa30c [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
22
Alex Gaynorc62e91f2013-08-06 19:25:52 -070023# If extensions (or modules to document with autodoc) are in another directory,
24# add these directories to sys.path here. If the directory is relative to the
25# documentation root, use os.path.abspath to make it absolute, like shown here.
Alex Gaynoraf82d5e2013-10-29 17:07:24 -070026sys.path.insert(0, os.path.abspath('.'))
Alex Gaynorc62e91f2013-08-06 19:25:52 -070027
Alex Gaynord21da672013-08-07 08:12:16 -070028# -- General configuration ----------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -070029
30# If your documentation needs a minimal Sphinx version, state it here.
31#needs_sphinx = '1.0'
32
Alex Gaynord21da672013-08-07 08:12:16 -070033# Add any Sphinx extension module names here, as strings. They can be
34# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
35extensions = [
36 'sphinx.ext.autodoc',
Donald Stufft235fa712013-08-11 17:47:17 -040037 'sphinx.ext.doctest',
Alex Gaynord21da672013-08-07 08:12:16 -070038 'sphinx.ext.intersphinx',
39 'sphinx.ext.viewcode',
Alex Gaynoraf82d5e2013-10-29 17:07:24 -070040 'cryptography-docs',
Alex Gaynorfc4e2b72014-01-10 07:30:51 -080041 'sphinxcontrib.spelling',
Alex Gaynord21da672013-08-07 08:12:16 -070042]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070043
44# Add any paths that contain templates here, relative to this directory.
45templates_path = ['_templates']
46
47# The suffix of source filenames.
48source_suffix = '.rst'
49
50# The encoding of source files.
51#source_encoding = 'utf-8-sig'
52
53# The master toctree document.
54master_doc = 'index'
55
56# General information about the project.
Alex Gaynorc113c3b2013-08-07 08:36:20 -070057project = 'Cryptography'
Alex Gaynordd1f5c52014-01-01 06:23:31 -080058copyright = '2013-2014, Individual Contributors'
Alex Gaynorc62e91f2013-08-06 19:25:52 -070059
60# The version info for the project you're documenting, acts as replacement for
61# |version| and |release|, also used in various other places throughout the
62# built documents.
63#
Alex Gaynor2b22fae2014-01-06 13:19:33 -080064
65base_dir = os.path.join(os.path.dirname(__file__), os.pardir)
66about = {}
67with open(os.path.join(base_dir, "cryptography", "__about__.py")) as f:
68 exec(f.read(), about)
69
70version = release = about["__version__"]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070071
72# The language for content autogenerated by Sphinx. Refer to documentation
73# for a list of supported languages.
74#language = None
75
76# There are two options for replacing |today|: either, you set today to some
77# non-false value, then it is used:
78#today = ''
79# Else, today_fmt is used as the format for a strftime call.
80#today_fmt = '%B %d, %Y'
81
82# List of patterns, relative to source directory, that match files and
83# directories to ignore when looking for source files.
84exclude_patterns = ['_build']
85
Alex Gaynord21da672013-08-07 08:12:16 -070086# The reST default role (used for this markup: `text`) to use for all documents
Alex Gaynorc62e91f2013-08-06 19:25:52 -070087#default_role = None
88
89# If true, '()' will be appended to :func: etc. cross-reference text.
90#add_function_parentheses = True
91
92# If true, the current module name will be prepended to all description
93# unit titles (such as .. function::).
94#add_module_names = True
95
96# If true, sectionauthor and moduleauthor directives will be shown in the
97# output. They are ignored by default.
98#show_authors = False
99
100# The name of the Pygments (syntax highlighting) style to use.
101pygments_style = 'sphinx'
102
103# A list of ignored prefixes for module index sorting.
104#modindex_common_prefix = []
105
106
Alex Gaynord21da672013-08-07 08:12:16 -0700107# -- Options for HTML output --------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700108
109# The theme to use for HTML and HTML Help pages. See the documentation for
110# a list of builtin themes.
Alex Gaynor27283cf2013-11-08 10:49:22 -0800111
112if sphinx_rtd_theme:
113 html_theme = "sphinx_rtd_theme"
114 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
115else:
116 html_theme = "default"
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700117
118# Theme options are theme-specific and customize the look and feel of a theme
119# further. For a list of options available for each theme, see the
120# documentation.
121#html_theme_options = {}
122
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700123# The name for this set of Sphinx documents. If None, it defaults to
124# "<project> v<release> documentation".
125#html_title = None
126
127# A shorter title for the navigation bar. Default is the same as html_title.
128#html_short_title = None
129
130# The name of an image file (relative to this directory) to place at the top
131# of the sidebar.
132#html_logo = None
133
134# The name of an image file (within the static path) to use as favicon of the
135# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
136# pixels large.
137#html_favicon = None
138
139# Add any paths that contain custom static files (such as style sheets) here,
140# relative to this directory. They are copied after the builtin static files,
141# so a file named "default.css" will overwrite the builtin "default.css".
142html_static_path = ['_static']
143
144# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
145# using the given strftime format.
146#html_last_updated_fmt = '%b %d, %Y'
147
148# If true, SmartyPants will be used to convert quotes and dashes to
149# typographically correct entities.
150#html_use_smartypants = True
151
152# Custom sidebar templates, maps document names to template names.
153#html_sidebars = {}
154
155# Additional templates that should be rendered to pages, maps page names to
156# template names.
157#html_additional_pages = {}
158
159# If false, no module index is generated.
160#html_domain_indices = True
161
162# If false, no index is generated.
163#html_use_index = True
164
165# If true, the index is split into individual pages for each letter.
166#html_split_index = False
167
168# If true, links to the reST sources are added to the pages.
169#html_show_sourcelink = True
170
171# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
172#html_show_sphinx = True
173
174# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
175#html_show_copyright = True
176
177# If true, an OpenSearch description file will be output, and all pages will
178# contain a <link> tag referring to it. The value of this option must be the
179# base URL from which the finished HTML is served.
180#html_use_opensearch = ''
181
182# This is the file name suffix for HTML files (e.g. ".xhtml").
183#html_file_suffix = None
184
185# Output file base name for HTML help builder.
186htmlhelp_basename = 'Cryptographydoc'
187
188
Alex Gaynord21da672013-08-07 08:12:16 -0700189# -- Options for LaTeX output -------------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700190
191latex_elements = {
Alex Gaynord21da672013-08-07 08:12:16 -0700192 # The paper size ('letterpaper' or 'a4paper').
193 #'papersize': 'letterpaper',
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700194
Alex Gaynord21da672013-08-07 08:12:16 -0700195 # The font size ('10pt', '11pt' or '12pt').
196 #'pointsize': '10pt',
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700197
Alex Gaynord21da672013-08-07 08:12:16 -0700198 # Additional stuff for the LaTeX preamble.
199 #'preamble': '',
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700200}
201
202# Grouping the document tree into LaTeX files. List of tuples
Alex Gaynord21da672013-08-07 08:12:16 -0700203# (source start file, target name, title, author, documentclass [howto/manual])
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700204latex_documents = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700205 ('index', 'Cryptography.tex', 'Cryptography Documentation',
206 'Individual Contributors', 'manual'),
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700207]
208
209# The name of an image file (relative to this directory) to place at the top of
210# the title page.
211#latex_logo = None
212
213# For "manual" documents, if this is true, then toplevel headings are parts,
214# not chapters.
215#latex_use_parts = False
216
217# If true, show page references after internal links.
218#latex_show_pagerefs = False
219
220# If true, show URL addresses after external links.
221#latex_show_urls = False
222
223# Documents to append as an appendix to all manuals.
224#latex_appendices = []
225
226# If false, no module index is generated.
227#latex_domain_indices = True
228
229
Alex Gaynord21da672013-08-07 08:12:16 -0700230# -- Options for manual page output -------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700231
232# One entry per manual page. List of tuples
233# (source start file, name, description, authors, manual section).
234man_pages = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700235 ('index', 'cryptography', 'Cryptography Documentation',
236 ['Individual Contributors'], 1)
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700237]
238
239# If true, show URL addresses after external links.
240#man_show_urls = False
241
242
Alex Gaynord21da672013-08-07 08:12:16 -0700243# -- Options for Texinfo output -----------------------------------------------
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700244
245# Grouping the document tree into Texinfo files. List of tuples
246# (source start file, target name, title, author,
247# dir menu entry, description, category)
248texinfo_documents = [
Alex Gaynorc113c3b2013-08-07 08:36:20 -0700249 ('index', 'Cryptography', 'Cryptography Documentation',
250 'Individual Contributors', 'Cryptography',
Alex Gaynord21da672013-08-07 08:12:16 -0700251 'One line description of project.',
252 'Miscellaneous'),
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700253]
254
255# Documents to append as an appendix to all manuals.
256#texinfo_appendices = []
257
258# If false, no module index is generated.
259#texinfo_domain_indices = True
260
261# How to display URL addresses: 'footnote', 'no', or 'inline'.
262#texinfo_show_urls = 'footnote'
263
Alex Gaynorc62e91f2013-08-06 19:25:52 -0700264# Example configuration for intersphinx: refer to the Python standard library.
265intersphinx_mapping = {'http://docs.python.org/': None}