Skip to content

Commit 0b8381e

Browse files
ad-mAdam Dobrawyclaude
authored
Add .readthedocs.yaml configuration file (#127)
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: Adam Dobrawy <naczelnik@jawne.info.pl> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 36fbb40 commit 0b8381e

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

.readthedocs.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
version: 2
5+
6+
build:
7+
os: ubuntu-24.04
8+
tools:
9+
python: "3.12"
10+
11+
sphinx:
12+
configuration: docs/conf.py
13+
14+
python:
15+
install:
16+
- method: pip
17+
path: .
18+
extra_requirements:
19+
- docs

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Homepage = "https://github.com/ad-m/python-anticaptcha"
2929
[project.optional-dependencies]
3030
async = ["httpx>=0.24"]
3131
tests = ["pytest", "retry", "selenium"]
32-
docs = ["sphinx"]
32+
docs = ["sphinx", "sphinx-rtd-theme"]
3333

3434
[tool.setuptools.package-data]
3535
python_anticaptcha = ["py.typed"]

0 commit comments

Comments
 (0)