|
24 | 24 | # All configuration values have a default; values that are commented out |
25 | 25 | # serve to show the default. |
26 | 26 |
|
| 27 | +from __future__ import annotations |
| 28 | + |
27 | 29 | import os |
28 | | -import shlex |
29 | 30 | import sys |
| 31 | +from typing import Any |
30 | 32 |
|
31 | 33 | # If extensions (or modules to document with autodoc) are in another directory, |
32 | 34 | # add these directories to sys.path here. If the directory is relative to the |
|
56 | 58 | "sphinx.ext.napoleon", |
57 | 59 | "sphinx.ext.todo", |
58 | 60 | "sphinx.ext.viewcode", |
59 | | - "recommonmark", |
| 61 | + "myst_parser", |
60 | 62 | ] |
61 | 63 |
|
62 | 64 | # autodoc/autosummary flags |
|
98 | 100 | # |
99 | 101 | # This is also used if you do content translation via gettext catalogs. |
100 | 102 | # Usually you set "language" from the command line for these cases. |
101 | | -language = None |
| 103 | +language = "en-US" |
102 | 104 |
|
103 | 105 | # There are two options for replacing |today|: either, you set today to some |
104 | 106 | # non-false value, then it is used: |
|
148 | 150 |
|
149 | 151 | # The theme to use for HTML and HTML Help pages. See the documentation for |
150 | 152 | # a list of builtin themes. |
151 | | -html_theme = "alabaster" |
| 153 | +html_theme = "pydata_sphinx_theme" |
152 | 154 |
|
153 | 155 | # Theme options are theme-specific and customize the look and feel of a theme |
154 | 156 | # further. For a list of options available for each theme, see the |
155 | 157 | # documentation. |
| 158 | +# https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/layout.html#references |
156 | 159 | html_theme_options = { |
157 | | - "description": "BigQuery DataFrames provides DataFrame APIs on the BigQuery engine", |
158 | | - "github_user": "googleapis", |
159 | | - "github_repo": "python-bigquery-dataframes", |
160 | | - "github_banner": True, |
161 | | - "font_family": "'Roboto', Georgia, sans", |
162 | | - "head_font_family": "'Roboto', Georgia, serif", |
163 | | - "code_font_family": "'Roboto Mono', 'Consolas', monospace", |
| 160 | + "github_url": "https://github.com/googleapis/python-bigquery-dataframes", |
| 161 | + "logo": { |
| 162 | + "text": "BigQuery DataFrames (BigFrames)", |
| 163 | + }, |
| 164 | + "external_links": [ |
| 165 | + { |
| 166 | + "name": "Getting started", |
| 167 | + "url": "https://docs.cloud.google.com/bigquery/docs/dataframes-quickstart", |
| 168 | + }, |
| 169 | + { |
| 170 | + "name": "User guide", |
| 171 | + "url": "https://docs.cloud.google.com/bigquery/docs/bigquery-dataframes-introduction", |
| 172 | + }, |
| 173 | + ], |
164 | 174 | } |
165 | 175 |
|
166 | 176 | # Add any paths that contain custom themes here, relative to this directory. |
|
264 | 274 |
|
265 | 275 | # -- Options for LaTeX output --------------------------------------------- |
266 | 276 |
|
267 | | -latex_elements = { |
| 277 | +latex_elements: dict[str, Any] = { |
268 | 278 | # The paper size ('letterpaper' or 'a4paper'). |
269 | 279 | #'papersize': 'letterpaper', |
270 | 280 | # The font size ('10pt', '11pt' or '12pt'). |
|
282 | 292 | ( |
283 | 293 | root_doc, |
284 | 294 | "bigframes.tex", |
285 | | - "bigframes Documentation", |
| 295 | + "BigQuery DataFrames (BigFrames)", |
286 | 296 | author, |
287 | 297 | "manual", |
288 | 298 | ) |
|
317 | 327 | ( |
318 | 328 | root_doc, |
319 | 329 | "bigframes", |
320 | | - "bigframes Documentation", |
| 330 | + "BigQuery DataFrames (BigFrames)", |
321 | 331 | [author], |
322 | 332 | 1, |
323 | 333 | ) |
|
336 | 346 | ( |
337 | 347 | root_doc, |
338 | 348 | "bigframes", |
339 | | - "bigframes Documentation", |
| 349 | + "BigQuery DataFrames (BigFrames)", |
340 | 350 | author, |
341 | 351 | "bigframes", |
342 | 352 | "bigframes Library", |
|
0 commit comments