Skip to content

Commit

Permalink
feat(docs): add sitemap (backport #2066) (#2067)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Craelius <[email protected]>
Co-authored-by: ryanchristo <[email protected]>
  • Loading branch information
3 people authored Oct 18, 2023
1 parent 245a01f commit b498ace
Show file tree
Hide file tree
Showing 3 changed files with 404 additions and 12 deletions.
5 changes: 5 additions & 0 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { backToTopPlugin } from '@vuepress/plugin-back-to-top'
import { mediumZoomPlugin } from '@vuepress/plugin-medium-zoom'
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
import codeCopyPlugin from '@snippetors/vuepress-plugin-code-copy';
import { sitemapPlugin } from "vuepress-plugin-sitemap2";


/**
* Ref:https://v2.vuepress.vuejs.org/guide/configuration.html#config-file
Expand Down Expand Up @@ -277,5 +279,8 @@ export default defineUserConfig({
id: process.env.GOOGLE_ANALYTICS_ID
}),
codeCopyPlugin(),
sitemapPlugin({
hostname: "https://docs.regen.network",
})
]
})
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@snippetors/vuepress-plugin-code-copy": "^1.2.3",
"@vuepress/plugin-google-analytics": "^2.0.0-beta.63",
"dotenv": "^16.3.1",
"vuepress-vite": "^2.0.0-beta.63"
"vuepress-plugin-sitemap2": "^2.0.0-beta.238",
"vuepress-vite": "^2.0.0-beta.67"
}
}
Loading

0 comments on commit b498ace

Please sign in to comment.