# Feature to generate a diray RSS feed (PR #934) # TODO bug with 7.3 #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 #

day 4

# # # #

# here is some code: #

# #
#  #!/bin/sh
#  echo "hello world"
#  
# # # #

# an important list: #

# #
    #
  • # point 1 # #
  • # point 2 # #
# ]]>
# ... #
# # Day 2 # https://example.com/diary/2020-07-23.html # 2020-07-23 #

Day 2

# #

# another diary entry #

# ]]>
# ... #
# # 2020-07-22 # https://example.com/diary/2020-07-22.html # 2020-07-22 # # example diary entry for day 1. #

# ]]>
# ... #
#
#
# #Execute (Clean buffer modification): # edit! $HOME/testwiki/index.wiki