From d0595724cd13a2274e34a813119cf457a796af75 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Wed, 22 Dec 2021 16:40:46 -0500 Subject: 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 --- panupdate | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'panupdate') 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 -- cgit v1.2.3