]> git.proxmox.com Git - systemd.git/commitdiff
man,html: say 'systemd 198' in the header
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 13 Mar 2013 03:57:09 +0000 (23:57 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 13 Mar 2013 03:57:46 +0000 (23:57 -0400)
This should help readers of the man or HTML pages know if the documentation
is out of date. An alternative to use a date generated from 'git log' was
considered, but since we try to keep user visible documentation up to date,
showing the project version should be enough.

Makefile.am
man/custom-html.xsl
man/custom-man.xsl
src/python-systemd/docs/layout.html

index 25e0ab4307819667f94714655e86e99226c2aa0c..cfcca7c88be9ff6b306671ba48c00a0ea7e8442c 100644 (file)
@@ -3680,9 +3680,9 @@ XSLTPROC_FLAGS = \
        --nonet \
        --stringparam man.output.quietly 1 \
        --stringparam funcsynopsis.style ansi \
-       --stringparam man.th.extra1.suppress 1 \
        --stringparam man.authors.section.enabled 0 \
-       --stringparam man.copyright.section.enabled 0
+       --stringparam man.copyright.section.enabled 0 \
+       --stringparam systemd.version $(VERSION)
 
 XSLTPROC_PROCESS_MAN = \
        $(AM_V_XSLT)$(MKDIR_P) $(dir $@) && \
index c612baf4d808814c76964e19c7cf058c2f5b6af2..c4099b26ba6a05c79111b7ff5daa8fb86fb61d1a 100644 (file)
     </xsl:attribute>
     <xsl:text>gudev </xsl:text>
   </a>
+
+  <span style="float:right">
+    <xsl:text>systemd </xsl:text>
+    <xsl:value-of select="$systemd.version"/>
+  </span>
   <hr/>
 </xsl:template>
 
index 4d9d08e0046570c736af711de9a128765cd43a7c..753e5715e3a073a5ddccb555741a676851f4eed3 100644 (file)
 
 <xsl:template name="top.comment" />
 
+<xsl:template name="TH.title.line">
+    <xsl:param name="title"/>
+    <xsl:param name="section"/>
+    <xsl:param name="extra1"/>
+    <xsl:param name="extra2"/>
+    <xsl:param name="extra3"/>
+
+    <xsl:call-template name="mark.subheading"/>
+    <xsl:text>.TH "</xsl:text>
+    <xsl:call-template name="string.upper">
+      <xsl:with-param name="string">
+        <xsl:value-of select="normalize-space($title)"/>
+      </xsl:with-param>
+    </xsl:call-template>
+    <xsl:text>" "</xsl:text>
+    <xsl:value-of select="normalize-space($section)"/>
+    <xsl:text>" "" "systemd </xsl:text>
+    <xsl:value-of select="$systemd.version"/>
+    <xsl:text>" "</xsl:text>
+    <xsl:value-of select="normalize-space($extra3)"/>
+    <xsl:text>"&#10;</xsl:text>
+    <xsl:call-template name="mark.subheading"/>
+</xsl:template>
+
 </xsl:stylesheet>
index 78989143edfff2fa04271b798d58bbc155c7117a..be5ff980ef8a418887f895e567fe41c3671f2791 100644 (file)
@@ -6,7 +6,7 @@
   <a href="index.html">Python </a>·
   <a href="../libudev/index.html">libudev </a>·
   <a href="../libudev/index.html">gudev </a>
-  <span style="float:right">systemd v. {{release}}</span>
+  <span style="float:right">systemd {{release}}</span>
   <hr />
 {% endblock %}