ncdu: Added export file format documentation

This commit is contained in:
Yorhel 2012-12-02 21:03:46 +01:00
parent 62b3ed6ff1
commit 77755d18cc
2 changed files with 230 additions and 2 deletions

View file

@ -12,6 +12,7 @@ BEGIN { ($ROOT = abs_path $0) =~ s{index\.cgi$}{}; }
my @changes = (
[ '2012-12-02', '/ncdc/jsonfmt', 'Documented the ncdu export file format' ],
[ '2012-11-04', '/ncdc', 'ncdc 1.14 released' ],
[ '2012-10-17', '/dump', 'Added reference to my repo of small C libs to the code dump' ],
[ '2012-10-07', '/dump#maildir.pl','Added maildir.pl to the code dump' ],
@ -68,9 +69,10 @@ my @changes = (
TUWF::register(
qr{} => sub { podpage(shift, 'home', '', '', "Yorhel's Projects") },
qr{ncdu} => sub { podpage(shift, 'ncdu', 'ncdu', '', 'NCurses Disk Usage') },
qr{ncdu/man} => sub { podpage(shift, 'ncdu-man', 'ncdu', 'man', 'Ncdu Manual') },
qr{ncdu/man} => sub { podpage(shift, 'ncdu-man', 'ncdu', 'man', 'Ncdu Manual', 1) },
qr{ncdu/changes} => sub { changelog(shift, 'ncdu-changelog', 'ncdu', 'ncdu', 'changes', 'Ncdu Changelog') },
qr{ncdu/scr} => sub { podpage(shift, 'ncdu-scr', 'ncdu', 'scr', 'Ncdu Screenshots') },
qr{ncdu/jsonfmt} => sub { podpage(shift, 'ncdu-jsonfmt', 'ncdu', 'jsonfmt', 'Ncdu Export File Format') },
qr{ncdc} => sub { podpage(shift, 'ncdc', 'ncdc', '', 'NCurses Direct Connect') },
qr{ncdc/faq} => sub { podpage(shift, 'ncdc-faq', 'ncdc', 'faq', 'Ncdc Q&A', 1) },
qr{ncdc/scr} => sub { podpage(shift, 'ncdc-scr', 'ncdc', 'scr', 'Ncdc Screenshots') },
@ -445,7 +447,9 @@ sub htmlMenu {
ul;
if($o{page} eq 'ncdu') {
$m->('/ncdu', 'Info', !$o{sec});
$m->('/ncdu/man', 'Manual', $o{sec} eq 'man');
$m->('/ncdu/man', 'Manual', $o{sec} eq 'man', sub {
$m->('/ncdu/jsonfmt','File Format', $o{sec} eq 'jsonfmt');
});
$m->('/ncdu/changes', 'Changelog', $o{sec} eq 'changes');
$m->('/ncdu/scr', 'Screenshots', $o{sec} eq 'scr');
$m->('/ncdu/bug', 'Bug tracker', $o{sec} eq 'bug');