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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_sitemap_exclusion-0.0.1.tar.gz.
File metadata
- Download URL: mkdocs_sitemap_exclusion-0.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1af0817fa052a390bb61cb6b8c09a18c034b79299ae6807502c1756fd26227b
|
|
| MD5 |
d88658d430fa73bffbe920320b27b57a
|
|
| BLAKE2b-256 |
d435e0a2808aa61eb234ee10defc603cf6c7a9d734b2b8e56c0fe81ab47c4461
|
File details
Details for the file mkdocs_sitemap_exclusion-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mkdocs_sitemap_exclusion-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a68e6b6d685a71a571311959115761a30c85d71a646fa5d6584ad580c353ed0
|
|
| MD5 |
c48bd9fb4b557597dddebbef58f451a3
|
|
| BLAKE2b-256 |
e5586cd09ec7712f4726355555c177c99c0f988bcd0f03aa1f0b45dd2f5fbfd0
|