# Feature to generate a diray RSS feed (PR #934)
Given (Void):
Execute (Generate HTML and RSS feed):
edit $HOME/testwiki/index.wiki
Vimwiki2HTML
VimwikiRss
Given (Void):
Do (Get HTML file):
:read $HOME/html/default/index.html\
# Go to line with RSS link
gg/RSS\
# Delete everything above
kdgg
# Delete everything below
jdG
# Save (Not necessary) => Actually make rest of batch freeze, do you really want
# to quit buffer
# :write
Expect (RSS link in HTML):
Do (Get RSS feed):
:read $HOME/html/default/rss.xml\
# Remove first line
ggdd
# Replace pubDate with dummy as it's based on file modification time
:%s@.*@...@g\
# Save (Not necessary)
# :write
Expect (RSS):
# TODO the next line is deleted with -Es
#
Diary
https://example.com/diary/diary.html
Diary...day 4
https://example.com/diary/2020-07-25.html
2020-07-25