library-web r512 - in trunk: . data/skin data/xslt src
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: library-web r512 - in trunk: . data/skin data/xslt src
- Date: Mon, 13 Oct 2008 16:51:46 +0000 (UTC)
Author: fpeters
Date: Mon Oct 13 16:51:46 2008
New Revision: 512
URL: http://svn.gnome.org/viewvc/library-web?rev=512&view=rev
Log:
* data/skin/lgo.css, data/xslt/db2html.xsl, src/lgo.py: display and
style <remark> elements for nightly documents.
Modified:
trunk/ChangeLog
trunk/data/skin/lgo.css
trunk/data/xslt/db2html.xsl
trunk/src/lgo.py
Modified: trunk/data/skin/lgo.css
==============================================================================
--- trunk/data/skin/lgo.css (original)
+++ trunk/data/skin/lgo.css Mon Oct 13 16:51:46 2008
@@ -642,3 +642,7 @@
border-bottom: 1px solid #888
}
+div.devel-remark {
+ font-style: italic;
+ color: #800;
+}
Modified: trunk/data/xslt/db2html.xsl
==============================================================================
--- trunk/data/xslt/db2html.xsl (original)
+++ trunk/data/xslt/db2html.xsl Mon Oct 13 16:51:46 2008
@@ -44,6 +44,7 @@
<xsl:param name="libgo.lang" select="''"/>
<xsl:param name="libgo.tarball" select="false()"/>
<xsl:param name="libgo.languages_in_sidebar" select="false()"/>
+<xsl:param name="libgo.nightly" select="false()"/>
<!-- Setting parameters for included stylesheets -->
<xsl:param name="db.chunk.extension" select="concat('.html.',$libgo.lang)"/>
@@ -295,5 +296,12 @@
-->
</xsl:template>
+<xsl:template match="remark">
+ <xsl:if test="$libgo.nightly">
+ <div class="devel-remark">
+ <xsl:apply-templates/>
+ </div>
+ </xsl:if>
+</xsl:template>
</xsl:stylesheet>
Modified: trunk/src/lgo.py
==============================================================================
--- trunk/src/lgo.py (original)
+++ trunk/src/lgo.py Mon Oct 13 16:51:46 2008
@@ -903,6 +903,9 @@
'--stringparam', 'libgo.lang', lang,
'--stringparam', 'libgo.channel', self.channel,
self.db2html_xsl_file, xml_file]
+
+ if self.nightly:
+ cmd[5:5] = ['--param', 'libgo.nightly', 'true()']
onepage_cmd = cmd[:]
# 1st, generate a single page with all documentation, and
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]