Daily with mdBook
daily usage , only one shot:
- 0: config mdBook's book.toml, append such as:
...
[rss4mdbook]
url-base = "https://rs.101.so"
- 1: mdbook build
- 2: use
gen
command, append the lasted 4 articles as rss.xml
$ rss4mdbook gen /path/2u/mdbook/book.toml
that all,
should make pub.sh
under u mdBook site root,
include commands like:
- mdbook build
- rss4mdbook gen /path/2u/mdbook/book.toml
- git add .
- git commit -a .
- git push
- ...
will auto upgrade site and RSS.
BYW:
u need modify u theme/index.hbs
insert the rss.xml at some where.