aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xaux/workflow/TODOs.sh11
-rw-r--r--aux/workflow/style.css10
2 files changed, 17 insertions, 4 deletions
diff --git a/aux/workflow/TODOs.sh b/aux/workflow/TODOs.sh
index 5dbc761..00fef6f 100755
--- a/aux/workflow/TODOs.sh
+++ b/aux/workflow/TODOs.sh
@@ -7,10 +7,15 @@ export PROJECT_UC="$1"
export PROJECT="$2"
export MAILING_LIST="$3"
-REGEX='s/^## (TODO|DOING|WAITING|MEETING|INACTIVE|NEXT|CANCELLED|DONE) (.*) \{#(.*?)\}$/## <a href="#\3"><span class="\1">\1<\/span> \2<\/a>\n<span class="header-anchor" id="\3">#\3<\/span>\n/'
+TODOS_REGEX='s/^## (TODO|DOING|WAITING|MEETING|INACTIVE|NEXT|CANCELLED|DONE) (.*) \{#(.*?)\}$/## <a href="#\3"><span class="\1">\1<\/span> \2<\/a>\n<span class="header-anchor" id="\3">#\3<\/span>\n/'
-envsubst < aux/workflow/preamble.md | \
- printf '%s\n\n%s' "$(cat -)" "$(perl -pe "$REGEX" TODOs.md)" | \
+TAGS_REGEX='s/tag:([\w-]+)/<span class="tag">\1<\/span>/g'
+
+envsubst < aux/workflow/preamble.md | \
+ printf '%s\n\n%s' \
+ "$(cat -)" \
+ "$(perl -pe "$TODOS_REGEX" TODOs.md | \
+ perl -pe "$TAGS_REGEX")" | \
pandoc --toc \
--highlight-style pygments \
--toc-depth=2 \
diff --git a/aux/workflow/style.css b/aux/workflow/style.css
index ac0144c..d7935d0 100644
--- a/aux/workflow/style.css
+++ b/aux/workflow/style.css
@@ -3,10 +3,18 @@
background-color: #ccc;
}
- span.header-anchor {
+ div.header-anchor {
opacity: 0.5;
}
+ span.tag {
+ font-family: monospace;
+ font-size: 70%;
+ background-color: lightgray;
+ padding: 3px;
+ border-radius: 5px;
+ }
+
/*
Replicate colors from:
https://git.euandreh.xyz/dotfiles/tree/spacemacs.el?id=fcd9f9c4ef399d45d54927382dc1cdde251ebb0a#n866