Skip to content

Commit 93e6ace

Browse files
committed
Add Read the Docs config for VitePress builds
1 parent a375cff commit 93e6ace

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.readthedocs.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.com/platform/stable/build-customization.html
3+
# RTD configures the VitePress base URL automatically at build time.
4+
5+
version: 2
6+
7+
build:
8+
os: ubuntu-lts-latest
9+
tools:
10+
nodejs: "latest"
11+
jobs:
12+
install:
13+
- npm ci
14+
build:
15+
html:
16+
- npm run docs:build
17+
- mkdir -p $READTHEDOCS_OUTPUT/
18+
- mv .vitepress/dist $READTHEDOCS_OUTPUT/html

0 commit comments

Comments
 (0)