Skip to content

Commit 3f1d549

Browse files
authored
Finish fixing Read the Docs theme (#2316)
1 parent 2ae7348 commit 3f1d549

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.readthedocs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
version: 2
2-
sphinx:
3-
configuration: docs/sphinx/conf.py
2+
3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3"
47

58
python:
6-
version: 3.7
79
install:
810
- requirements: dev-requirements.txt
911
- path: .

docs/sphinx/conf.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# under the License.
1818

1919
import datetime
20-
import os
2120

2221
import elasticsearch
2322

@@ -45,13 +44,7 @@
4544

4645
pygments_style = "sphinx"
4746

48-
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
49-
50-
if not on_rtd: # only import and set the theme if we're building docs locally
51-
import sphinx_rtd_theme
52-
53-
html_theme = "sphinx_rtd_theme"
54-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
47+
html_theme = "sphinx_rtd_theme"
5548

5649
intersphinx_mapping = {
5750
"python": ("https://docs.python.org/3", None),

0 commit comments

Comments
 (0)