From d1590234d19724f14e8ba94582986963fce47267 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sat, 26 Dec 2020 02:39:36 +0300 Subject: docs: switch to redo build system. --- install.html.do | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 install.html.do (limited to 'install.html.do') diff --git a/install.html.do b/install.html.do new file mode 100644 index 0000000..90e6c1c --- /dev/null +++ b/install.html.do @@ -0,0 +1,21 @@ +exec >&2 +. ./config.rc +redo-ifchange "$ORG" htmlize/htmlize.el flatui/flatui-theme.el + +cp "$ORG" "$3.org" +trap 'rm -f $3.org' EXIT INT + +# Org HTML export is a bit of a mess from the command line. I have added flatui +# and htmlize repositories as a submodule so that we don't rely on packages. +${EMACS} "$3.org" --eval \ +'(progn +(load-file "flatui/flatui-theme.el") +(add-to-list '"'"'custom-theme-load-path (concat default-directory "flatui/")) +(load-theme '"'"'flatui t) +(load-file "htmlize/htmlize.el") (org-mode) +(replace-regexp "^* Installation" "* Carbs Linux Installation Guide") +(org-html-export-to-html nil t) +(revert-buffer nil t) +)' + +mv "$3.html" "$3" -- cgit v1.2.3