aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/commonmark.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-26 18:15:33 -0300
committerEuAndreh <eu@euandre.org>2021-06-26 18:17:20 -0300
commite6510c83a2146436778fbd905bf6597eb187ca4f (patch)
treeb0f0abd1aab262756dfd915e980da8844b7df16d /aux/workflow/commonmark.sh
parentMakefile: Remove fallible/valgrind tests for now (diff)
downloadremembering-e6510c83a2146436778fbd905bf6597eb187ca4f.tar.gz
remembering-e6510c83a2146436778fbd905bf6597eb187ca4f.tar.xz
Makefile, README.md: Adapt to changes in aux/
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"