Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@docusaurus/plugin-sitemap

Package Overview
Dependencies
Maintainers
4
Versions
1829
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docusaurus/plugin-sitemap

Simple sitemap generation plugin for Docusaurus.

  • 3.6.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
234K
decreased by-15.64%
Maintainers
4
Weekly downloads
 
Created

What is @docusaurus/plugin-sitemap?

@docusaurus/plugin-sitemap is a plugin for Docusaurus, a popular static site generator. This plugin helps in generating a sitemap for your Docusaurus site, which is essential for SEO as it helps search engines to crawl and index your site more effectively.

What are @docusaurus/plugin-sitemap's main functionalities?

Generate Sitemap

This feature allows you to generate a sitemap for your Docusaurus site. You can configure the change frequency and priority for the URLs in the sitemap.

module.exports = {
  plugins: [
    '@docusaurus/plugin-sitemap',
    {
      id: 'default',
      changefreq: 'weekly',
      priority: 0.5,
    },
  ],
};

Custom Sitemap Path

This feature allows you to specify a custom path for the generated sitemap file. By default, the sitemap is saved as 'sitemap.xml', but you can change it to any filename you prefer.

module.exports = {
  plugins: [
    '@docusaurus/plugin-sitemap',
    {
      id: 'default',
      changefreq: 'weekly',
      priority: 0.5,
      sitemapFilename: 'custom-sitemap.xml',
    },
  ],
};

Exclude Specific URLs

This feature allows you to exclude specific URLs or patterns from the sitemap. This is useful if you have pages that you do not want to be indexed by search engines.

module.exports = {
  plugins: [
    '@docusaurus/plugin-sitemap',
    {
      id: 'default',
      changefreq: 'weekly',
      priority: 0.5,
      exclude: ['/exclude-this-page', '/exclude-this-directory/*'],
    },
  ],
};

Other packages similar to @docusaurus/plugin-sitemap

FAQs

Package last updated on 04 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc