Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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 | |
Jon Wayne Parrott | 90c1c1b | 2016-12-14 12:43:30 -0800 | [diff] [blame] | 16 | import pkg_resources |
| 17 | |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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. |
| 35 | extensions = [ |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 36 | "sphinx.ext.autodoc", |
| 37 | "sphinx.ext.intersphinx", |
| 38 | "sphinx.ext.viewcode", |
| 39 | "sphinx.ext.napoleon", |
| 40 | "sphinx_docstring_typing", |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 41 | ] |
| 42 | |
| 43 | # Add any paths that contain templates here, relative to this directory. |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 44 | templates_path = ["_templates"] |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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'] |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 50 | source_suffix = ".rst" |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 51 | |
| 52 | # The encoding of source files. |
| 53 | # |
| 54 | # source_encoding = 'utf-8-sig' |
| 55 | |
Anthonios Partheniou | b86480e | 2021-08-25 12:41:18 -0400 | [diff] [blame] | 56 | # The root toctree document. |
| 57 | root_doc = "index" |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 58 | |
| 59 | # General information about the project. |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 60 | project = "google-auth" |
| 61 | copyright = "2016, Google, Inc." |
| 62 | author = "Google, Inc." |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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. |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 69 | version = pkg_resources.get_distribution("google-auth").version |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 70 | # The full version, including alpha/beta/rc tags. |
Jon Wayne Parrott | 90c1c1b | 2016-12-14 12:43:30 -0800 | [diff] [blame] | 71 | release = version |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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. |
| 78 | language = 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 |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 92 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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 Parrott | 50ee3f4 | 2016-10-11 17:21:53 -0700 | [diff] [blame] | 106 | add_module_names = False |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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. |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 114 | pygments_style = "sphinx" |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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. |
| 123 | todo_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 | # |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 131 | html_theme = "alabaster" |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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 Parrott | 50ee3f4 | 2016-10-11 17:21:53 -0700 | [diff] [blame] | 137 | html_theme_options = { |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 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", |
Jon Wayne Parrott | 50ee3f4 | 2016-10-11 17:21:53 -0700 | [diff] [blame] | 146 | } |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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". |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 174 | html_static_path = ["_static"] |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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 Parrott | 50ee3f4 | 2016-10-11 17:21:53 -0700 | [diff] [blame] | 195 | |
| 196 | html_sidebars = { |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 197 | "**": ["about.html", "navigation.html", "relations.html", "searchbox.html"] |
Jon Wayne Parrott | 50ee3f4 | 2016-10-11 17:21:53 -0700 | [diff] [blame] | 198 | } |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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. |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 257 | htmlhelp_basename = "google-authdoc" |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 258 | |
| 259 | # -- Options for LaTeX output --------------------------------------------- |
| 260 | |
| 261 | latex_elements = { |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 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', |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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]). |
| 279 | latex_documents = [ |
Anthonios Partheniou | b86480e | 2021-08-25 12:41:18 -0400 | [diff] [blame] | 280 | (root_doc, "google-auth.tex", "google-auth Documentation", "Google, Inc.", "manual") |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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). |
Anthonios Partheniou | b86480e | 2021-08-25 12:41:18 -0400 | [diff] [blame] | 320 | man_pages = [(root_doc, "google-auth", "google-auth Documentation", [author], 1)] |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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) |
| 332 | texinfo_documents = [ |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 333 | ( |
Anthonios Partheniou | b86480e | 2021-08-25 12:41:18 -0400 | [diff] [blame] | 334 | root_doc, |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 335 | "google-auth", |
| 336 | "google-auth Documentation", |
| 337 | author, |
| 338 | "google-auth", |
| 339 | "One line description of project.", |
| 340 | "Miscellaneous", |
| 341 | ) |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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. |
Jon Wayne Parrott | 27f6e1e | 2016-10-13 09:46:49 -0700 | [diff] [blame] | 362 | intersphinx_mapping = { |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 363 | "python": ("https://docs.python.org/3.5", None), |
| 364 | "urllib3": ("https://urllib3.readthedocs.io/en/stable", None), |
Bu Sun Kim | 65e33c0 | 2019-10-25 10:45:00 -0700 | [diff] [blame] | 365 | "requests": ("https://requests.kennethreitz.org/en/master/", None), |
Bu Sun Kim | b1a12d2 | 2021-02-26 11:50:02 -0700 | [diff] [blame] | 366 | "requests-oauthlib": ("https://requests-oauthlib.readthedocs.io/en/stable/", None), |
Jon Wayne Parrott | 27f6e1e | 2016-10-13 09:46:49 -0700 | [diff] [blame] | 367 | } |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 368 | |
| 369 | # Autodoc config |
Bu Sun Kim | 9eec091 | 2019-10-21 17:04:21 -0700 | [diff] [blame] | 370 | autoclass_content = "both" |
| 371 | autodoc_member_order = "bysource" |
| 372 | autodoc_mock_imports = ["grpc"] |