From e03750f9a8d71b45826603b198cfaf1df9736142 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Wed, 27 Sep 2023 10:25:45 +0400 Subject: [PATCH] Fix Read the Docs theme (#2313) (cherry picked from commit 2ae73488ff9f102d531c528d36b160541a01d53f) --- dev-requirements.txt | 7 ++++++- noxfile.py | 4 +--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index f8360eb54..6cc2d1c33 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -5,7 +5,6 @@ pytest pytest-cov pytest-asyncio coverage -sphinx jinja2 python-dateutil unasync @@ -22,3 +21,9 @@ pandas; python_version<"3.10" # Testing the 'search_mvt' API response mapbox-vector-tile; python_version<"3.10" + +# Docs +# Override Read the Docs default (sphinx<2 and sphinx-rtd-theme<0.5) +sphinx>2 +sphinx-rtd-theme>0.5 +sphinx-autodoc-typehints \ No newline at end of file diff --git a/noxfile.py b/noxfile.py index c59b06c7b..6ba78e84e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -109,9 +109,7 @@ def lint(session): @nox.session() def docs(session): - session.install( - "-rdev-requirements.txt", "sphinx-rtd-theme", "sphinx-autodoc-typehints" - ) + session.install("-rdev-requirements.txt") session.install(".") session.run("python", "-m", "pip", "install", "sphinx-autodoc-typehints")