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