aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/workflow/TODOs.sh6
-rw-r--r--build-aux/workflow/style.css2
2 files changed, 5 insertions, 3 deletions
diff --git a/build-aux/workflow/TODOs.sh b/build-aux/workflow/TODOs.sh
index 3ccd57b..58fbd3c 100755
--- a/build-aux/workflow/TODOs.sh
+++ b/build-aux/workflow/TODOs.sh
@@ -6,7 +6,7 @@ export PROJECT_UC="$1"
export PROJECT="$2"
export MAILING_LIST="$3"
-REGEX='s/^## (TODO|DOING|WAITING|MEETING|INACTIVE|NEXT|CANCELLED|DONE) (.*) \{(#.*?)\}$/## <span class="\1">\1<\/span> \2 {\3}\n<a class="header-anchor" href="\3">\3<\/a>\n/'
+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 < build-aux/workflow/preamble.md | \
printf '%s\n\n%s' "$(cat -)" "$(perl -pe "$REGEX" TODOs.md)" | \
@@ -17,4 +17,6 @@ envsubst < build-aux/workflow/preamble.md | \
--metadata title="$1 - TODOs" \
--metadata lang=en \
-H build-aux/workflow/style.css \
- -r markdown -w html > public/TODOs.html
+ -r markdown \
+ -w html \
+ > public/TODOs.html
diff --git a/build-aux/workflow/style.css b/build-aux/workflow/style.css
index a4ac27a..ac0144c 100644
--- a/build-aux/workflow/style.css
+++ b/build-aux/workflow/style.css
@@ -3,7 +3,7 @@
background-color: #ccc;
}
- a.header-anchor {
+ span.header-anchor {
opacity: 0.5;
}