Skip to content
Browse files

- added globconfs and catconfs to olinkdb setup

- new items (present in cvs-head) are now visually marked. The problem,
 however, is that the nice image appears only later in the page, not at the
 top in TOC (in the TOC, simply "[NEW]" is written).
 I was very much looking forward to this, but the problem is that TOC
 autogeneration routine strips non-text from the title. So, we'll live with
 this ugly display for a while..
  • Loading branch information...
1 parent 4b3a9eb commit 85bb02768b237e80b4ff7da9366c91b01ae01456 @docelic docelic committed
Showing with 32 additions and 0 deletions.
  1. +16 −0 bin/refs-autogen
  2. +12 −0 docbook/olinkdb-c.xml
  3. +4 −0 docbook/olinkdb-nc.xml
  4. BIN images/new.png
View
16 bin/refs-autogen
@@ -377,6 +377,22 @@ while ( my($k,$v) = each %autogenerated ) {
# DONE
$ag{latest} = $hash{version};
+ # Visually mark NEW (cvs-head) items
+ if ( @{ $ag{'_available in'} } == 1 and
+ ${$ag{'_available in'}}[0] eq $ag{latest} ) {
+ $ag{purpose} = <<ENDD;
+<inlinemediaobject>
+<imageobject>
+<imagedata fileref="./images/new.png" format="PNG"/>
+</imageobject>
+<textdata>
+<phrase>[NEW]</phrase>
+</textdata>
+</inlinemediaobject>
+$ag{purpose}
+ENDD
+ }
+
# Expand template
my $template = $templates{ $ag{"_symbol type"} };
$template or warn "No template $ag{'_symbol type'} ?\n";
View
12 docbook/olinkdb-c.xml
@@ -10,6 +10,8 @@
<!ENTITY uitags SYSTEM "../tmp/uitags-c.db">
<!ENTITY usertags SYSTEM "../tmp/usertags-c.db">
<!ENTITY systemtags SYSTEM "../tmp/systemtags-c.db">
+ <!ENTITY globconfs SYSTEM "../tmp/globconfs-c.db">
+ <!ENTITY catconfs SYSTEM "../tmp/catconfs-c.db">
]>
<targetset>
@@ -73,6 +75,16 @@
&systemtags;
</document>
</dir>
+
+ <dir name='globconfs'>
+ <document targetdoc="globconfs">
+ &globconfs;
+ </document>
+ </dir>
+
+ <dir name='catconfs'>
+ <document targetdoc="catconfs">
+ &catconfs;
</dir>
</sitemap>
View
4 docbook/olinkdb-nc.xml
@@ -10,6 +10,8 @@
<!ENTITY usertags SYSTEM "../tmp/usertags-nc.db">
<!ENTITY uitags SYSTEM "../tmp/uitags-nc.db">
<!ENTITY systemtags SYSTEM "../tmp/systemtags-nc.db">
+ <!ENTITY globconfs SYSTEM "../tmp/globconfs-nc.db">
+ <!ENTITY catconfs SYSTEM "../tmp/catconfs-nc.db">
]>
<targetset>
@@ -28,6 +30,8 @@
<document targetdoc="usertags" baseuri="usertags.html"> &usertags; </document>
<document targetdoc="uitags" baseuri="uitags.html"> &uitags; </document>
<document targetdoc="systemtags" baseuri="systemtags.html"> &systemtags; </document>
+ <document targetdoc="globconfs" baseuri="globconfs.html"> &globconfs; </document>
+ <document targetdoc="catconfs" baseuri="catconfs.html"> &catconfs; </document>
</dir>
</sitemap>
View
BIN images/new.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 85bb027

Please sign in to comment.
Something went wrong with that request. Please try again.