aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/commonmark.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-10-04 09:51:16 -0300
committerEuAndreh <eu@euandre.org>2021-10-05 15:55:03 -0300
commitd808811e1542517182d4ab4154d978d7e9fe3408 (patch)
treed25ecd24db98f67846829523c8144b4687645ec9 /aux/workflow/commonmark.sh
parentTODOs.md: Add #td-94511264-e301-be51-23e2-cf960dcd603d (diff)
downloadeuandre.org-d808811e1542517182d4ab4154d978d7e9fe3408.tar.gz
euandre.org-d808811e1542517182d4ab4154d978d7e9fe3408.tar.xz
aux/: Update
Diffstat (limited to 'aux/workflow/commonmark.sh')
-rwxr-xr-xaux/workflow/commonmark.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/aux/workflow/commonmark.sh b/aux/workflow/commonmark.sh
index 39aacb4..088d447 100755
--- a/aux/workflow/commonmark.sh
+++ b/aux/workflow/commonmark.sh
@@ -1,7 +1,7 @@
#!/bin/sh
set -eu
-while getopts 'N:t:l:' flag; do
+while getopts 'N:t:l:H:' flag; do
case "$flag" in
N)
PROJECT_UC="$OPTARG"
@@ -12,6 +12,9 @@ while getopts 'N:t:l:' flag; do
l)
THE_LANG="$OPTARG"
;;
+ H)
+ ALTERNATES="$OPTARG"
+ ;;
*)
exit 2
;;
@@ -29,6 +32,7 @@ assert_arg() {
assert_arg "${PROJECT_UC:-}" '-N PROJECT_UC'
assert_arg "${TITLE:-}" '-t TITLE'
assert_arg "${THE_LANG:-}" '-l THE_LANG'
+assert_arg "${ALTERNATES:-}" '-H ALTERNATES'
pandoc \
--toc \
@@ -40,4 +44,5 @@ pandoc \
-r commonmark \
-w html \
-H aux/workflow/favicon.html \
- -H aux/workflow/style.css
+ -H aux/workflow/style.css \
+ -H "$ALTERNATES"