From 549cb7a25c156921658198a066252956e96769f0 Mon Sep 17 00:00:00 2001 From: Adam Dobrawy Date: Sat, 7 Mar 2026 14:35:56 +0100 Subject: [PATCH] Add .readthedocs.yaml configuration file Read the Docs now requires a .readthedocs.yaml config file at the repository root. Also add sphinx-rtd-theme to docs dependencies so the theme is properly installed during the build. Co-Authored-By: Claude Opus 4.6 --- .readthedocs.yaml | 19 +++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..eb44b33 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,19 @@ +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +version: 2 + +build: + os: ubuntu-24.04 + tools: + python: "3.12" + +sphinx: + configuration: docs/conf.py + +python: + install: + - method: pip + path: . + extra_requirements: + - docs diff --git a/pyproject.toml b/pyproject.toml index 7906c35..f7d0238 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ Homepage = "https://github.com/ad-m/python-anticaptcha" [project.optional-dependencies] async = ["httpx>=0.24"] tests = ["pytest", "retry", "selenium"] -docs = ["sphinx"] +docs = ["sphinx", "sphinx-rtd-theme"] [tool.setuptools.package-data] python_anticaptcha = ["py.typed"]