|
6 | 6 | from subprocess import check_output
|
7 | 7 | from typing import Any, cast
|
8 | 8 |
|
9 |
| -import sphinx_rtd_theme |
10 | 9 | from docutils.nodes import Element, Node, Text, container, fully_normalize_name, literal, paragraph, reference, strong
|
11 | 10 | from docutils.parsers.rst.directives import flag, unchanged, unchanged_required
|
12 | 11 | from docutils.parsers.rst.states import RSTState, RSTStateMachine
|
|
51 | 50 | project = name
|
52 | 51 | today_fmt = "%B %d, %Y"
|
53 | 52 |
|
54 |
| -html_theme = "sphinx_rtd_theme" |
55 |
| -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 53 | +html_theme = "furo" |
56 | 54 | html_theme_options = {
|
57 |
| - "canonical_url": "https://tox.readthedocs.io/en/latest/", |
58 |
| - "logo_only": False, |
59 |
| - "display_version": True, |
60 |
| - "prev_next_buttons_location": "bottom", |
61 |
| - "collapse_navigation": False, |
62 |
| - "sticky_navigation": True, |
63 |
| - "navigation_depth": 6, |
64 |
| - "includehidden": True, |
| 55 | + "navigation_with_keys": True, |
65 | 56 | }
|
| 57 | +html_title = "tox 4 - rewrite" |
66 | 58 | html_static_path = ["_static"]
|
| 59 | +html_css_files = ["css/custom.css"] |
67 | 60 | html_last_updated_fmt = datetime.now().isoformat()
|
68 | 61 | html_logo = "_static/img/tox.svg"
|
69 | 62 | html_favicon = "_static/img/toxfavi.ico"
|
70 |
| -htmlhelp_basename = "Pastedoc" |
71 | 63 |
|
72 | 64 | autoclass_content = "class"
|
73 | 65 | autodoc_member_order = "bysource"
|
@@ -148,7 +140,6 @@ def resolve_xref(
|
148 | 140 | app.connect("autodoc-skip-member", skip_member)
|
149 | 141 | app.connect("autodoc-process-signature", process_signature, priority=400)
|
150 | 142 | app.add_domain(PatchedPythonDomain, override=True)
|
151 |
| - app.add_css_file("custom.css") |
152 | 143 |
|
153 | 144 | class ToxConfig(SphinxDirective):
|
154 | 145 | name = "conf"
|
|
0 commit comments