Files
PointsBot/docs/run.sh
2020-02-05 08:39:29 -08:00

9 lines
214 B
Bash
Executable File

#!/usr/bin/env bash
docfiles=( $(ls *.md) )
for fname in "${docfiles[@]}"; do
outname="${fname/%md/html}"
pandoc -s -f gfm -t html $fname -o $outname --metadata pagetitle="$outname"
open $outname
done