-
-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy path.readthedocs.yaml
More file actions
24 lines (22 loc) · 721 Bytes
/
.readthedocs.yaml
File metadata and controls
24 lines (22 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Read the Docs configuration file for myst
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# This file was created automatically with `myst init --readthedocs`
# Required
version: 2
# Set the OS, Python version, and Node.js version
# Note: Python is included for executing code in notebooks or using Jupyter Book
build:
os: ubuntu-22.04
tools:
python: "3.12"
nodejs: "22"
commands:
# Install myst
- npm install -g mystmd
# Build the site
- myst build --html
# Copy the output to Read the Docs expected location
- mkdir -p $READTHEDOCS_OUTPUT/html/
- cp -r _build/html/. "$READTHEDOCS_OUTPUT/html"
# Clean up build artifacts
- rm -rf _build