aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-17 15:03:06 -0300
committerEuAndreh <eu@euandre.org>2021-01-17 15:03:06 -0300
commitd1e184974c02c120cd94801b0614a284c01b335d (patch)
tree8ebc321cbce9fe871d1d4174aa25959b1e557179
parentTODOs.md: Remove extra <hr /> (diff)
downloadserver-d1e184974c02c120cd94801b0614a284c01b335d.tar.gz
server-d1e184974c02c120cd94801b0614a284c01b335d.tar.xz
build-aux/workflow/: Stop relying on pandoc specific markdown capabilities
-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;
}