diff options
author | mjfernez <mjf@mjfer.net> | 2021-12-22 16:40:46 -0500 |
---|---|---|
committer | mjfernez <mjf@mjfer.net> | 2021-12-22 16:40:46 -0500 |
commit | d0595724cd13a2274e34a813119cf457a796af75 (patch) | |
tree | 90a3b6d44ff929c47f05b354a5f682f6df6e30f1 /panupdate | |
parent | 3e87511c9ded4663150d6c4c4a1d829b53a16ed4 (diff) | |
download | site-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-x | panupdate | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |