Simplified docs
This commit is contained in:
11
docs/run.sh
11
docs/run.sh
@@ -1,8 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
docfiles=( $(ls *.md) )
|
||||
# If files specified, only make them; otherwise, make all
|
||||
if [[ $# -gt 0 ]]; then
|
||||
docfiles=( "$@" )
|
||||
else
|
||||
docfiles=( $(ls *.md) )
|
||||
fi
|
||||
|
||||
for fname in "${docfiles[@]}"; do
|
||||
outname="${fname/%md/html}"
|
||||
outname="_${fname/%md/html}"
|
||||
echo $fname "->" $outname
|
||||
pandoc -s -f gfm -t html $fname -o $outname --metadata pagetitle="$outname"
|
||||
open $outname
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user