[gtk-doc] mkdb: create links from since blocks to the index
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkdb: create links from since blocks to the index
- Date: Thu, 7 May 2015 08:15:00 +0000 (UTC)
commit 98c8fb822f96dc2164f9f06da0fef550ec2e5809
Author: Stefan Sauer <ensonic users sf net>
Date: Thu May 7 10:01:43 2015 +0200
mkdb: create links from since blocks to the index
Make since markers more useful to link them to the index so that one can see the
other new api.
gtkdoc-mkdb.in | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index bd2d838..661f780 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -1102,7 +1102,7 @@ sub OutputIndex {
my $header = $doctype_header;
$header =~ s/<!DOCTYPE \w+/<!DOCTYPE indexdiv/;
- print (OUTPUT "$header<indexdiv>\n");
+ print (OUTPUT "$header<indexdiv id=\"$basename\">\n");
@TRACE@("generate $basename index (".%apiindex." entries)\n");
@@ -1426,7 +1426,8 @@ sub OutputSymbolTraits {
my $desc = "";
if (exists $Since{$symbol}) {
- $desc .= "<para role=\"since\">Since $Since{$symbol}</para>";
+ my $link_id = "api-index-".$Since{$symbol};
+ $desc .= "<para role=\"since\">Since: <link linkend=\"$link_id\">$Since{$symbol}</link></para>";
}
if (exists $StabilityLevel{$symbol}) {
my $stability = $StabilityLevel{$symbol};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]