[library-web] Add support for friends of gnome ruler, enabled for release notes
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] Add support for friends of gnome ruler, enabled for release notes
- Date: Tue, 23 Mar 2010 12:23:43 +0000 (UTC)
commit 6ea9c03e03ede537dc58b7cb345671398d1986eb
Author: Frédéric Péters <fpeters 0d be>
Date: Tue Mar 23 13:22:35 2010 +0100
Add support for friends of gnome ruler, enabled for release notes
data/overlay.xml.in | 1 +
data/xslt/db2html.xsl | 4 +++-
src/modtypes/gnomedocbook.py | 4 ++++
3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/data/overlay.xml.in b/data/overlay.xml.in
index f0ee623..bb99baa 100644
--- a/data/overlay.xml.in
+++ b/data/overlay.xml.in
@@ -996,5 +996,6 @@
<quirk>flat-rendering</quirk>
<quirk>languages-in-sidebar</quirk>
<quirk>no-title-and-abstract-from-document</quirk>
+ <quirk>friends-of-gnome-ruler</quirk>
</quirks>
</overlay>
diff --git a/data/xslt/db2html.xsl b/data/xslt/db2html.xsl
index 590cfcc..a33d598 100644
--- a/data/xslt/db2html.xsl
+++ b/data/xslt/db2html.xsl
@@ -44,6 +44,7 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
<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.friends_of_gnome_ruler" select="false()"/>
<xsl:param name="libgo.nightly" select="false()"/>
<!-- Setting parameters for included stylesheets -->
@@ -175,7 +176,8 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
<xsl:call-template name="libgo.header">
<xsl:with-param name="lang"><xsl:value-of select="$libgo.lang"/></xsl:with-param>
</xsl:call-template>
- <xsl:if test="$libgo.nightly">
+ <xsl:if test="$libgo.friends_of_gnome_ruler">
+ <script type="text/javascript" src="http://www.gnome.org/friends/ruler/ruler.js"></script>
</xsl:if>
</xsl:if>
</xsl:template>
diff --git a/src/modtypes/gnomedocbook.py b/src/modtypes/gnomedocbook.py
index 149f781..224a135 100644
--- a/src/modtypes/gnomedocbook.py
+++ b/src/modtypes/gnomedocbook.py
@@ -252,6 +252,10 @@ class GnomeDocbookModule(DocModule):
cmd.insert(5, '--stringparam')
cmd.insert(6, 'libgo.languages_in_sidebar')
cmd.insert(7, ','.join(sorted(doc_linguas)))
+ if 'friends-of-gnome-ruler' in quirks:
+ cmd.insert(5, '--param')
+ cmd.insert(6, 'libgo.friends_of_gnome_ruler')
+ cmd.insert(7, 'true()')
logging.debug('executing %s' % ' '.join(cmd))
rc = subprocess.call(cmd)
if rc != 0:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]