aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-17 15:51:20 -0300
committerEuAndreh <eu@euandre.org>2021-01-17 15:51:20 -0300
commit71352857186d33cf2727ad7b62d317f180a11a2d (patch)
tree010fdf31e58b2cd871a1bd7e3a28f6c25a87cf22
parentAdd infokey symlink (diff)
downloaddotfiles-71352857186d33cf2727ad7b62d317f180a11a2d.tar.gz
dotfiles-71352857186d33cf2727ad7b62d317f180a11a2d.tar.xz
fake-symlinks: Stop relying on Pandoc markdown for TODOs.sh
-rwxr-xr-xbash/templates/build-aux/workflow/TODOs.sh6
-rw-r--r--bash/templates/build-aux/workflow/style.css2
2 files changed, 5 insertions, 3 deletions
diff --git a/bash/templates/build-aux/workflow/TODOs.sh b/bash/templates/build-aux/workflow/TODOs.sh
index 3ccd57bd..58fbd3ca 100755
--- a/bash/templates/build-aux/workflow/TODOs.sh
+++ b/bash/templates/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/bash/templates/build-aux/workflow/style.css b/bash/templates/build-aux/workflow/style.css
index a4ac27a8..ac0144c5 100644
--- a/bash/templates/build-aux/workflow/style.css
+++ b/bash/templates/build-aux/workflow/style.css
@@ -3,7 +3,7 @@
background-color: #ccc;
}
- a.header-anchor {
+ span.header-anchor {
opacity: 0.5;
}