|
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 |
| -# source_suffix = ['.rst', '.md'] |
53 |
| -source_suffix = ".rst" |
| 57 | +source_suffix = [".rst", ".md"] |
54 | 58 |
|
55 | 59 | # The encoding of source files.
|
56 | 60 | # source_encoding = 'utf-8-sig'
|
|
120 | 124 |
|
121 | 125 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
122 | 126 | # a list of builtin themes.
|
123 |
| -html_theme = "sphinx_rtd_theme" |
| 127 | +html_theme = "alabaster" |
124 | 128 |
|
125 | 129 | # Theme options are theme-specific and customize the look and feel of a theme
|
126 | 130 | # further. For a list of options available for each theme, see the
|
127 | 131 | # documentation.
|
128 |
| -# html_theme_options = {} |
| 132 | +html_theme_options = { |
| 133 | + #'description': 'Google Cloud Client Libraries for Python', |
| 134 | + #'github_user': 'GoogleCloudPlatform', |
| 135 | + #'github_repo': 'google-cloud-python', |
| 136 | + #'github_banner': True, |
| 137 | + "font_family": "'Roboto', Georgia, sans", |
| 138 | + "head_font_family": "'Roboto', Georgia, serif", |
| 139 | + "code_font_family": "'Roboto Mono', 'Consolas', monospace", |
| 140 | +} |
129 | 141 |
|
130 | 142 | # Add any paths that contain custom themes here, relative to this directory.
|
131 | 143 | # html_theme_path = []
|
|
214 | 226 | # Output file base name for HTML help builder.
|
215 | 227 | htmlhelp_basename = "google-cloud-dataproc-doc"
|
216 | 228 |
|
| 229 | + |
| 230 | +# -- Options for warnings ------------------------------------------------------ |
| 231 | + |
| 232 | + |
| 233 | +suppress_warnings = [ |
| 234 | + # Temporarily suppress ths to avoid "more than one target found for |
| 235 | + # cross-reference" warning, which are intractable for us to avoid while in |
| 236 | + # a mono-repo. |
| 237 | + # See https://github.com/sphinx-doc/sphinx/blob |
| 238 | + # /2a65ffeef5c107c19084fabdd706cdff3f52d93c/sphinx/domains/python.py#L843 |
| 239 | + "ref.python" |
| 240 | +] |
217 | 241 | # -- Options for LaTeX output ---------------------------------------------
|
218 | 242 |
|
219 | 243 | latex_elements = {
|
|
306 | 330 | # If true, do not generate a @detailmenu in the "Top" node's menu.
|
307 | 331 | # texinfo_no_detailmenu = False
|
308 | 332 |
|
309 |
| -# Example configuration for intersphinx: refer to the Python standard library. |
| 333 | +# Configuration for intersphinx: |
310 | 334 | intersphinx_mapping = {
|
311 |
| - "python": ("http://python.readthedocs.org/en/latest/", None), |
312 |
| - "gax": ("https://gax-python.readthedocs.org/en/latest/", None), |
| 335 | + "google-auth": ("https://google-auth.readthedocs.io/en/stable", None), |
| 336 | + "google-gax": ("https://gax-python.readthedocs.io/en/latest/", None), |
| 337 | + "grpc": ("https://grpc.io/grpc/python/", None), |
| 338 | + "requests": ("http://docs.python-requests.org/en/master/", None), |
| 339 | + "fastavro": ("https://fastavro.readthedocs.io/en/stable/", None), |
| 340 | + "pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None), |
| 341 | + "python": ("https://docs.python.org/3", None), |
313 | 342 | }
|
314 | 343 |
|
315 | 344 | # Napoleon settings
|
|
0 commit comments