Skip to content

Commit 5af1c2f

Browse files
committed
bun
1 parent a5ef364 commit 5af1c2f

6 files changed

Lines changed: 13 additions & 11 deletions

File tree

‎.github/workflows/deploy-docs.yml‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v7
20-
- uses: actions/setup-node@v7
21-
with:
22-
node-version: 22
23-
- run: npm ci
24-
- run: npm run docs:build
20+
- uses: oven-sh/setup-bun@v2
21+
- run: bun install --frozen-lockfile
22+
- run: bun run docs:build
2523
- name: Deploy
2624
uses: peaceiris/actions-gh-pages@v4
2725
with:

‎www/README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ As part of the Github CI/CD pipeline VitePress will compile the static site and
2323

2424
## Local testing
2525

26-
Required: Node.js & git
26+
Required: bun & git
2727

2828
1. Clone the repo (ideally your fork) & change to the folder.
2929
2. Install all required packages
3030

3131
```bash
32-
npm install
32+
bun install
3333
```
3434

3535
3. Run a local VitePress docs server. **--port** optional
3636

3737
```bash
38-
npm run docs:dev
38+
bun run docs:dev
3939
```

‎www/bun.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎www/docs/.vitepress/build_sitemap.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ function buildEnd() {
99
readable: true,
1010
});
1111

12-
generateSitemap(opt);
12+
// use vitepress's sitemap plugin instead
13+
// generateSitemap(opt);
1314
}
1415

1516
buildEnd();

‎www/docs/.vitepress/config.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,7 @@ export default defineConfig({
156156
}) as Plugin,
157157
],
158158
},
159+
sitemap: {
160+
hostname: 'https://kellerza.github.io/sunsynk/'
161+
},
159162
});

‎www/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"test": "echo \"Error: no test specified\" && exit 1",
99
"docs:dev": "vitepress dev docs",
1010
"docs:build": "vitepress build docs",
11-
"postdocs:build": "node ./docs/.vitepress/build_sitemap.js",
11+
"postdocs:build": "bun run. /docs/.vitepress/build_sitemap.js",
1212
"docs:serve": "vitepress serve docs"
1313
},
1414
"repository": {

0 commit comments

Comments
 (0)