summaryrefslogtreecommitdiff
path: root/man/lib/tohtml.sh
diff options
context:
space:
mode:
authorKonstantin Kirik (snegovick) <snegovick@uprojects.org>2025-12-09 00:14:36 +0300
committerKonstantin Kirik (snegovick) <snegovick@uprojects.org>2025-12-09 00:14:36 +0300
commitc2447c0837629117f03d7f2494f451f4585c8b89 (patch)
treeddb509b60846ddc22de07d43784e6497b597cc53 /man/lib/tohtml.sh
parent97e1ee5918222272056d6747735e39933f79011c (diff)
Add mksectionindex.py script to create man section html index, integrate this script into man to html pipeline
Diffstat (limited to 'man/lib/tohtml.sh')
-rw-r--r--man/lib/tohtml.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/man/lib/tohtml.sh b/man/lib/tohtml.sh
index b3081a58..6b10e535 100644
--- a/man/lib/tohtml.sh
+++ b/man/lib/tohtml.sh
@@ -24,11 +24,13 @@ for d in $(ls); do
echo "Remove ${f}"
rm $f
else
- cat ${f} | mandoc -Thtml | python3 ${cwd}/mklinks.py -p /man/ -o ${cwd}/output/$d/$f.html
- #cat ${f} | mandoc -Thtml > ${cwd}/output/$d/$f.html
+ cat ${f} | mandoc -Thtml | python3 ${cwd}/lib/mklinks.py -p /man/ -o ${cwd}/output/$d/$f.html
echo "Processed ${d}/${f}"
fi
done
+ rm ${cwd}/output/$d/INDEX.html
+ python3 ${cwd}/lib/mksectionindex.py /man/ ${d} > ${cwd}/output/$d/index.html
popd
fi
done
+cp ${cwd}/index.html output