blob: 2ac5f3428ede07f67021dddeb441d877d4b9b076 [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',
Jon Wayne Parrott50ee3f42016-10-11 17:21:53 -0700202 ]
203}
Jon Wayne Parrott377f2932016-10-04 10:20:36 -0700204
205# Additional templates that should be rendered to pages, maps page names to
206# template names.
207#
208# html_additional_pages = {}
209
210# If false, no module index is generated.
211#
212# html_domain_indices = True
213
214# If false, no index is generated.
215#
216# html_use_index = True
217
218# If true, the index is split into individual pages for each letter.
219#
220# html_split_index = False
221
222# If true, links to the reST sources are added to the pages.
223#
224# html_show_sourcelink = True
225
226# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
227#
228# html_show_sphinx = True
229
230# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
231#
232# html_show_copyright = True
233
234# If true, an OpenSearch description file will be output, and all pages will
235# contain a <link> tag referring to it. The value of this option must be the
236# base URL from which the finished HTML is served.
237#
238# html_use_opensearch = ''
239
240# This is the file name suffix for HTML files (e.g. ".xhtml").
241# html_file_suffix = None
242
243# Language to be used for generating the HTML full-text search index.
244# Sphinx supports the following languages:
245# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
246# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr', 'zh'
247#
248# html_search_language = 'en'
249
250# A dictionary with options for the search language support, empty by default.
251# 'ja' uses this config value.
252# 'zh' user can custom change `jieba` dictionary path.
253#
254# html_search_options = {'type': 'default'}
255
256# The name of a javascript file (relative to the configuration directory) that
257# implements a search results scorer. If empty, the default will be used.
258#
259# html_search_scorer = 'scorer.js'
260
261# Output file base name for HTML help builder.
262htmlhelp_basename = 'google-authdoc'
263
264# -- Options for LaTeX output ---------------------------------------------
265
266latex_elements = {
267 # The paper size ('letterpaper' or 'a4paper').
268 #
269 # 'papersize': 'letterpaper',
270
271 # The font size ('10pt', '11pt' or '12pt').
272 #
273 # 'pointsize': '10pt',
274
275 # Additional stuff for the LaTeX preamble.
276 #
277 # 'preamble': '',
278
279 # Latex figure (float) alignment
280 #
281 # 'figure_align': 'htbp',
282}
283
284# Grouping the document tree into LaTeX files. List of tuples
285# (source start file, target name, title,
286# author, documentclass [howto, manual, or own class]).
287latex_documents = [
288 (master_doc, 'google-auth.tex', 'google-auth Documentation',
289 'Google, Inc.', 'manual'),
290]
291
292# The name of an image file (relative to this directory) to place at the top of
293# the title page.
294#
295# latex_logo = None
296
297# For "manual" documents, if this is true, then toplevel headings are parts,
298# not chapters.
299#
300# latex_use_parts = False
301
302# If true, show page references after internal links.
303#
304# latex_show_pagerefs = False
305
306# If true, show URL addresses after external links.
307#
308# latex_show_urls = False
309
310# Documents to append as an appendix to all manuals.
311#
312# latex_appendices = []
313
314# It false, will not define \strong, \code, itleref, \crossref ... but only
315# \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
316# packages.
317#
318# latex_keep_old_macro_names = True
319
320# If false, no module index is generated.
321#
322# latex_domain_indices = True
323
324
325# -- Options for manual page output ---------------------------------------
326
327# One entry per manual page. List of tuples
328# (source start file, name, description, authors, manual section).
329man_pages = [
330 (master_doc, 'google-auth', 'google-auth Documentation',
331 [author], 1)
332]
333
334# If true, show URL addresses after external links.
335#
336# man_show_urls = False
337
338
339# -- Options for Texinfo output -------------------------------------------
340
341# Grouping the document tree into Texinfo files. List of tuples
342# (source start file, target name, title, author,
343# dir menu entry, description, category)
344texinfo_documents = [
345 (master_doc, 'google-auth', 'google-auth Documentation',
346 author, 'google-auth', 'One line description of project.',
347 'Miscellaneous'),
348]
349
350# Documents to append as an appendix to all manuals.
351#
352# texinfo_appendices = []
353
354# If false, no module index is generated.
355#
356# texinfo_domain_indices = True
357
358# How to display URL addresses: 'footnote', 'no', or 'inline'.
359#
360# texinfo_show_urls = 'footnote'
361
362# If true, do not generate a @detailmenu in the "Top" node's menu.
363#
364# texinfo_no_detailmenu = False
365
366
367# Example configuration for intersphinx: refer to the Python standard library.
Jon Wayne Parrott27f6e1e2016-10-13 09:46:49 -0700368intersphinx_mapping = {
369 'python': ('https://docs.python.org/3.5', None),
Jon Wayne Parrott9a9ce2c2016-10-31 14:59:52 -0700370 'urllib3': ('https://urllib3.readthedocs.io/en/stable', None),
371 'requests': ('http://docs.python-requests.org/en/stable', None),
Jon Wayne Parrott4382bc12017-01-10 13:35:51 -0800372 'requests-oauthlib': (
373 'http://requests-oauthlib.readthedocs.io/en/stable', None),
Jon Wayne Parrott27f6e1e2016-10-13 09:46:49 -0700374}
Jon Wayne Parrott377f2932016-10-04 10:20:36 -0700375
376# Autodoc config
377autoclass_content = 'both'
378autodoc_member_order = 'bysource'
Jon Wayne Parrottb9897dc2016-11-02 20:31:14 -0700379autodoc_mock_imports = ['grpc']