Skip to content

Commit c386aa8

Browse files
committed
Use sphinx_rtd_theme
1 parent 6d6874f commit c386aa8

File tree

3 files changed

+13
-21
lines changed

3 files changed

+13
-21
lines changed

.readthedocs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ sphinx:
1717
# Optionally, but recommended,
1818
# declare the Python requirements required to build your documentation
1919
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20-
# python:
21-
# install:
22-
# - requirements: docs/requirements.txt
20+
python:
21+
install:
22+
- requirements: doc/requirements.txt

doc/conf.py

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,15 @@ def __getattr__(cls, name): return Mock()
6767

6868
# -- Options for HTML output ---------------------------------------------------
6969

70-
html_theme = 'default'
71-
# force default theme on readthedocs to apply our theme options
72-
html_style = "/default.css"
73-
# MusicBrainz colors
70+
html_theme = 'sphinx_rtd_theme'
71+
72+
# Theme options are theme-specific and customize the look and feel of a theme
73+
# further. For a list of options available for each theme, see the
74+
# documentation.
7475
html_theme_options = {
75-
"footerbgcolor": "#e7e7e7",
76-
"footertextcolor": "#444444",
77-
"sidebarbgcolor": "#ffffff",
78-
"sidebartextcolor": "#000000",
79-
"sidebarlinkcolor": "002bba",
80-
"relbarbgcolor": "#5c5789",
81-
"relbartextcolor": "#000000",
82-
"bgcolor": "#ffffff",
83-
"textcolor": "#000000",
84-
"linkcolor": "#002bba",
85-
"headbgcolor": "#ffba58",
86-
"headtextcolor": "#515151",
87-
"codebgcolor": "#dddddd",
88-
"codetextcolor": "#000000"
76+
'collapse_navigation': True,
77+
'navigation_depth': 2,
78+
'version_selector': True,
8979
}
9080

9181
html_title = "%s %s documentation" % (project, current)

doc/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Sphinx==8.2.3
2+
sphinx-rtd-theme==3.0.2

0 commit comments

Comments
 (0)