diff options
author | EuAndreh <eu@euandre.org> | 2022-01-13 15:02:40 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-01-13 15:02:40 -0300 |
commit | c98d6c8175a1b2fe4452990b6ac19346411b637d (patch) | |
tree | b089c7bf575b58d94951a651be32869a94a2f396 /aux/workflow/commonmark.sh | |
parent | src/xyz/euandreh/queue.scm: Change pymd4c to upstream repository (diff) | |
download | packages-c98d6c8175a1b2fe4452990b6ac19346411b637d.tar.gz packages-c98d6c8175a1b2fe4452990b6ac19346411b637d.tar.xz |
aux/: Update
Diffstat (limited to 'aux/workflow/commonmark.sh')
-rwxr-xr-x | aux/workflow/commonmark.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/aux/workflow/commonmark.sh b/aux/workflow/commonmark.sh index 6f5e59b..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 \ @@ -39,4 +43,6 @@ pandoc \ --metadata "lang=$THE_LANG" \ -r commonmark \ -w html \ - -H aux/workflow/favicon.html + -H aux/workflow/favicon.html \ + -H aux/workflow/style.css \ + -H "$ALTERNATES" |