diff options
| author | EuAndreh <eu@euandre.org> | 2021-01-17 15:51:20 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2021-01-17 15:51:20 -0300 |
| commit | 71352857186d33cf2727ad7b62d317f180a11a2d (patch) | |
| tree | 010fdf31e58b2cd871a1bd7e3a28f6c25a87cf22 | |
| parent | Add infokey symlink (diff) | |
| download | dotfiles-71352857186d33cf2727ad7b62d317f180a11a2d.tar.gz dotfiles-71352857186d33cf2727ad7b62d317f180a11a2d.tar.xz | |
fake-symlinks: Stop relying on Pandoc markdown for TODOs.sh
| -rwxr-xr-x | bash/templates/build-aux/workflow/TODOs.sh | 6 | ||||
| -rw-r--r-- | bash/templates/build-aux/workflow/style.css | 2 |
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; } |
