blob: b045c8ca35954d28831777fe765e8a51f93ecc73 [file] [log] [blame]
Jon Wayne Parrott377f2932016-10-04 10:20:36 -07001#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3#
4# google-auth documentation build configuration file, created by
5# sphinx-quickstart on Thu Sep 22 12:50:15 2016.
6#
7# This file is execfile()d with the current directory set to its
8# containing dir.
9#
10# Note that not all possible configuration values are present in this
11# autogenerated file.
12#
13# All configuration values have a default; values that are commented out
14# serve to show the default.
15
Jon Wayne Parrott90c1c1b2016-12-14 12:43:30 -080016import pkg_resources
17
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070018# If extensions (or modules to document with autodoc) are in another directory,
19# add these directories to sys.path here. If the directory is relative to the
20# documentation root, use os.path.abspath to make it absolute, like shown here.
21#
22# import os
23# import sys
24# sys.path.insert(0, os.path.abspath('.'))
25
26# -- General configuration ------------------------------------------------
27
28# If your documentation needs a minimal Sphinx version, state it here.
29#
30# needs_sphinx = '1.0'
31
32# Add any Sphinx extension module names here, as strings. They can be
33# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
34# ones.
35extensions = [
36 'sphinx.ext.autodoc',
37 'sphinx.ext.intersphinx',
38 'sphinx.ext.viewcode',
39 'sphinx.ext.napoleon',
Jon Wayne Parrotta60ab7f2016-10-13 10:52:04 -070040 'sphinx_docstring_typing'
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070041]
42
43# Add any paths that contain templates here, relative to this directory.
44templates_path = ['_templates']
45
46# The suffix(es) of source filenames.
47# You can specify multiple suffix as a list of string:
48#
49# source_suffix = ['.rst', '.md']
50source_suffix = '.rst'
51
52# The encoding of source files.
53#
54# source_encoding = 'utf-8-sig'
55
56# The master toctree document.
57master_doc = 'index'
58
59# General information about the project.
60project = 'google-auth'
61copyright = '2016, Google, Inc.'
62author = 'Google, Inc.'
63
64# The version info for the project you're documenting, acts as replacement for
65# |version| and |release|, also used in various other places throughout the
66# built documents.
67#
68# The short X.Y version.
Jon Wayne Parrott90c1c1b2016-12-14 12:43:30 -080069version = pkg_resources.get_distribution('google-auth').version
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070070# The full version, including alpha/beta/rc tags.
Jon Wayne Parrott90c1c1b2016-12-14 12:43:30 -080071release = version
Jon Wayne Parrott377f2932016-10-04 10:20:36 -070072
73# The language for content autogenerated by Sphinx. Refer to documentation
74# for a list of supported languages.
75#
76# This is also used if you do content translation via gettext catalogs.
77# Usually you set "language" from the command line for these cases.
78language = None
79
80# There are two options for replacing |today|: either, you set today to some
81# non-false value, then it is used:
82#
83# today = ''
84#
85# Else, today_fmt is used as the format for a strftime call.
86#
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.
91# This patterns also effect to html_static_path and html_extra_path
92exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
93
94# The reST default role (used for this markup: `text`) to use for all
95# documents.
96#
97# default_role = None
98
99# If true, '()' will be appended to :func: etc. cross-reference text.
100#
101# add_function_parentheses = True
102
103# If true, the current module name will be prepended to all description
104# unit titles (such as .. function::).
105#
Jon Wayne Parrott50ee3f42016-10-11 17:21:53 -0700106add_module_names = False
Jon Wayne Parrott377f2932016-10-04 10:20:36 -0700107
108# If true, sectionauthor and moduleauthor directives will be shown in the
109# output. They are ignored by default.
110#
111# show_authors = False
112
113# The name of the Pygments (syntax highlighting) style to use.
114pygments_style = 'sphinx'
115
116# A list of ignored prefixes for module index sorting.
117# modindex_common_prefix = []
118
119# If true, keep warnings as "system message" paragraphs in the built documents.
120# keep_warnings = False
121
122# If true, `todo` and `todoList` produce output, else they produce nothing.
123todo_include_todos = False
124
125
126# -- Options for HTML output ----------------------------------------------
127
128# The theme to use for HTML and HTML Help pages. See the documentation for
129# a list of builtin themes.
130#
131html_theme = 'alabaster'
132
133# Theme options are theme-specific and customize the look and feel of a theme
134# further. For a list of options available for each theme, see the
135# documentation.
136#
Jon Wayne Parrott50ee3f42016-10-11 17:21:53 -0700137html_theme_options = {
138 'description': 'Google Auth Library for Python',
139 'github_user': 'GoogleCloudPlatform',
140 'github_repo': 'google-auth-library-python',
141 'github_banner': True,
142 'travis_button': True,
143 'font_family': "'Roboto', Georgia, sans",
144 'head_font_family': "'Roboto', Georgia, serif",
145 'code_font_family': "'Roboto Mono', 'Consolas', monospace",
146}
Jon Wayne Parrott377f2932016-10-04 10:20:36 -0700147
148# Add any paths that contain custom themes here, relative to this directory.
149# html_theme_path = []
150
151# The name for this set of Sphinx documents.
152# "<project> v<release> documentation" by default.
153#
154# html_title = 'google-auth v0.0.1a'
155
156# A shorter title for the navigation bar. Default is the same as html_title.
157#
158# html_short_title = None
159
160# The name of an image file (relative to this directory) to place at the top
161# of the sidebar.
162#
163# html_logo = None
164
165# The name of an image file (relative to this directory) to use as a favicon of
166# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
167# pixels large.
168#
169# html_favicon = None
170
171# Add any paths that contain custom static files (such as style sheets) here,
172# relative to this directory. They are copied after the builtin static files,
173# so a file named "default.css" will overwrite the builtin "default.css".
174html_static_path = ['_static']
175
176# Add any extra paths that contain custom files (such as robots.txt or
177# .htaccess) here, relative to this directory. These files are copied
178# directly to the root of the documentation.
179#
180# html_extra_path = []
181
182# If not None, a 'Last updated on:' timestamp is inserted at every page
183# bottom, using the given strftime format.
184# The empty string is equivalent to '%b %d, %Y'.
185#
186# html_last_updated_fmt = None
187
188# If true, SmartyPants will be used to convert quotes and dashes to
189# typographically correct entities.
190#
191# html_use_smartypants = True
192
193# Custom sidebar templates, maps document names to template names.
194#
Jon Wayne Parrott50ee3f42016-10-11 17:21:53 -0700195
196html_sidebars = {
197 '**': [
198 'about.html',
199 'navigation.html',
200 'relations.html',
201 'searchbox.html',
202 'fonts.html'
203 ]
204}
Jon Wayne Parrott377f2932016-10-04 10:20:36 -0700205
206# Additional templates that should be rendered to pages, maps page names to
207# template names.
208#
209# html_additional_pages = {}
210
211# If false, no module index is generated.
212#
213# html_domain_indices = True
214
215# If false, no index is generated.
216#
217# html_use_index = True
218
219# If true, the index is split into individual pages for each letter.
220#
221# html_split_index = False
222
223# If true, links to the reST sources are added to the pages.
224#
225# html_show_sourcelink = True
226
227# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
228#
229# html_show_sphinx = True
230
231# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
232#
233# html_show_copyright = True
234
235# If true, an OpenSearch description file will be output, and all pages will
236# contain a <link> tag referring to it. The value of this option must be the
237# base URL from which the finished HTML is served.
238#
239# html_use_opensearch = ''
240
241# This is the file name suffix for HTML files (e.g. ".xhtml").
242# html_file_suffix = None
243
244# Language to be used for generating the HTML full-text search index.
245# Sphinx supports the following languages:
246# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
247# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr', 'zh'
248#
249# html_search_language = 'en'
250
251# A dictionary with options for the search language support, empty by default.
252# 'ja' uses this config value.
253# 'zh' user can custom change `jieba` dictionary path.
254#
255# html_search_options = {'type': 'default'}
256
257# The name of a javascript file (relative to the configuration directory) that
258# implements a search results scorer. If empty, the default will be used.
259#
260# html_search_scorer = 'scorer.js'
261
262# Output file base name for HTML help builder.
263htmlhelp_basename = 'google-authdoc'
264
265# -- Options for LaTeX output ---------------------------------------------
266
267latex_elements = {
268 # The paper size ('letterpaper' or 'a4paper').
269 #
270 # 'papersize': 'letterpaper',
271
272 # The font size ('10pt', '11pt' or '12pt').
273 #
274 # 'pointsize': '10pt',
275
276 # Additional stuff for the LaTeX preamble.
277 #
278 # 'preamble': '',
279
280 # Latex figure (float) alignment
281 #
282 # 'figure_align': 'htbp',
283}
284
285# Grouping the document tree into LaTeX files. List of tuples
286# (source start file, target name, title,
287# author, documentclass [howto, manual, or own class]).
288latex_documents = [
289 (master_doc, 'google-auth.tex', 'google-auth Documentation',
290 'Google, Inc.', 'manual'),
291]
292
293# The name of an image file (relative to this directory) to place at the top of
294# the title page.
295#
296# latex_logo = None
297
298# For "manual" documents, if this is true, then toplevel headings are parts,
299# not chapters.
300#
301# latex_use_parts = False
302
303# If true, show page references after internal links.
304#
305# latex_show_pagerefs = False
306
307# If true, show URL addresses after external links.
308#
309# latex_show_urls = False
310
311# Documents to append as an appendix to all manuals.
312#
313# latex_appendices = []
314
315# It false, will not define \strong, \code, itleref, \crossref ... but only
316# \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
317# packages.
318#
319# latex_keep_old_macro_names = True
320
321# If false, no module index is generated.
322#
323# latex_domain_indices = True
324
325
326# -- Options for manual page output ---------------------------------------
327
328# One entry per manual page. List of tuples
329# (source start file, name, description, authors, manual section).
330man_pages = [
331 (master_doc, 'google-auth', 'google-auth Documentation',
332 [author], 1)
333]
334
335# If true, show URL addresses after external links.
336#
337# man_show_urls = False
338
339
340# -- Options for Texinfo output -------------------------------------------
341
342# Grouping the document tree into Texinfo files. List of tuples
343# (source start file, target name, title, author,
344# dir menu entry, description, category)
345texinfo_documents = [
346 (master_doc, 'google-auth', 'google-auth Documentation',
347 author, 'google-auth', 'One line description of project.',
348 'Miscellaneous'),
349]
350
351# Documents to append as an appendix to all manuals.
352#
353# texinfo_appendices = []
354
355# If false, no module index is generated.
356#
357# texinfo_domain_indices = True
358
359# How to display URL addresses: 'footnote', 'no', or 'inline'.
360#
361# texinfo_show_urls = 'footnote'
362
363# If true, do not generate a @detailmenu in the "Top" node's menu.
364#
365# texinfo_no_detailmenu = False
366
367
368# Example configuration for intersphinx: refer to the Python standard library.
Jon Wayne Parrott27f6e1e2016-10-13 09:46:49 -0700369intersphinx_mapping = {
370 'python': ('https://docs.python.org/3.5', None),
Jon Wayne Parrott9a9ce2c2016-10-31 14:59:52 -0700371 'urllib3': ('https://urllib3.readthedocs.io/en/stable', None),
372 'requests': ('http://docs.python-requests.org/en/stable', None),
Jon Wayne Parrott27f6e1e2016-10-13 09:46:49 -0700373}
Jon Wayne Parrott377f2932016-10-04 10:20:36 -0700374
375# Autodoc config
376autoclass_content = 'both'
377autodoc_member_order = 'bysource'
Jon Wayne Parrottb9897dc2016-11-02 20:31:14 -0700378autodoc_mock_imports = ['grpc']