From dd04e676719e18674fac0005ae77b0ebcf9d94b7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 8 Feb 2021 21:44:24 -0300 Subject: Add aux/ default files --- aux/workflow/TODOs.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 aux/workflow/TODOs.sh (limited to 'aux/workflow/TODOs.sh') diff --git a/aux/workflow/TODOs.sh b/aux/workflow/TODOs.sh new file mode 100755 index 0000000..5dbc761 --- /dev/null +++ b/aux/workflow/TODOs.sh @@ -0,0 +1,23 @@ +#!/bin/sh +set -eu + +mkdir -p public + +export PROJECT_UC="$1" +export PROJECT="$2" +export MAILING_LIST="$3" + +REGEX='s/^## (TODO|DOING|WAITING|MEETING|INACTIVE|NEXT|CANCELLED|DONE) (.*) \{#(.*?)\}$/## \1<\/span> \2<\/a>\n#\3<\/span>\n/' + +envsubst < aux/workflow/preamble.md | \ + printf '%s\n\n%s' "$(cat -)" "$(perl -pe "$REGEX" TODOs.md)" | \ + pandoc --toc \ + --highlight-style pygments \ + --toc-depth=2 \ + -s \ + --metadata title="$PROJECT_UC - TODOs" \ + --metadata lang=en \ + -r commonmark \ + -w html \ + -H aux/workflow/style.css \ + > public/TODOs.html -- cgit v1.2.3