From 78dd180e7d0ee60ed6b2190d2a43db9d10e7be62 Mon Sep 17 00:00:00 2001 From: zhenyu-ms <111329301+zhenyu-ms@users.noreply.github.com> Date: Tue, 21 Jan 2025 10:35:37 +0800 Subject: [PATCH] fix readthedocs build; remove certain deps; upgrade sphinx --- .readthedocs.yaml | 4 ++-- doc/en/conf.py | 4 ++-- pyproject.toml | 2 -- requirements-rtd.txt | 5 +++++ requirements.txt | 1 - 5 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 requirements-rtd.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml index aeb5d4e33..4b1aefafd 100755 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -6,9 +6,9 @@ version: 2 build: - os: ubuntu-22.04 + os: ubuntu-lts-latest tools: - python: "3.7" + python: "3" jobs: post_checkout: - git fetch --unshallow || true diff --git a/doc/en/conf.py b/doc/en/conf.py index 9a314a11d..f121d4f90 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -39,6 +39,6 @@ def generate_news(): def setup(app): - app.add_stylesheet("icon.css") - app.add_stylesheet("news.css") + app.add_css_file("icon.css") + app.add_css_file("news.css") generate_news() diff --git a/pyproject.toml b/pyproject.toml index 76a063dd4..8a3efe9cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,8 +29,6 @@ "Topic :: Software Development :: Testing :: Unit" ] dependencies = [ - "sphinx<2", - "sphinx_rtd_theme", "setuptools", "pytest", "pytest-mock", diff --git a/requirements-rtd.txt b/requirements-rtd.txt new file mode 100644 index 000000000..d597ed5ee --- /dev/null +++ b/requirements-rtd.txt @@ -0,0 +1,5 @@ +sphinx +sphinx-click +sphinx-rtd-theme +-r ./requirements.txt +./releaseherald \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 732cb7b97..789e08d74 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,5 +7,4 @@ confluent-kafka plotly pandas numpy -sphinx-click doit \ No newline at end of file