Automatic html export of bookmarks

This commit is contained in:
Thomas Dehaeze 2020-11-03 11:32:38 +01:00
parent c27b88619a
commit 39233b5e78

View File

@ -72,9 +72,15 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
if [[ ! -z $(git status -s bookmarks.db) ]] if [[ ! -z $(git status -s bookmarks.db) ]]
then then
git add bookmarks.db rm bookmarks.org;
git commit -m "Changed bookmarks - $(date +%F)" buku -e bookmarks.org && \
git push 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 exit
fi fi
#+end_src #+end_src