Add ylib + various fixes
This commit is contained in:
parent
764f628cb7
commit
2f88c43171
6 changed files with 26 additions and 16 deletions
|
|
@ -12,6 +12,8 @@ BEGIN { ($ROOT = abs_path $0) =~ s{index\.cgi$}{}; }
|
|||
|
||||
|
||||
my @changes = (
|
||||
[ '2013-04-04', '/ylib', 'Created a page for Ylib' ],
|
||||
[ '2013-04-03', '/ncdc', 'Created a mailing list for ncdc' ],
|
||||
[ '2013-03-23', '/ncdc', 'ncdc 1.16.1 released.' ],
|
||||
[ '2013-03-02', '/ncdc', 'ncdc 1.15 released.' ],
|
||||
[ '2012-12-15', '/globster', 'Announcing yet another awesome project: Globster!' ],
|
||||
|
|
@ -90,6 +92,7 @@ TUWF::register(
|
|||
qr{tuwf} => sub { podpage(shift, 'tuwf', 'tuwf', '', 'The Ultimate Website Framework') },
|
||||
qr{tuwf/man(?:/(db|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{doc} => sub { podpage(shift, 'doc', 'doc', '', 'Articles') },
|
||||
qr{doc/sqlaccess} => sub { podpage(shift, 'sqlaccess', 'doc', '', 'Multi-threaded Access to an SQLite3 Database', 1) },
|
||||
qr{doc/commvis} => sub { podpage(shift, 'doc-commvis', 'doc', '', 'A Distributed Communication System for Modular Applications', 1) },
|
||||
|
|
@ -179,7 +182,9 @@ sub atom {
|
|||
tag link => rel => 'self', type => 'application/atom+xml', href => "http://dev.yorhel.nl/feed.atom", undef;
|
||||
tag link => rel => 'alternate', type => 'text/html', href => 'http://dev.yorhel.nl/', undef;
|
||||
|
||||
my $n = 0;
|
||||
for(@changes) {
|
||||
last if $n++ >= 10;
|
||||
tag 'entry';
|
||||
tag id => 'http://dev.yorhel.nl'.($_->[1]||'/').'#'.$_->[0];
|
||||
tag title => $_->[2];
|
||||
|
|
@ -458,7 +463,7 @@ sub htmlMenu {
|
|||
h1 class => 'title', "~ \u$o{page} ~" if $o{spec}{$o{page}};
|
||||
my $m = sub {
|
||||
li;
|
||||
my $s = $_[0] =~ m{^/([^/]+)} && $o{spec}{$1} && $o{page} ne $1;
|
||||
my $s = ($_[0] =~ m{^/([^/]+)} && $o{spec}{$1} && $o{page} ne $1) || $_[0] =~ m{^http://};
|
||||
my @c = ($s?'special':(), $_[2]?'menusel':(), $_[4]?'tiny':());
|
||||
a href => $_[0], @c?(class => join ' ',@c):(), $_[1];
|
||||
if($_[3]) {
|
||||
|
|
@ -485,6 +490,7 @@ sub htmlMenu {
|
|||
$m->('/ncdc/changes', 'Changelog', $o{sec} eq 'changes');
|
||||
$m->('/ncdc/scr', 'Screenshots', $o{sec} eq 'scr');
|
||||
$m->('/ncdc/bug', 'Bug tracker', $o{sec} eq 'bug');
|
||||
$m->('http://l.blicky.net/listinfo/ncdc', 'Mailing list ');
|
||||
} elsif($o{page} eq 'globster') {
|
||||
$m->('/globster', 'Info', !$o{sec});
|
||||
$m->('/globster/daemon', 'Commands', (scalar $o{sec} =~ /(daemon|ctl|launch)/), sub {
|
||||
|
|
@ -511,6 +517,7 @@ sub htmlMenu {
|
|||
$m->('/ncdc', 'Ncdc ');
|
||||
$m->('/globster', 'Globster ');
|
||||
$m->('/tuwf', 'Tuwf ');
|
||||
$m->('/ylib', 'Ylib', $o{page} eq 'ylib');
|
||||
$m->('/doc', 'Articles', $o{page} eq 'doc');
|
||||
$m->('/dump', 'Code dump', $o{page} eq 'dump', sub {
|
||||
$m->('/dump', 'Misc.', $o{page} eq 'dump' && !$o{sec});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue