From 39233b5e78e078d4ab0e588da66a554506a1908d Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Tue, 3 Nov 2020 11:32:38 +0100 Subject: [PATCH] Automatic html export of bookmarks --- dotfiles/systemd.org | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dotfiles/systemd.org b/dotfiles/systemd.org index 48eee92..c69aa11 100644 --- a/dotfiles/systemd.org +++ b/dotfiles/systemd.org @@ -72,9 +72,15 @@ 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)" - git push + 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 #+end_src