diff --git a/.readthedocs.yml b/.readthedocs.yml index 7ad00c29f..1041df2a4 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,9 +1,11 @@ version: 2 -sphinx: - configuration: docs/sphinx/conf.py + +build: + os: ubuntu-22.04 + tools: + python: "3" python: - version: 3.7 install: - requirements: dev-requirements.txt - path: . diff --git a/docs/sphinx/conf.py b/docs/sphinx/conf.py index 94c3b6da3..e6fe394ec 100644 --- a/docs/sphinx/conf.py +++ b/docs/sphinx/conf.py @@ -17,7 +17,6 @@ # under the License. import datetime -import os import elasticsearch @@ -45,13 +44,7 @@ pygments_style = "sphinx" -on_rtd = os.environ.get("READTHEDOCS", None) == "True" - -if not on_rtd: # only import and set the theme if we're building docs locally - import sphinx_rtd_theme - - html_theme = "sphinx_rtd_theme" - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +html_theme = "sphinx_rtd_theme" intersphinx_mapping = { "python": ("https://docs.python.org/3", None),