Skip to content

Commit

Permalink
ReadTheDocs config attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Dec 12, 2024
1 parent 6afbbbc commit 98dd430
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ build:
tools:
python: '3.12'

# Build documentation with Mkdocs
mkdocs:
configuration: mkdocs.yml

# Source requirements from docs env
python:
install:
- method: pip
path: .
extra_requirements:
- docs
# custom commands to run mkdocs build within hatch, as suggested by maintainer in
# https://github.com/readthedocs/readthedocs.org/issues/10706
commands:
- pip install hatch
- hatch run docs:build
- mkdir --parents $READTHEDOCS_OUTPUT
- mv site $READTHEDOCS_OUTPUT/html

0 comments on commit 98dd430

Please sign in to comment.