MkDocs RSS Plugin

1.18.1 · active · verified Thu Apr 16

mkdocs-rss-plugin is an MkDocs plugin that generates RSS and JSON feeds for your documentation site. It leverages your MkDocs site configuration, Git log for commit metadata, and page frontmatter to create rich feed entries. Currently at version 1.18.1, it receives frequent minor updates to improve features, fix bugs, and enhance compatibility with other MkDocs plugins like Material for MkDocs blog.

Common errors

Warnings

Install

Quickstart

To enable the mkdocs-rss-plugin, you need to add it to the `plugins` section of your `mkdocs.yml` configuration file. This example sets up basic RSS and JSON feeds, and configures the plugin to include full page descriptions and filter items from a 'blog' category based on page paths.

mkdocs.yml:
  site_name: My Awesome Docs
  site_url: https://example.com/

  plugins:
    - rss:
        feed_url: feed.xml
        json_feed_url: feed.json
        feed_item_description: true
        categories:
          - blog

docs/index.md:
  # Home page content

docs/blog/post1.md:
  ---
  title: My First Blog Post
  date: 2024-01-15
  author: John Doe
  ---
  This is the content of my first blog post.

# To build the site and generate feeds:
# mkdocs build
# To serve the site locally and see the feeds:
# mkdocs serve

# After running 'mkdocs build', feed.xml and feed.json will be in your site_dir (default: 'site/')

view raw JSON →