Skip to content

Commit 58b365a

Browse files
committed
Build Sitemaps XML for docs
1 parent cdbb52a commit 58b365a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/main.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
- run: bun run build
9999
env:
100100
PLAUSIBLE_DOMAIN: ${{ vars.PLAUSIBLE_DOMAIN }}
101+
SITEMAP_HOSTNAME: https://${{ vars.PLAUSIBLE_DOMAIN }}
101102
working-directory: docs
102103
- id: upload
103104
uses: actions/upload-pages-artifact@v3

docs/.vitepress/config.mts

+4
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ export default defineConfig({
155155
},
156156
},
157157

158+
sitemap: {
159+
hostname: process.env.SITEMAP_HOSTNAME,
160+
},
161+
158162
vite: {
159163
plugins: [
160164
groupIconVitePlugin(),

0 commit comments

Comments
 (0)