File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,16 @@ version: 2
7
7
build :
8
8
os : ubuntu-22.04
9
9
tools :
10
- python : " 3.11"
11
-
12
- sphinx :
13
- configuration : docs/source/conf.py
10
+ python : " 3.12"
11
+ commands :
12
+ - pip install hatch
13
+ - hatch run docs:rtd
14
+ - pwd
15
+ - echo "$READTHEDOCS_OUTPUT"
16
+ # - ls -alh docs/build/html/
17
+ # - ls -alh $READTHEDOCS_OUTPUT/html/
18
+ # - mv docs/build/html/* $READTHEDOCS_OUTPUT/html/
14
19
15
20
formats :
16
21
- htmlzip
17
22
- pdf
18
-
19
- python :
20
- install :
21
- - requirements : docs/requirements.txt
Original file line number Diff line number Diff line change @@ -77,9 +77,11 @@ dependencies = [
77
77
]
78
78
79
79
[tool .hatch .envs .docs .scripts ]
80
- build = [
81
- # Treat warnings as errors
82
- " make -C docs html SPHINXOPTS='-W'"
80
+ build = " sphinx-build -M html -W docs/ docs/build/"
81
+ rtd = [
82
+ # The readthedocs build needs to also generate PDFs
83
+ " sphinx-build -M html -W docs/source _readthedocs/html/" ,
84
+ " sphinx-build -M latexpdf -W docs/source _readthedocs/pdf/" ,
83
85
]
84
86
85
87
[tool .hatch .envs .lint ]
You can’t perform that action at this time.
0 commit comments