Skip to content

Commit 5e74616

Browse files
PwnTipsclaude
andcommitted
Add sitemap plugin for VuePress
- Install @vuepress/plugin-sitemap - Configure hostname to https://www.heapspray.dev - Generates sitemap.xml and updates robots.txt on build Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7b1194a commit 5e74616

3 files changed

Lines changed: 82 additions & 56 deletions

File tree

docs/.vuepress/config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defaultTheme } from '@vuepress/theme-default'
22
import { defineUserConfig } from 'vuepress'
33
import { viteBundler } from '@vuepress/bundler-vite'
4+
import { sitemapPlugin } from '@vuepress/plugin-sitemap'
45

56
export default defineUserConfig({
67
title: 'PWN-Tips',
@@ -15,4 +16,9 @@ export default defineUserConfig({
1516
lastUpdated: false,
1617
contributors: false,
1718
}),
18-
})
19+
plugins: [
20+
sitemapPlugin({
21+
hostname: 'https://www.heapspray.dev'
22+
})
23+
]
24+
})

package-lock.json

Lines changed: 73 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"devDependencies": {
2323
"@playwright/test": "^1.55.1",
2424
"@vuepress/bundler-vite": "^2.0.0-rc.24",
25+
"@vuepress/plugin-sitemap": "^2.0.0-rc.112",
2526
"@vuepress/theme-default": "^2.0.0-rc.112",
27+
"baseline-browser-mapping": "^2.9.19",
2628
"playwright": "^1.55.1",
2729
"sass-embedded": "^1.93.2",
2830
"vuepress": "^2.0.0-rc.24"

0 commit comments

Comments
 (0)