Skip to content

Commit 66766f5

Browse files
committed
ci: fix readthedocs
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
1 parent ab76672 commit 66766f5

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.readthedocs.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
# .readthedocs.yaml
2-
# Read the Docs configuration file
1+
# Read the Docs configuration file for myst
32
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
43

54
# Required
65
version: 2
76

87
build:
98
os: ubuntu-24.04
10-
119
tools:
12-
nodejs: "22"
13-
10+
nodejs: "24"
1411
commands:
12+
# Install myst
1513
- npm install -g mystmd
16-
- cd docs && myst build --html --output _readthedocs/html
14+
# Build the site
15+
- cd docs && myst build --html
16+
# Copy the output to Read the Docs expected location
17+
- mkdir -p $READTHEDOCS_OUTPUT/html/
18+
- cp -r docs/_build/html/. "$READTHEDOCS_OUTPUT/html"
19+
# Clean up build artifacts
20+
- rm -rf docs/_build

0 commit comments

Comments
 (0)