summaryrefslogtreecommitdiffstats
path: root/panupdate
diff options
context:
space:
mode:
authormjfernez <mjf@mjfer.net>2021-12-22 16:40:46 -0500
committermjfernez <mjf@mjfer.net>2021-12-22 16:40:46 -0500
commitd0595724cd13a2274e34a813119cf457a796af75 (patch)
tree90a3b6d44ff929c47f05b354a5f682f6df6e30f1 /panupdate
parent3e87511c9ded4663150d6c4c4a1d829b53a16ed4 (diff)
downloadsite-files-d0595724cd13a2274e34a813119cf457a796af75.tar.gz
Table of Contents! Adds some works in progress
This commit adds a table of contents generated in the panupdate script. It also changes some links on the homepage to conform with removing '/site' as the parent directory
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