Skip to content

Commit 5c68c49

Browse files
Add mkdocs plugins for RSS feed and blog table of contents
1 parent ecf6a0c commit 5c68c49

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/Docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
pip install mkdocs-git-authors-plugin
3939
pip install mkdocs-git-revision-date-localized-plugin
4040
pip install mkdocs-git-committers-plugin-2
41+
pip install mkdocs-rss-plugin
42+
pip install "mkdocs-material[imaging]"
4143
4244
- name: Build mkdocs-material project
4345
run: |

mkdocs.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ copyright: Copyright © 2023 - 2025 PSModule
6767

6868
plugins:
6969
- meta
70+
- blog:
71+
blog_toc: true
7072
- search
7173
- git-committers: # https://github.com/ojacques/mkdocs-git-committers-plugin-2
7274
repository: PSModule/docs
@@ -76,6 +78,11 @@ plugins:
7678
- git-revision-date-localized:
7779
enable_creation_date: true
7880
type: timeago
81+
- rss: # https://guts.github.io/mkdocs-rss-plugin/
82+
match_path: Blog/posts/.*
83+
date_from_meta:
84+
as_creation: date.created
85+
as_update: date.updated
7986

8087
markdown_extensions:
8188
- toc:
@@ -105,4 +112,4 @@ extra:
105112
- reject
106113

107114
extra_css:
108-
- stylesheets/extra.css
115+
- assets/stylesheets/extra.css

0 commit comments

Comments
 (0)