Add a sitemap plugin

This commit is contained in:
sabaimran 2024-04-10 14:35:04 +05:30
parent a4afada746
commit bb15c9605d
3 changed files with 8 additions and 1 deletions

View file

@ -60,6 +60,12 @@ const config = {
theme: { theme: {
customCss: './src/css/custom.css', customCss: './src/css/custom.css',
}, },
sitemap: {
lastmod: 'date',
changefreq: 'weekly',
priority: 0.5,
filename: 'sitemap.xml',
},
}), }),
], ],
], ],

View file

@ -15,6 +15,7 @@
}, },
"dependencies": { "dependencies": {
"@docusaurus/core": "^3.2.1", "@docusaurus/core": "^3.2.1",
"@docusaurus/plugin-sitemap": "^3.2.1",
"@docusaurus/preset-classic": "^3.2.1", "@docusaurus/preset-classic": "^3.2.1",
"@mdx-js/react": "^3.0.0", "@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0", "clsx": "^2.0.0",

View file

@ -1476,7 +1476,7 @@
"@docusaurus/utils-validation" "3.2.1" "@docusaurus/utils-validation" "3.2.1"
tslib "^2.6.0" tslib "^2.6.0"
"@docusaurus/plugin-sitemap@3.2.1": "@docusaurus/plugin-sitemap@3.2.1", "@docusaurus/plugin-sitemap@^3.2.1":
version "3.2.1" version "3.2.1"
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-sitemap/-/plugin-sitemap-3.2.1.tgz#306b3e34cfbe38582ccbbd85d83ce0bdd0ae4cf7" resolved "https://registry.yarnpkg.com/@docusaurus/plugin-sitemap/-/plugin-sitemap-3.2.1.tgz#306b3e34cfbe38582ccbbd85d83ce0bdd0ae4cf7"
integrity sha512-uWZ7AxzdeaQSTCwD2yZtOiEm9zyKU+wqCmi/Sf25kQQqqFSBZUStXfaQ8OHP9cecnw893ZpZ811rPhB/wfujJw== integrity sha512-uWZ7AxzdeaQSTCwD2yZtOiEm9zyKU+wqCmi/Sf25kQQqqFSBZUStXfaQ8OHP9cecnw893ZpZ811rPhB/wfujJw==