Add older versions of man pages + misc site improvements

This commit is contained in:
Yorhel 2024-07-21 12:07:15 +02:00
parent 2196b2fbd4
commit 436c5b5294
9 changed files with 192 additions and 23 deletions

View file

@ -52,11 +52,40 @@ PAGES=\
"ncdu/changes.log https://g.blicky.net/ncdu.git/plain/ChangeLog?h=master Ncdu 1.x Release History"\
"ncdu/changes2.log https://g.blicky.net/ncdu.git/plain/ChangeLog?h=zig Ncdu 2.x Release History"\
"ncdu/jsonfmt.md"\
"ncdu/man.mdoc https://g.blicky.net/ncdu.git/plain/ncdu.1?h=zig Ncdu Manual"\
"ncdu/man.mdoc https://g.blicky.net/ncdu.git/plain/ncdu.1?h=v2.4 Ncdu 2.4 Manual"\
"ncdu/man/2_3.pod https://g.blicky.net/ncdu.git/plain/ncdu.pod?h=v2.3 Ncdu 2.3 Manual"\
"ncdu/man/2_2.pod https://g.blicky.net/ncdu.git/plain/ncdu.pod?h=v2.2 Ncdu 2.2 Manual"\
"ncdu/man/2_1.pod https://g.blicky.net/ncdu.git/plain/ncdu.pod?h=v2.1 Ncdu 2.1 Manual"\
"ncdu/man/2_0.pod https://g.blicky.net/ncdu.git/plain/ncdu.pod?h=v2.0 Ncdu 2.0 Manual"\
"ncdu/man/1_20.mdoc https://g.blicky.net/ncdu.git/plain/ncdu.1?h=v1.20 Ncdu 1.20 Manual"\
"ncdu/man/1_19.pod https://g.blicky.net/ncdu.git/plain/doc/ncdu.pod?h=v1.19 Ncdu 1.19 Manual"\
"ncdu/man/1_18.pod https://g.blicky.net/ncdu.git/plain/doc/ncdu.pod?h=v1.18 Ncdu 1.18 Manual"\
"ncdu/man/1_17.pod https://g.blicky.net/ncdu.git/plain/doc/ncdu.pod?h=v1.17 Ncdu 1.17 Manual"\
"ncdu/man/1_16.pod https://g.blicky.net/ncdu.git/plain/doc/ncdu.pod?h=v1.16 Ncdu 1.16 Manual"\
"ncdu/man/1_15_1.pod https://g.blicky.net/ncdu.git/plain/doc/ncdu.pod?h=v1.15.1 Ncdu 1.15.1 Manual"\
"ncdu/man/1_15.pod https://g.blicky.net/ncdu.git/plain/doc/ncdu.pod?h=v1.15 Ncdu 1.15 Manual"\
"ncdu/man/1_14.pod https://g.blicky.net/ncdu.git/plain/doc/ncdu.pod?h=v1.14 Ncdu 1.14 Manual"\
"ncdu/man/1_13.pod https://g.blicky.net/ncdu.git/plain/doc/ncdu.pod?h=v1.13 Ncdu 1.13 Manual"\
"ncdu/man/1_12.pod https://g.blicky.net/ncdu.git/plain/doc/ncdu.pod?h=v1.12 Ncdu 1.12 Manual"\
"ncdu/man/1_11.pod https://g.blicky.net/ncdu.git/plain/doc/ncdu.pod?h=v1.11 Ncdu 1.11 Manual"\
"ncdu/man/1_10.pod https://g.blicky.net/ncdu.git/plain/doc/ncdu.pod?h=v1.10 Ncdu 1.10 Manual"\
"ncdu/man/1_9.pod https://g.blicky.net/ncdu.git/plain/doc/ncdu.pod?h=v1.9 Ncdu 1.9 Manual"\
"ncdu/man/1_8.mdoc https://g.blicky.net/ncdu.git/plain/doc/ncdu.1?h=v1.8 Ncdu 1.8 Manual"\
"ncdu/man/1_7.mdoc https://g.blicky.net/ncdu.git/plain/doc/ncdu.1?h=v1.7 Ncdu 1.7 Manual"\
"ncdu/man/1_6.mdoc https://g.blicky.net/ncdu.git/plain/doc/ncdu.1?h=v1.6 Ncdu 1.6 Manual"\
"ncdu/man/1_5.mdoc https://g.blicky.net/ncdu.git/plain/doc/ncdu.1?h=v1.5 Ncdu 1.5 Manual"\
"ncdu/man/1_4.mdoc https://g.blicky.net/ncdu.git/plain/doc/ncdu.1?h=v1.4 Ncdu 1.4 Manual"\
"ncdu/man/1_3.mdoc https://g.blicky.net/ncdu.git/plain/doc/ncdu.1?h=v1.3 Ncdu 1.3 Manual"\
"ncdu/man/1_2.mdoc https://g.blicky.net/ncdu.git/plain/doc/ncdu.1?h=v1.2 Ncdu 1.2 Manual"\
"ncdu/man/1_1.mdoc https://g.blicky.net/ncdu.git/plain/doc/ncdu.1?h=v1.1 Ncdu 1.1 Manual"\
"ncdu/scr.md"\
"nginx-confgen.md"\
"nginx-confgen/changes.log https://g.blicky.net/nginx-confgen.git/plain/ChangeLog Nginx-confgen Release History"\
"nginx-confgen/man.mdoc https://g.blicky.net/nginx-confgen.git/plain/nginx-confgen.1 The nginx-confgen(1) Man Page"\
"nginx-confgen/changes.log https://g.blicky.net/nginx-confgen.git/plain/ChangeLog nginx-confgen 2.2 manual"\
"nginx-confgen/man.mdoc https://g.blicky.net/nginx-confgen.git/plain/nginx-confgen.1 nginx-confgen 2.1 Manual"\
"nginx-confgen/man/2.0.pod https://g.blicky.net/nginx-confgen.git/plain/nginx-confgen.pod?h=2.0 nginx-confgen 2.0 Manual"\
"nginx-confgen/man/1_2.pod https://g.blicky.net/nginx-confgen.git/plain/nginx-confgen.pod?h=1.2 nginx-confgen 1.2 Manual"\
"nginx-confgen/man/1_1.pod https://g.blicky.net/nginx-confgen.git/plain/nginx-confgen.pod?h=1.1 nginx-confgen 1.1 Manual"\
"nginx-confgen/man/1_0.pod https://g.blicky.net/nginx-confgen.git/plain/nginx-confgen.pod?h=1.0 nginx-confgen 1.0 Manual"\
"sqlbin.md"\
"tuwf.md"\
"sqlbin/manual.md https://g.blicky.net/sqlbin.git/plain/manual.md"\
@ -74,7 +103,9 @@ PAGES=\
"yxml/man.md https://g.blicky.net/yxml.git/plain/yxml.md"\
"torreas.md"\
"torreas/changes.log https://g.blicky.net/torreas.git/plain/ChangeLog Torreas Release History"\
"torreas/man.mdoc https://g.blicky.net/torreas.git/plain/torreas.1 Torreas Manual"
"torreas/man.mdoc https://g.blicky.net/torreas.git/plain/torreas.1 Torreas 0.3 Manual"\
"torreas/man/0_2.mdoc https://g.blicky.net/torreas.git/plain/torreas.1?h=0.2 Torreas 0.2 Manual"\
"torreas/man/0_1.pod https://g.blicky.net/torreas.git/plain/torreas.pod?h=0.1 Torreas 0.1 Manual"
# Files generated by mkfeed.pl
@ -161,11 +192,12 @@ dat/download.md: mkdlpage.pl pub/download/*.sha256
./mkdlpage.pl >"$@"
${HTML_OUT}: pub/%.html: dat/%.md template.html
${HTML_OUT}: pub/%.html: dat/%.md template.html Makefile
@echo "HTML $*"
@mkdir -p $$(dirname "$@")
@cat "$<" |\
sed -E 's/\[([^]]+)\]\(\/download\/([^\) ]+)\)/\0 <a class="dlinfo" title="File info" href="\/download#\2">ⓘ<\/a>/g' |\
./docversions.pl "$*" ${HTML_OUT} |\
pandoc -f markdown -t html5 --strip-comments --template template.html \
--metadata path1=$$(echo "$*" | sed 's/\/.*//') \
--metadata path2=$$(echo "$*" | sed 's/\//-/' | sed 's/\/.*//') \