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 and JSON Feed 1.1 feeds using the creation and modification dates from git log and page metadata (YAML frontmatter).
Installation
pip install mkdocs-rss-plugin
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
abstract_delimiter: <!-- more -->
categories:
- tags
comments_path: "#__comments"
date_from_meta:
as_creation: "date" # means from page.meta.date
as_update: "git" # means from git log
datetime_format: "%Y-%m-%d %H:%M"
default_time: "09:30"
default_timezone: Europe/Paris
enabled: true
feed_description: "My custom feed description" # MkDocs site_description: will be used if this key is not present
feeds_filenames:
json_created: feed_json_created.json
json_updated: feed_json_updated.json
rss_created: feed_rss_created.xml
rss_updated: feed_rss_updated.xml
feed_title: "My custom feed title" # MkDocs site_name: will be used if this key is not present
feed_ttl: 1440
image: https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Feed-icon.svg/128px-Feed-icon.svg.png
json_feed_enabled: true
length: 20
match_path: ".*"
pretty_print: false
rss_feed_enabled: true
url_parameters:
utm_source: "documentation"
utm_medium: "RSS"
utm_campaign: "feed-syndication"
use_git: true
use_material_blog: true
use_material_social_cards: true
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
Then follow the contribution guidelines.
Run the tests
# install development dependencies
python -m pip install -U -r requirements/testing.txt
# alternatively: pip install -e .[test]
# run tests
pytest
Build the documentation
# install dependencies for documentation
python -m pip install -U -r requirements/documentation.txt
# alternatively: pip install -e .[doc]
# build the documentation
mkdocs build
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
File details
Details for the file mkdocs_rss_plugin-1.17.0.tar.gz
.
File metadata
- Download URL: mkdocs_rss_plugin-1.17.0.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dbcea3d4c5f587ef30897e7d858c4e236d3e6b5f60fdfde7bb9d77039151706 |
|
MD5 | 349e354cfa336154ed54bc72348e413f |
|
BLAKE2b-256 | 669afcb71af72a4c87a68a66e7250c9076dfbaa96c1dd40169aa8e400bd9f9a3 |
Provenance
The following attestation bundles were made for mkdocs_rss_plugin-1.17.0.tar.gz
:
Publisher:
release.yml
on Guts/mkdocs-rss-plugin
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
mkdocs_rss_plugin-1.17.0.tar.gz
- Subject digest:
1dbcea3d4c5f587ef30897e7d858c4e236d3e6b5f60fdfde7bb9d77039151706
- Sigstore transparency entry: 152945455
- Sigstore integration time:
- Predicate type:
File details
Details for the file mkdocs_rss_plugin-1.17.0-py2.py3-none-any.whl
.
File metadata
- Download URL: mkdocs_rss_plugin-1.17.0-py2.py3-none-any.whl
- Upload date:
- Size: 30.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a188875a80c495c24ddd67ada52213f75fb5da991d35a8463f834890412e3d92 |
|
MD5 | 044cc943e325621e09f6f4cc89efd7e3 |
|
BLAKE2b-256 | 6ed70e3a8a9673f1270d773c32237bce76a31fdcff6e9d5d39da596b6f6ed492 |
Provenance
The following attestation bundles were made for mkdocs_rss_plugin-1.17.0-py2.py3-none-any.whl
:
Publisher:
release.yml
on Guts/mkdocs-rss-plugin
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
mkdocs_rss_plugin-1.17.0-py2.py3-none-any.whl
- Subject digest:
a188875a80c495c24ddd67ada52213f75fb5da991d35a8463f834890412e3d92
- Sigstore transparency entry: 152945459
- Sigstore integration time:
- Predicate type: