Skip to content

Commit df66645

Browse files
authored
docs: manage sphinx stuff via uv (#1162)
* docs: manage sphinx stuff via uv * fix uv
1 parent 4399591 commit df66645

File tree

7 files changed

+497
-8
lines changed

7 files changed

+497
-8
lines changed

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
66
SPHINXOPTS ?=
7-
SPHINXBUILD ?= sphinx-build
7+
SPHINXBUILD ?= uv run sphinx-build
88
SOURCEDIR = .
99
BUILDDIR = _build
1010

docs/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
```bash
44
$cd python-client/docs
5-
$pip install -r requirements.txt
65
$bash generate.sh
76
$cd python-client/docs/_build/html
87
$python -m http.server 1234

docs/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
rm -rf *rst _build
3-
sphinx-apidoc -F -H 'Appium python client' -o . ../appium/webdriver
3+
uv run sphinx-apidoc -F -H 'Appium python client' -o . ../appium/webdriver
44
make html

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. Appium python client documentation master file, created by
2-
sphinx-quickstart on Sat May 24 20:49:49 2025.
2+
sphinx-quickstart on Mon Aug 11 09:34:52 2025.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55

docs/requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ dev-dependencies = [
4848
"python-dateutil~=2.9",
4949
"ruff~=0.12",
5050
"types-python-dateutil~=2.9",
51+
52+
# for documentation
53+
"sphinx>=4.0,<9.0",
54+
"sphinx_rtd_theme~=3.0",
55+
"sphinxcontrib-apidoc~=0.6",
5156
]
5257

5358
[build-system]

uv.lock

Lines changed: 489 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)