diff options
| author | Konstantin Kirik (snegovick) <snegovick@uprojects.org> | 2025-12-09 00:14:36 +0300 |
|---|---|---|
| committer | Konstantin Kirik (snegovick) <snegovick@uprojects.org> | 2025-12-09 00:14:36 +0300 |
| commit | c2447c0837629117f03d7f2494f451f4585c8b89 (patch) | |
| tree | ddb509b60846ddc22de07d43784e6497b597cc53 /man/lib/tohtml.sh | |
| parent | 97e1ee5918222272056d6747735e39933f79011c (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.sh | 6 |
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 |
