diff --git a/docs/conf.py b/docs/conf.py index 3bf4180168..a7d810c8f3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,8 +12,6 @@ import os import subprocess -import sphinx_rtd_theme - # Run command `locust --help` and store output in cli-help-output.txt which is included in the docs def save_locust_help_output(): @@ -146,14 +144,10 @@ def save_locust_env_variables(): html_show_sourcelink = False html_file_suffix = ".html" html_theme = "sphinx_rtd_theme" -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] - # Custom CSS overrides html_static_path = ["_static"] -html_context = { - "css_files": ["_static/theme-overrides.css", "_static/css/rtd_sphinx_search.min.css"], -} +html_css_files = ["_static/theme-overrides.css", "_static/css/rtd_sphinx_search.min.css"] # HTML theme diff --git a/docs/requirements.txt b/docs/requirements.txt index dddc9834a1..31ef0011d6 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -5,7 +5,7 @@ Sphinx-Substitution-Extensions==2020.9.30.0 Pygments==2.16.1 alabaster==0.7.16 babel==2.13.0 -docutils==0.20.1 +docutils==0.18.1 imagesize==1.4.1 snowballstemmer==2.2.0 sphinx-prompt==1.5.0