diff options
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 |
