MoncoForge:

stagit-scripts

scripts to aid in the management of stagit sites
git clone https://moncoforge.com/stagit-scripts
Download | Log | Files | Refs | README

commit 038d5e0fd45b09b9eba8efbbd9213e2938f0ed18
parent d8564b1849fe6752cb50d36d43b8898c939ce487
Author: MoncoForge <git@moncoforge.com>
Date:   Sat, 14 Nov 2026 22:21:51 -0800

changed repo index to readme

Diffstat:
Mpost-receive-stagit | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/post-receive-stagit b/post-receive-stagit @@ -30,7 +30,11 @@ genstagit() { } cpindexfile() { - cp "$htdir/log.html" "$htdir/index.html" + cp "$htdir/file/README.md.html" "$htdir/index.html" + printf '%s\n' \ + 'g/="\.\.\//s//="/g' \ + w q \ + | ed -s "$htdir/index.html" > /dev/null } cpstylefiles() { @@ -95,7 +99,6 @@ mkpage() { echo "Updating stagit page for $name" setupinfo genstagit - cpindexfile cpstylefiles "./" [ -e $htdir/file/README.md ] && formatreadme for f in $(find "$htdir" -name "*.html"); do @@ -103,6 +106,7 @@ mkpage() { addhomelink $f addbottombar $f done + cpindexfile mkindex }