title | authors | date | description | image | tags | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The MkDocs RSS Plugin |
|
2020-07-06 |
MkDocs RSS plugin: generate RSS and JSON feeds for your static website using git log ad YAML frontmatter (markdown pages'metadata header). |
assets/rss_icon.svg |
|
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
---> 100%
RSS plugin for Mkdocs installed! Add 'rss' to your 'plugins' section in mkdocs.yml
Then in your mkdocs.yml
:
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.
plugins:
- rss
As examples, here are the feeds generated for this documentation:
- feed_rss_created.xml and feed_json_created.json for latest created pages: W3C validator
- feed_rss_updated.xml and feed_json_updated.json for latest updated pages: W3C validator
Or it could be displayed as a RSS or Feedly follow button:
{: width=130 loading=lazy }
{: width=130 loading=lazy }
{: align=middle }
For JSON Feed, you can use the icon:
{: width=130 loading=lazy }
{: align=middle }
!!! tip See how to make your RSS and JSON discoverable.
- Plugin logic is inspired from Tim Vink git-based plugins and main parts of Git stuff are nearly copied/pasted.
- Using magic mainly from:
- Documentation colors are a tribute to the classic RSS color scheme: orange and white.
- Logo generated with DALL·E.