diff options
author | EuAndreh <eu@euandre.org> | 2021-06-11 23:55:44 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-11 23:55:44 -0300 |
commit | 2be10d5b2df987131497c1d9fd7f93df4c6d827e (patch) | |
tree | 09c50d69f942c1385dcd459690f5a8849793ee31 /aux/workflow/commonmark.sh | |
parent | TODOs.md: Add #task-39e71afe-4ac9-4c3d-97e4-9ac41f826089 (diff) | |
download | gistatic-2be10d5b2df987131497c1d9fd7f93df4c6d827e.tar.gz gistatic-2be10d5b2df987131497c1d9fd7f93df4c6d827e.tar.xz |
aux/: Update files
Diffstat (limited to 'aux/workflow/commonmark.sh')
-rwxr-xr-x | aux/workflow/commonmark.sh | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/aux/workflow/commonmark.sh b/aux/workflow/commonmark.sh index e9609c2..6016f51 100755 --- a/aux/workflow/commonmark.sh +++ b/aux/workflow/commonmark.sh @@ -5,13 +5,16 @@ mkdir -p public PROJECT_UC="$1" F="$2" +OUT="${3:-${F%.*}.html}" -pandoc --toc \ - --highlight-style pygments \ - --toc-depth=2 \ - -s \ - --metadata title="$PROJECT_UC - ${F%.*}" \ - --metadata lang=en \ - -r commonmark \ - -w html \ - < "$F" > "public/${F%.*}.html" +pandoc \ + --toc \ + --highlight-style pygments \ + --toc-depth=2 \ + -s \ + --metadata title="$PROJECT_UC - ${F%.*}" \ + --metadata lang=en \ + -r commonmark \ + -w html \ + -H aux/workflow/favicon.html \ + < "$F" > "public/$OUT" |