Skip to content

Commit 98dd430

Browse files
committed
ReadTheDocs config attempt 2
1 parent 6afbbbc commit 98dd430

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.readthedocs.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@ build:
88
tools:
99
python: '3.12'
1010

11-
# Build documentation with Mkdocs
12-
mkdocs:
13-
configuration: mkdocs.yml
14-
15-
# Source requirements from docs env
16-
python:
17-
install:
18-
- method: pip
19-
path: .
20-
extra_requirements:
21-
- docs
11+
# custom commands to run mkdocs build within hatch, as suggested by maintainer in
12+
# https://github.com/readthedocs/readthedocs.org/issues/10706
13+
commands:
14+
- pip install hatch
15+
- hatch run docs:build
16+
- mkdir --parents $READTHEDOCS_OUTPUT
17+
- mv site $READTHEDOCS_OUTPUT/html

0 commit comments

Comments
 (0)