Skip to main content

A MkDocs plugin that removes URLs from the sitemap.xml

Project description

mkdocs-sitemap-exclusion

A MkDocs plugin that removes specific URLs from the generated sitemap.xml based on configuration settings in mkdocs.yml.

Features

  • Exclude URLs from the sitemap based on a specified stop word in the Markdown front matter.
  • Flexible configuration options to specify additional URLs to exclude.

Installation

You can install the plugin using pip:

pip install mkdocs-sitemap-exclusion

Usage

To use the plugin, add it to your mkdocs.yml configuration file:

plugins:
  - mkdocs-sitemap-exclusion:
      stop_word: 'exclude_from_sitemap'
      exclude:
        - '/path/to/exclude'

In your Markdown files, you can specify the stop word in the front matter:

---
exclude_from_sitemap: true
---
# My Document
Content goes here.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_sitemap_exclusion-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_sitemap_exclusion-0.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_sitemap_exclusion-0.0.1.tar.gz.

File metadata

File hashes

Hashes for mkdocs_sitemap_exclusion-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d1af0817fa052a390bb61cb6b8c09a18c034b79299ae6807502c1756fd26227b
MD5 d88658d430fa73bffbe920320b27b57a
BLAKE2b-256 d435e0a2808aa61eb234ee10defc603cf6c7a9d734b2b8e56c0fe81ab47c4461

See more details on using hashes here.

File details

Details for the file mkdocs_sitemap_exclusion-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_sitemap_exclusion-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a68e6b6d685a71a571311959115761a30c85d71a646fa5d6584ad580c353ed0
MD5 c48bd9fb4b557597dddebbef58f451a3
BLAKE2b-256 e5586cd09ec7712f4726355555c177c99c0f988bcd0f03aa1f0b45dd2f5fbfd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page