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.
Development
Clone the repository:
# install project as editable
python -m pip install -U -r requirements.txt
# install development dependencies
python -m pip install -U -r requirements/development.txt
# install git hooks
pre-commit install
# run tests
pytest
# install dependencies for documentation
python -m pip install -U -r requirements/documentation.txt
Then follow the contribution guidelines.
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
mkdocs-rss-plugin-0.20.1.tar.gz
(27.5 kB
view hashes)
Built Distribution
Close
Hashes for mkdocs_rss_plugin-0.20.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b05b4b77cb39d3ef178729c6f57d9cfebded4de4b9b457758e8900c155477635 |
|
MD5 | 37bc620a89d6dca560aadf2861b7c2ca |
|
BLAKE2b-256 | 5d6d4689d8073e3479aa74da9464b09d9bc87d99875e618a0973798b08f6f169 |