Skip to content

Commit 34f0f33

Browse files
committed
docs: move vitepress to separate docs package for ESM compatibility
- Create docs/package.json with type: module for VitePress ESM support - Remove vitepress and docs scripts from root package.json - Update deploy workflow to build from docs directory
1 parent b9205d6 commit 34f0f33

File tree

5 files changed

+1231
-622
lines changed

5 files changed

+1231
-622
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ jobs:
4444
- name: Setup Pages
4545
uses: actions/configure-pages@v4
4646
- name: Install dependencies
47-
run: yarn install # or pnpm install / yarn install / bun install
47+
run: yarn install
48+
working-directory: docs
4849
- name: Build with VitePress
49-
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
50+
run: yarn build
51+
working-directory: docs
5052
- name: Upload artifact
5153
uses: actions/upload-pages-artifact@v3
5254
with:

docs/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "docker-compose-docs",
3+
"private": true,
4+
"type": "module",
5+
"scripts": {
6+
"dev": "vitepress dev --host 0.0.0.0 --port 5000",
7+
"build": "vitepress build",
8+
"preview": "vitepress preview"
9+
},
10+
"devDependencies": {
11+
"vitepress": "^1.6.4"
12+
}
13+
}

0 commit comments

Comments
 (0)