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