aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-16 09:03:27 -0300
committerEuAndreh <eu@euandre.org>2021-01-16 09:03:27 -0300
commit6f9e1114122afb047ede8392c1def037c104aac4 (patch)
treec19e96774ce0ec358becbce2e763cc248cc017de /bash
parentgc-nix.sh: Source colors.sh (diff)
downloaddotfiles-6f9e1114122afb047ede8392c1def037c104aac4.tar.gz
dotfiles-6f9e1114122afb047ede8392c1def037c104aac4.tar.xz
fake-symlinks: Add lang metadata and syntax highlighting to the generated TODOs.html
Diffstat (limited to 'bash')
-rwxr-xr-xbash/templates/build-aux/workflow/TODOs.sh11
-rw-r--r--bash/templates/build-aux/workflow/preamble.rst2
2 files changed, 8 insertions, 5 deletions
diff --git a/bash/templates/build-aux/workflow/TODOs.sh b/bash/templates/build-aux/workflow/TODOs.sh
index 036ce13e..f080001a 100755
--- a/bash/templates/build-aux/workflow/TODOs.sh
+++ b/bash/templates/build-aux/workflow/TODOs.sh
@@ -8,7 +8,10 @@ export MAILING_LIST="$3"
envsubst < build-aux/workflow/preamble.rst | \
cat - TODOs.rst | \
- pandoc --toc \
- --toc-depth=2 \
- -s --metadata title="$1 - TODOs" \
- -r rst -w html > public/TODOs.html
+ pandoc --toc \
+ --highlight-style pygments \
+ --toc-depth=2 \
+ -s \
+ --metadata title="$1 - TODOs" \
+ --metadata lang=en \
+ -r rst -w html > public/TODOs.html
diff --git a/bash/templates/build-aux/workflow/preamble.rst b/bash/templates/build-aux/workflow/preamble.rst
index 45688aa1..87e22ae5 100644
--- a/bash/templates/build-aux/workflow/preamble.rst
+++ b/bash/templates/build-aux/workflow/preamble.rst
@@ -3,7 +3,7 @@ About
TODOs for $PROJECT_UC.
-See `$PROJECT.euandreh.xyz`_.
+See also `$PROJECT.euandreh.xyz`_.
Register a new one: `~euandreh/$MAILING_LIST@lists.sr.ht`_.