summaryrefslogtreecommitdiffstats
path: root/panupdate
diff options
context:
space:
mode:
authormjfernez <mjf@mjfer.net>2023-07-14 13:21:13 -0400
committermjfernez <mjf@mjfer.net>2023-07-14 13:21:13 -0400
commit002118777ddf2f81d2894d81bc7fadc64dbbc36f (patch)
treee7552ee092e4f4601c96d3a1c97de5f066b637ec /panupdate
parentd96c7cad92b025ad80a8fe64f91d1c215272e313 (diff)
downloadsite-files-002118777ddf2f81d2894d81bc7fadc64dbbc36f.tar.gz
Add script to update TOC links
With commit 50b72b5787338ee3c0ef0a4aebfcdf8acf3c3a08 in ezcms, the default behavior for links changes to open in a new tab. This script helps override the option for table of content links by updating "target" to point to "_self"
Diffstat (limited to 'panupdate')
-rwxr-xr-xpanupdate1
1 files changed, 1 insertions, 0 deletions
diff --git a/panupdate b/panupdate
index d751040..26063c0 100755
--- a/panupdate
+++ b/panupdate
@@ -11,6 +11,7 @@ do
pandoc -s --toc --toc-depth=6 \
--ascii -V toc-title:"Contents" \
-f markdown-smart $file -t html -o $newfile
+ python update_targets.py $newfile
fi
if [[ "$file" == *.description ]]
then