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
- Install
sphinxfeed
usingeasy_install
/pip
/python setup.py install
Add
sphinxfeed
to the list of extensions in yourconf.py
:extensions = [..., 'sphinxfeed']
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"