aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/commonmark.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-24 11:18:40 -0300
committerEuAndreh <eu@euandre.org>2021-06-24 11:18:40 -0300
commit2539cf045c79ae1ebddccba7f887040d10e6ec1f (patch)
tree72f8f153f0880a98c4aa335e108be0c995b5b103 /aux/workflow/commonmark.sh
parent0ec9a3261c186e1aa52123121ff48056699b7e47 (diff)
downloadpackage-repository-2539cf045c79ae1ebddccba7f887040d10e6ec1f.tar.gz
aux/: Update
Diffstat (limited to 'aux/workflow/commonmark.sh')
-rwxr-xr-xaux/workflow/commonmark.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/aux/workflow/commonmark.sh b/aux/workflow/commonmark.sh
index 6016f51..7267145 100755
--- a/aux/workflow/commonmark.sh
+++ b/aux/workflow/commonmark.sh
@@ -1,11 +1,10 @@
#!/bin/sh
set -eu
-mkdir -p public
-
PROJECT_UC="$1"
F="$2"
-OUT="${3:-${F%.*}.html}"
+OUTDIR="$3"
+OUT="${4:-${F%.*}.html}"
pandoc \
--toc \
@@ -17,4 +16,4 @@ pandoc \
-r commonmark \
-w html \
-H aux/workflow/favicon.html \
- < "$F" > "public/$OUT"
+ < "$F" > "$OUTDIR/$OUT"