Include: vader_includes/vader_setup.vader
Execute (Copy Wiki's Resources):
Log "Start: Copy Resources"
call CopyResources()
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)
: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):
Diary
https://example.com/diary/diary.html
Diary...day 4
https://example.com/diary/2020-07-25.html
2020-07-25