MkDocs plugin which generates a static RSS feed using git log and page.meta.
Project description
MkDocs RSS plugin
A plugin for MkDocs, the static site generator, which creates RSS 2.0 feeds using the creation and modification dates from git log and page metadata (YAML frontmatter).
Usage
Minimal mkdocs.yml configuration:
site_description: required. Used as feed mandatory channel description.
site_name: required. Used as feed mandatory channel title and items source URL label.
site_url: required. Used to build feed items URLs.
Minimal plugin option:
plugins:
- rss
Full options:
plugins:
- rss:
abstract_chars_count: 160 # -1 for full content
categories:
- tags
comments_path: "#__comments"
date_from_meta:
as_creation: "date"
as_update: false
datetime_format: "%Y-%m-%d %H:%M"
enabled: true
feed_ttl: 1440
image: https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Feed-icon.svg/128px-Feed-icon.svg.png
length: 20
pretty_print: false
match_path: ".*"
url_parameters:
utm_source: "documentation"
utm_medium: "RSS"
utm_campaign: "feed-syndication"
For further information, see the user documentation.
Following initiative from the author of Material for MkDocs, this plugin provides its own JSON schema to validate configuration: source - documentation.
Development
Clone the repository:
# install development dependencies
python -m pip install -U -r requirements/development.txt
# alternatively: pip install -e .[dev]
# install project as editable
python -m pip install -e .
# install git hooks
pre-commit install
# run tests
pytest
# install dependencies for documentation
python -m pip install -U -r requirements/documentation.txt
# alternatively: pip install -e .[doc]
Then follow the contribution guidelines.
Release workflow
- Fill the
CHANGELOG.md - Change the version number in
__about__.py - Apply a git tag with the relevant version:
git tag -a 0.3.0 {git commit hash} -m "New awesome feature" - Push tag to main branch:
git push origin 0.3.0
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-rss-plugin-1.3.0.tar.gz.
File metadata
- Download URL: mkdocs-rss-plugin-1.3.0.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b420fdaf7955f8032bd661f272f8b51dbe8518b32bac3aa6f28e90af91ca6b18
|
|
| MD5 |
26c5f640863acdb0f5c0849c70c285f5
|
|
| BLAKE2b-256 |
5fb6a4fced578c39eb765355aa23a1081b20e48ad5e79b992d328d33eaaad62c
|
File details
Details for the file mkdocs_rss_plugin-1.3.0-py2.py3-none-any.whl.
File metadata
- Download URL: mkdocs_rss_plugin-1.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cbf42d89a33a2cbd9b1828328862fbbc72725621f1f36b22fe3fec6b582a19d
|
|
| MD5 |
2cb27587d27f9c2132cc55605abcd920
|
|
| BLAKE2b-256 |
7c9b2059c9e2aaef850209e38cdda2246335382f40b7914c6b949fc317a3be6b
|