blob: 1788c18564b7ddb0020ec916ba83df54f7f63b7e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh -eux
mkdir -p public
cat build-aux/workflow/vendor/org.css build-aux/workflow/workflow.css > public/styles.css
sed -e '/^\* Tasks$/,/^\* Improvements$/!d' TODOs.org | \
head -n -1 | \
cat build-aux/workflow/preamble.org - > tasks-and-bugs.org
emacs tasks-and-bugs.org \
-l build-aux/workflow/vendor/htmlize.el \
--eval '(setq org-export-allow-bind-keywords t)' \
-f org-html-export-to-html \
--batch \
--kill
# Add anchor link to bug headers
perl -pe \
's|^<h3 id="(.*?)">(.*)</h3>$|<h3 id="\1">\2<br /><a class="header-anchor" href="#\1">#\1</a></h3>|' \
tasks-and-bugs.html > public/tasks-and-bugs.html
|