diff options
author | EuAndreh <eu@euandre.org> | 2022-03-06 02:29:37 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-03-06 02:29:37 -0300 |
commit | 8f6060c5fe07c475cd53c367ab791251168ab460 (patch) | |
tree | 44ba6bfa1a0e3debbb70944839c3a682d3ee7c53 /aux/workflow/commonmark.sh | |
parent | aux/: Update (diff) | |
download | server-8f6060c5fe07c475cd53c367ab791251168ab460.tar.gz server-8f6060c5fe07c475cd53c367ab791251168ab460.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" |