Skip to content

lsaffre/sphinxfeed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The sphinxfeed package

This Sphinx extension is a fork of Fergus Doyle's sphinxfeed package which itself is derived from Dan Mackinlay's sphinxcontrib.feed package. It relies on Lars Kiesow's python-feedgen package instead of the defunct feedformatter package or of Django utils to generate the feed.

Features added by Luc Saffre:

  • 20190315 : Support Python 3 (by using feedgen instead of feedformatter). feed_description is no longer optional.
  • new config variable feed_field_name to change the name of the field to use for specifying the publication date.
  • don't publish items whose publication datetime is in the future.
  • respect use_dirhtml option from rstgen when calculating the url

Usage

  1. Install sphinxfeed using easy_install / pip / python setup.py install
  2. Add sphinxfeed to the list of extensions in your conf.py:

    extensions = [..., 'sphinxfeed']
  3. Customise the necessary configuration options to correctly generate the feed:

    feed_base_url = 'http://YOUR_HOST_URL'
    feed_author = 'YOUR NAME'
    feed_description = "A longer description"
    
    # optional options
    feed_field_name = 'date'  # default value is "Publish Date"

About

Automatically generates an RSS feed when a build is run

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 52.0%
  • HTML 48.0%