GeezerVison is showing github.com — Bigquery Datatransfer: Add nox session `docs` (via synth). (#7765) · d-torres/google-cloud-python@a1ae6c9
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +../README.rst |
Collapse file Copy file name to clipboardExpand all lines: bigquery_datatransfer/docs/conf.py +39-5Lines changed: 39 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 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.15.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 |
| | 47 | 48 | # Add any paths that contain templates here, relative to this directory. | 48 | 49 | templates_path = ["_templates"] | 49 | 50 |
| | 51 | +# Allow markdown includes (so releases.md can include CHANGLEOG.md) | | 52 | +# http://www.sphinx-doc.org/en/master/markdown.html | | 53 | +source_parsers = {".md": "recommonmark.parser.CommonMarkParser"} | | 54 | + | 50 | 55 | # The suffix(es) of source filenames. | 51 | 56 | # You can specify multiple suffix as a list of string: | 52 | 57 | # source_suffix = ['.rst', '.md'] | 53 | | -source_suffix = ".rst" | | 58 | +source_suffix = [".rst", ".md"] | 54 | 59 |
| 55 | 60 | # The encoding of source files. | 56 | 61 | # source_encoding = 'utf-8-sig' | | 120 | 125 |
| 121 | 126 | # The theme to use for HTML and HTML Help pages. See the documentation for | 122 | 127 | # a list of builtin themes. | 123 | | -html_theme = "sphinx_rtd_theme" | | 128 | +html_theme = "alabaster" | 124 | 129 |
| 125 | 130 | # Theme options are theme-specific and customize the look and feel of a theme | 126 | 131 | # further. For a list of options available for each theme, see the | 127 | 132 | # documentation. | 128 | | -# html_theme_options = {} | | 133 | +html_theme_options = { | | 134 | + "description": "Google Cloud Client Libraries for Python", | | 135 | + "github_user": "googleapis", | | 136 | + "github_repo": "google-cloud-python", | | 137 | + "github_banner": True, | | 138 | + "font_family": "'Roboto', Georgia, sans", | | 139 | + "head_font_family": "'Roboto', Georgia, serif", | | 140 | + "code_font_family": "'Roboto Mono', 'Consolas', monospace", | | 141 | +} | 129 | 142 |
| 130 | 143 | # Add any paths that contain custom themes here, relative to this directory. | 131 | 144 | # html_theme_path = [] | | 214 | 227 | # Output file base name for HTML help builder. | 215 | 228 | htmlhelp_basename = "google-cloud-bigquerydatatransfer-doc" | 216 | 229 |
| | 230 | +# -- Options for warnings ------------------------------------------------------ | | 231 | + | | 232 | +suppress_warnings = [ | | 233 | + # Temporarily suppress this to avoid "more than one target found for | | 234 | + # cross-reference" warning, which are intractable for us to avoid while in | | 235 | + # a mono-repo. | | 236 | + # See https://github.com/sphinx-doc/sphinx/blob | | 237 | + # /2a65ffeef5c107c19084fabdd706cdff3f52d93c/sphinx/domains/python.py#L843 | | 238 | + "ref.python" | | 239 | +] | | 240 | + | 217 | 241 | # -- Options for LaTeX output --------------------------------------------- | 218 | 242 |
| 219 | 243 | latex_elements = { | | 310 | 334 | intersphinx_mapping = { | 311 | 335 | "python": ("http://python.readthedocs.org/en/latest/", None), | 312 | 336 | "gax": ("https://gax-python.readthedocs.org/en/latest/", None), | | 337 | + "google-auth": ("https://google-auth.readthedocs.io/en/stable", None), | | 338 | + "google-gax": ("https://gax-python.readthedocs.io/en/latest/", None), | | 339 | + "google.api_core": ( | | 340 | + "https://googleapis.github.io/google-cloud-python/latest", | | 341 | + None, | | 342 | + ), | | 343 | + "grpc": ("https://grpc.io/grpc/python/", None), | | 344 | + "requests": ("http://docs.python-requests.org/en/master/", None), | | 345 | + "fastavro": ("https://fastavro.readthedocs.io/en/stable/", None), | | 346 | + "pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None), | 313 | 347 | } | 314 | 348 |
| 315 | 349 | # Napoleon settings | |
Collapse file Copy file name to clipboardExpand all lines: bigquery_datatransfer/docs/index.rst +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -.. include:: /../bigquery_datatransfer/README.rst | | 1 | +.. include:: README.rst | 2 | 2 |
| 3 | 3 |
| 4 | 4 | API Reference | |
Collapse file Copy file name to clipboardExpand all lines: bigquery_datatransfer/noxfile.py +20Lines changed: 20 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 16 | 16 |
| 17 | 17 | from __future__ import absolute_import | 18 | 18 | import os | | 19 | +import shutil | 19 | 20 |
| 20 | 21 | import nox | 21 | 22 |
| @@ -138,3 +139,22 @@ def cover(session): | 138 | 139 | session.run("coverage", "report", "--show-missing", "--fail-under=79") | 139 | 140 |
| 140 | 141 | session.run("coverage", "erase") | | 142 | + | | 143 | +@nox.session(python="3.7") | | 144 | +def docs(session): | | 145 | + """Build the docs for this library.""" | | 146 | + | | 147 | + session.install('-e', '.') | | 148 | + session.install('sphinx', 'alabaster', 'recommonmark') | | 149 | + | | 150 | + shutil.rmtree(os.path.join('docs', '_build'), ignore_errors=True) | | 151 | + session.run( | | 152 | + 'sphinx-build', | | 153 | + '-W', # warnings as errors | | 154 | + '-T', # show full traceback on exception | | 155 | + '-N', # no colors | | 156 | + '-b', 'html', | | 157 | + '-d', os.path.join('docs', '_build', 'doctrees', ''), | | 158 | + os.path.join('docs', ''), | | 159 | + os.path.join('docs', '_build', 'html', ''), | | 160 | + ) |
Collapse file Copy file name to clipboardExpand all lines: bigquery_datatransfer/synth.metadata +11-3Lines changed: 11 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | { | 2 | | - "updateTime": "2019-04-12T17:01:24.063249Z", | | 2 | + "updateTime": "2019-04-23T12:11:35.129747Z", | 3 | 3 | "sources": [ | 4 | 4 | { | 5 | 5 | "generator": { | 6 | 6 | "name": "artman", | 7 | | - "version": "0.16.25", | 8 | | - "dockerImage": "googleapis/artman@sha256:d9597f983d1d4e61272c63cb97b7d8f8234da9999526c35d357de3d781f0ec1b" | | 7 | + "version": "0.17.0", | | 8 | + "dockerImage": "googleapis/artman@sha256:c58f4ec3838eb4e0718eb1bccc6512bd6850feaa85a360a9e38f6f848ec73bc2" | | 9 | + } | | 10 | + }, | | 11 | + { | | 12 | + "git": { | | 13 | + "name": "googleapis", | | 14 | + "remote": "https://github.com/googleapis/googleapis.git", | | 15 | + "sha": "547e19e7df398e9290e8e3674d7351efc500f9b0", | | 16 | + "internalRef": "244712781" | 9 | 17 | } | 10 | 18 | }, | 11 | 19 | { | |
|