Automatic html export of bookmarks

This commit is contained in:
Thomas Dehaeze 2020-11-03 11:32:38 +01:00
parent 78110cc71f
commit 2544033457

View File

@ -72,8 +72,14 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
if [[ ! -z $(git status -s bookmarks.db) ]]
then
git add bookmarks.db
git commit -m "Changed bookmarks - $(date +%F)"
rm bookmarks.org;
buku -e bookmarks.org && \
cat header.org bookmarks.org > index.org && \
emacs index.org --batch -f org-html-export-to-html --kill && \
git add index.html
git add bookmarks.db && \
git commit -m "Changed bookmarks - $(date +%F)" && \
git push
exit
fi