Skip to content

Commit

Permalink
feat: add sitemap.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
charlypa committed Nov 25, 2023
1 parent 0990d41 commit d705214
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ const config = {
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
sitemap: {
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/tags/**'],
filename: 'sitemap.xml',
},

docs: {
sidebarPath: './sidebars.js',
// below 3 lines are to enable math formula
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
},
"dependencies": {
"@docusaurus/core": "3.0.0",
"@docusaurus/plugin-sitemap": "3.0.0",
"@docusaurus/preset-classic": "3.0.0",
"@docusaurus/theme-live-codeblock": "3.0.0",
"@docusaurus/theme-mermaid": "^3.0.0",
"@docusaurus/theme-mermaid": "3.0.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"prism-react-renderer": "^2.1.0",
Expand Down

0 comments on commit d705214

Please sign in to comment.