|
20 | 20 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
21 | 21 | sys.path.insert(0, os.path.abspath("..")) |
22 | 22 |
|
23 | | -__version__ = "0.91.4" |
| 23 | +__version__ = "0.1.0" |
24 | 24 |
|
25 | 25 | # -- General configuration ------------------------------------------------ |
26 | 26 |
|
27 | 27 | # If your documentation needs a minimal Sphinx version, state it here. |
28 | | -# needs_sphinx = '1.0' |
| 28 | +needs_sphinx = "1.6.3" |
29 | 29 |
|
30 | 30 | # Add any Sphinx extension module names here, as strings. They can be |
31 | 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
|
36 | 36 | "sphinx.ext.intersphinx", |
37 | 37 | "sphinx.ext.coverage", |
38 | 38 | "sphinx.ext.napoleon", |
| 39 | + "sphinx.ext.todo", |
39 | 40 | "sphinx.ext.viewcode", |
40 | 41 | ] |
41 | 42 |
|
|
44 | 45 | autodoc_default_flags = ["members"] |
45 | 46 | autosummary_generate = True |
46 | 47 |
|
| 48 | + |
47 | 49 | # Add any paths that contain templates here, relative to this directory. |
48 | 50 | templates_path = ["_templates"] |
49 | 51 |
|
| 52 | +# Allow markdown includes (so releases.md can include CHANGLEOG.md) |
| 53 | +# http://www.sphinx-doc.org/en/master/markdown.html |
| 54 | +source_parsers = {".md": "recommonmark.parser.CommonMarkParser"} |
| 55 | + |
50 | 56 | # The suffix(es) of source filenames. |
51 | 57 | # You can specify multiple suffix as a list of string: |
52 | 58 | # source_suffix = ['.rst', '.md'] |
53 | | -source_suffix = ".rst" |
| 59 | +source_suffix = [".rst", ".md"] |
54 | 60 |
|
55 | 61 | # The encoding of source files. |
56 | 62 | # source_encoding = 'utf-8-sig' |
|
116 | 122 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
117 | 123 | todo_include_todos = True |
118 | 124 |
|
| 125 | + |
119 | 126 | # -- Options for HTML output ---------------------------------------------- |
120 | 127 |
|
121 | 128 | # The theme to use for HTML and HTML Help pages. See the documentation for |
|
125 | 132 | # Theme options are theme-specific and customize the look and feel of a theme |
126 | 133 | # further. For a list of options available for each theme, see the |
127 | 134 | # documentation. |
128 | | -# html_theme_options = {} |
| 135 | +html_theme_options = { |
| 136 | + "description": "Google Cloud Client Libraries for Python", |
| 137 | + "github_user": "googleapis", |
| 138 | + "github_repo": "google-cloud-python", |
| 139 | + "github_banner": True, |
| 140 | + "font_family": "'Roboto', Georgia, sans", |
| 141 | + "head_font_family": "'Roboto', Georgia, serif", |
| 142 | + "code_font_family": "'Roboto Mono', 'Consolas', monospace", |
| 143 | +} |
129 | 144 |
|
130 | 145 | # Add any paths that contain custom themes here, relative to this directory. |
131 | 146 | # html_theme_path = [] |
|
214 | 229 | # Output file base name for HTML help builder. |
215 | 230 | htmlhelp_basename = "google-cloud-logging-doc" |
216 | 231 |
|
| 232 | +# -- Options for warnings ------------------------------------------------------ |
| 233 | + |
| 234 | + |
| 235 | +suppress_warnings = [ |
| 236 | + # Temporarily suppress this to avoid "more than one target found for |
| 237 | + # cross-reference" warning, which are intractable for us to avoid while in |
| 238 | + # a mono-repo. |
| 239 | + # See https://github.com/sphinx-doc/sphinx/blob |
| 240 | + # /2a65ffeef5c107c19084fabdd706cdff3f52d93c/sphinx/domains/python.py#L843 |
| 241 | + "ref.python" |
| 242 | +] |
| 243 | + |
217 | 244 | # -- Options for LaTeX output --------------------------------------------- |
218 | 245 |
|
219 | 246 | latex_elements = { |
|
260 | 287 | # If false, no module index is generated. |
261 | 288 | # latex_domain_indices = True |
262 | 289 |
|
| 290 | + |
263 | 291 | # -- Options for manual page output --------------------------------------- |
264 | 292 |
|
265 | 293 | # One entry per manual page. List of tuples |
|
277 | 305 | # If true, show URL addresses after external links. |
278 | 306 | # man_show_urls = False |
279 | 307 |
|
| 308 | + |
280 | 309 | # -- Options for Texinfo output ------------------------------------------- |
281 | 310 |
|
282 | 311 | # Grouping the document tree into Texinfo files. List of tuples |
|
289 | 318 | u"google-cloud-logging Documentation", |
290 | 319 | author, |
291 | 320 | "google-cloud-logging", |
292 | | - "GAPIC library for the {metadata.shortName} v2 service", |
| 321 | + "GAPIC library for the logging API", |
293 | 322 | "APIs", |
294 | 323 | ) |
295 | 324 | ] |
|
306 | 335 | # If true, do not generate a @detailmenu in the "Top" node's menu. |
307 | 336 | # texinfo_no_detailmenu = False |
308 | 337 |
|
| 338 | + |
309 | 339 | # Example configuration for intersphinx: refer to the Python standard library. |
310 | 340 | intersphinx_mapping = { |
311 | 341 | "python": ("http://python.readthedocs.org/en/latest/", None), |
312 | | - "gax": ("https://gax-python.readthedocs.org/en/latest/", None), |
| 342 | + "google-auth": ("https://google-auth.readthedocs.io/en/stable", None), |
| 343 | + "google.api_core": ( |
| 344 | + "https://googleapis.github.io/google-cloud-python/latest", |
| 345 | + None, |
| 346 | + ), |
| 347 | + "grpc": ("https://grpc.io/grpc/python/", None), |
| 348 | + "requests": ("http://docs.python-requests.org/en/master/", None), |
313 | 349 | } |
314 | 350 |
|
| 351 | + |
315 | 352 | # Napoleon settings |
316 | 353 | napoleon_google_docstring = True |
317 | 354 | napoleon_numpy_docstring = True |
|
0 commit comments