Add TUWF 1.2
This commit is contained in:
parent
54947f15c2
commit
2192e68775
8 changed files with 58 additions and 13 deletions
|
|
@ -12,6 +12,7 @@ BEGIN { ($ROOT = abs_path $0) =~ s{index\.cgi$}{}; }
|
|||
|
||||
|
||||
my @changes = (
|
||||
[ '2018-02-18', '/tuwf', 'TUWF 1.2 released' ],
|
||||
[ '2018-01-29', '/ncdu', 'ncdu 1.13 released' ],
|
||||
[ '2018-01-24', '/nginx-confgen', 'nginx-confgen 1.1 released' ],
|
||||
[ '2018-01-19', '/nginx-confgen', 'New project: nginx-confgen' ],
|
||||
|
|
@ -117,7 +118,7 @@ TUWF::register(
|
|||
qr{nginx-confgen/man} => sub { podpage(shift, 'nginx-confgen-man', 'nginx-confgen', 'man', 'The nginx-confgen(1) Man Page', 1) },
|
||||
qr{nginx-confgen/changes} => sub { changelog(shift, 'nginx-confgen-changelog', undef, 'nginx-confgen', 'changes', 'nginx-confgen Changelog', 1) },
|
||||
qr{tuwf} => sub { podpage(shift, 'tuwf', 'tuwf', '', 'The Ultimate Website Framework') },
|
||||
qr{tuwf/man(?:/(db|misc|request|response|xml))?} => \&tuwfmanual,
|
||||
qr{tuwf/man(?:/(db|intro|misc|request|response|xml))?} => \&tuwfmanual,
|
||||
qr{tuwf/changes} => sub { changelog(shift, 'tuwf-changelog', 'TUWF', 'tuwf', 'changes', 'TUWF Changelog') },
|
||||
qr{ylib} => sub { podpage(shift, 'ylib/README.pod', 'ylib', '', 'Ylib') },
|
||||
qr{yxml} => sub { podpage(shift, 'yxml', 'yxml', '', 'Yxml - A small, fast and correct* XML parser') },
|
||||
|
|
@ -202,7 +203,7 @@ sub tuwfmanual {
|
|||
$mod .= '/'.($mod{$man} || ucfirst $man) if $man;
|
||||
(my $pm = $mod) =~ s/\//::/;
|
||||
$s->htmlHeader(title => $pm.' Documentation', page => 'tuwf', sec => 'man', sec2 => $man);
|
||||
(my $f = $INC{"$mod.pm"}) =~ s/\.pm$/.pod/;
|
||||
(my $f = $INC{"TUWF.pm"}) =~ s/TUWF\.pm$/$mod.pod/;
|
||||
$s->htmlPOD($f, 1);
|
||||
$s->htmlFooter;
|
||||
}
|
||||
|
|
@ -414,6 +415,7 @@ sub htmlPOD {
|
|||
$p->{podhtml_LOT} = {
|
||||
'TUWF' => '/tuwf/man',
|
||||
'TUWF::DB' => '/tuwf/man/db',
|
||||
'TUWF::Intro' => '/tuwf/man/intro',
|
||||
'TUWF::Misc' => '/tuwf/man/misc',
|
||||
'TUWF::Request' => '/tuwf/man/request',
|
||||
'TUWF::Response' => '/tuwf/man/response',
|
||||
|
|
@ -550,6 +552,7 @@ sub htmlMenu {
|
|||
$m->('/tuwf/man', 'Manual', $o{sec} eq 'man', sub {
|
||||
$m->('/tuwf/man', 'Main', $o{sec} eq 'man' && !$o{sec2});
|
||||
$m->('/tuwf/man/db', '::DB', $o{sec} eq 'man' && $o{sec2} eq 'db');
|
||||
$m->('/tuwf/man/intro', '::Intro', $o{sec} eq 'man' && $o{sec2} eq 'intro');
|
||||
$m->('/tuwf/man/misc', '::Misc', $o{sec} eq 'man' && $o{sec2} eq 'misc');
|
||||
$m->('/tuwf/man/request', '::Request', $o{sec} eq 'man' && $o{sec2} eq 'request');
|
||||
$m->('/tuwf/man/response', '::Response', $o{sec} eq 'man' && $o{sec2} eq 'response');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue