From 997d1752ff1b1d2b1cf425b2c05dc180abc2243a Mon Sep 17 00:00:00 2001 From: Yorhel Date: Fri, 13 Nov 2009 14:08:20 +0100 Subject: docs: Updated d11 and added :SUBSUB: macro --- ChangeLog | 1 + data/docs/11 | 42 ++++++++++++++++++++++++++++++++++++------ data/docs/index | 1 + data/style.css | 3 ++- lib/VNDB/Handler/Misc.pm | 7 ++++++- 5 files changed, 46 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index c759b600..0cbaee4e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ git - ? - Added public database API - Added [code] tag to bb2html() - Tweaked Multi's idlequote timings + - Added :SUBSUB: macro to the doc pages 2.8 - 2009-10-24 - Converted relation graphs to use inline SVG diff --git a/data/docs/11 b/data/docs/11 index b7f5ad45..a2928b7b 100644 --- a/data/docs/11 +++ b/data/docs/11 @@ -70,6 +70,34 @@ server resources and prevent abuse of this service.

Port
19534 ('VN')
+
+Disclaimer +

These notes should be obvious, but I'll point it out anyway.

+ + :SUB:Request/response syntax

@@ -224,9 +252,10 @@ however still required.
differently and that the order of the members may not be the same. What each member means and what possible values they can have differs per type and is documented below. -


+

-Returned object members for the 'vn' type: +:SUBSUB:get vn +

The following members are returned from a 'get vn' command:

@@ -344,7 +373,7 @@ however still required.
Member
-Accepted filters for the 'vn' type: +

'get vn' accepts the following filter expressions:

@@ -402,9 +431,10 @@ however still required.
novel and its releases. Note that the algorithm of this search may change and that it can use a different algorithm than the search function on the website. -
Field


+ -Returned object members for the 'release' type: +:SUBSUB:get release +

Returned members:

@@ -557,7 +587,7 @@ however still required.
Member
-Accepted filters for the 'release' type: +

Accepted filters:

diff --git a/data/docs/index b/data/docs/index index 0c94b71f..02c8f769 100644 --- a/data/docs/index +++ b/data/docs/index @@ -9,5 +9,6 @@
  • Discussion board
  • FAQ
  • About us
  • +
  • Database API
  • Development
  • diff --git a/data/style.css b/data/style.css index 5dcd7643..7653824e 100644 --- a/data/style.css +++ b/data/style.css @@ -905,7 +905,8 @@ div.scr_uploader { visibility: hidden; overflow: hidden; width: 1px; height: 1px /***** Documentation pages *****/ .docs { padding: 0 15% 20px 15%; } -.docs h3 { margin-top: 25px; } +.docs h3 { margin-top: 30px; font-size: 14px } +.docs h4 { margin-top: 15px; font-size: 12px } .docs dd { padding-bottom: 5px; margin-left: 120px; } .docs dt { float: left } .docs ul.index { display: block; float: right; width: 150px; padding: 2px; margin: 0 0 10px 5px; background: url($_boxbg$) repeat; border: 1px solid $border$; } diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm index 9625372b..d2f5852b 100644 --- a/lib/VNDB/Handler/Misc.pm +++ b/lib/VNDB/Handler/Misc.pm @@ -281,12 +281,17 @@ sub docpage { (my $title = shift @c) =~ s/^:TITLE://; chomp $title; - my $sec = 0; + my($sec, $subsec) = (0,0); for (@c) { s{^:SUB:(.+)\r?\n$}{ $sec++; + $subsec = 0; qq|

    $sec. $1

    \n| }eg; + s{^:SUBSUB:(.+)\r?\n$}{ + $subsec++; + qq|

    $sec.$subsec. $1

    \n| + }eg; s{^:INC:(.+)\r?\n$}{ $f = sprintf('%s/data/docs/%s', $VNDB::ROOT, $1); open($F, '<:utf8', $f.$l) or open($F, '<:utf8', $f) or die $!; -- cgit v1.2.3
    Field