Skip to content

Commit 1f18a56

Browse files
committed
Use commands
1 parent 81f7ba8 commit 1f18a56

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.readthedocs.yaml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@ build:
44
os: ubuntu-22.04
55
tools:
66
python: "3.12"
7-
jobs:
8-
pre_build:
9-
- |
10-
python -m pip install hatch
11-
hatch shell docs
12-
if [ "$READTHEDOCS_VERSION_TYPE" != "tag" ];
13-
then
14-
towncrier build --version Unreleased --yes;
15-
fi
16-
17-
mkdocs:
18-
configuration: mkdocs.yml
7+
commands:
8+
- |
9+
python -m pip install hatch
10+
if [ "$READTHEDOCS_VERSION_TYPE" != "tag" ]; then
11+
hatch env run --env docs -- towncrier build --version Unreleased --yes
12+
fi
13+
hatch env run --env docs build
14+
hatch env run --env docs readthedocs

0 commit comments

Comments
 (0)