Skip to content

Commit a51db44

Browse files
committed
RSS feed
1 parent a9e4a12 commit a51db44

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- run: pip install mkdocs-glightbox
3737
- run: pip install markdown-include
3838
- run: pip install mkdocs-include-markdown-plugin
39+
- run: pip install mkdocs-rss-plugin
3940
- run: mkdocs gh-deploy --force
4041
env:
4142
GithubAccessToken: ${{ secrets.SMUR }}

mkdocs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,40 @@ plugins:
191191
branch: main
192192
docs_path: docs/
193193
token: !ENV ["GithubAccessToken"]
194+
- rss:
195+
abstract_chars_count: 160 # -1 for full content
196+
abstract_delimiter: <!-- more -->
197+
categories:
198+
- tags
199+
comments_path: "#__comments"
200+
date_from_meta:
201+
as_creation: "date" # means from page.meta.date
202+
as_update: "git" # means from git log
203+
datetime_format: "%Y-%m-%d %H:%M"
204+
default_time: "09:30"
205+
default_timezone: Europe/Paris
206+
enabled: true
207+
#feed_description: "A Vertically Integrated Project at Georgia Tech" # MkDocs site_description: will be used if this key is not present
208+
feeds_filenames:
209+
json_created: feed_json_created.json
210+
json_updated: feed_json_updated.json
211+
rss_created: feed_rss_created.xml
212+
rss_updated: feed_rss_updated.xml
213+
feed_title: "My custom feed title" # MkDocs site_name: will be used if this key is not present
214+
feed_ttl: 1440
215+
image: https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Feed-icon.svg/128px-Feed-icon.svg.png
216+
json_feed_enabled: true
217+
length: 20
218+
match_path: ".*"
219+
pretty_print: false
220+
rss_feed_enabled: true
221+
url_parameters:
222+
utm_source: "documentation"
223+
utm_medium: "RSS"
224+
utm_campaign: "feed-syndication"
225+
use_git: true
226+
use_material_blog: true
227+
use_material_social_cards: true
194228

195229
- multirepo:
196230
# (optional) tells multirepo to cleanup the temporary directory after site is built.

0 commit comments

Comments
 (0)