summaryrefslogtreecommitdiffstats
path: root/panupdate
diff options
context:
space:
mode:
Diffstat (limited to 'panupdate')
-rwxr-xr-xpanupdate6
1 files changed, 4 insertions, 2 deletions
diff --git a/panupdate b/panupdate
index 80af7ca..d751040 100755
--- a/panupdate
+++ b/panupdate
@@ -8,12 +8,14 @@ do
then
newfile=$(sed "s/\.md\///; s/md/html/" <<< $file)
echo "Saved "$file" to "$newfile
- pandoc --ascii -f markdown-smart $file -t html -o $newfile
+ pandoc -s --toc --toc-depth=6 \
+ --ascii -V toc-title:"Contents" \
+ -f markdown-smart $file -t html -o $newfile
fi
if [[ "$file" == *.description ]]
then
newfile=$(sed "s/\.md\///" <<< $file)
- cp -v $file $newfile
+ cp -vf $file $newfile
fi
done
done