Skip to main content
Version: 2.0.0-beta.7 ๐Ÿšง

๐Ÿ“ฆ plugin-sitemap

This plugin creates sitemap for your site so that search engine crawlers can crawl your site more accurately.

Installation#

npm install --save @docusaurus/plugin-sitemap
tip

If you have installed @docusaurus/preset-classic, you don't need to install it as a dependency. You can also configure it through the classic preset options instead of doing it like below.

Configuration#

docusaurus.config.js
module.exports = {  plugins: [    [      '@docusaurus/plugin-sitemap',      {        changefreq: 'weekly',        priority: 0.5,        trailingSlash: false,      },    ],  ],};