]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
doc: Fix links in the Manual 4dba116e49b08f4ba7c946228263c9ab91954bbd
authorAlistair Thomas <astavale@yahoo.co.uk>
Thu, 28 Jun 2018 16:16:04 +0000 (17:16 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 30 Jun 2018 10:37:31 +0000 (12:37 +0200)
The DocBook source for the Vala Reference Manual is now only
available through HTTPS. Update the XSLT so links are correctly
translated to in document links again.

doc/manual/common.xsl
doc/manual/print.xsl

index 2a802b52d5bdc0ccdea1538d05ad936cb1af6b03..6cf54e50efed1fb88d149ec45fbb511947feb745 100644 (file)
   </xsl:template>
 
   <xsl:template match="ulink">
-    <xsl:if test="starts-with(@url,'http://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/')">
+    <xsl:if test="starts-with(@url,'https://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/')">
       <xsl:variable name="pageid">
         <xsl:call-template name="normalizepath">
-          <xsl:with-param name="title" select="str:decode-uri(str:tokenize(substring-after(@url, 'http://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/'),'#')[1])"/>
+          <xsl:with-param name="title" select="str:decode-uri(str:tokenize(substring-after(@url, 'https://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/'),'#')[1])"/>
         </xsl:call-template>
       </xsl:variable>
-      <a href="{$pageid}.html#{str:tokenize(substring-after(@url, 'http://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/'),'#')[2]}"><xsl:value-of select="."/></a>
+      <a href="{$pageid}.html#{str:tokenize(substring-after(@url, 'https://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/'),'#')[2]}"><xsl:value-of select="."/></a>
     </xsl:if>
-    <xsl:if test="not(starts-with(@url,'http://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/'))">
+    <xsl:if test="not(starts-with(@url,'https://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/'))">
       <a href="{@url}"><xsl:value-of select="."/></a>
     </xsl:if>
   </xsl:template>
index 969e93d16922bc627a23c59869f0b19201fccd04..35f982ee23129f31740833151717b4a376dc1869 100644 (file)
   </xsl:template>
 
   <xsl:template match="ulink">
-    <xsl:if test="starts-with(@url,'http://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/')">
+    <xsl:if test="starts-with(@url,'https://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/')">
       <xsl:variable name="pageid">
         <xsl:call-template name="normalizepath">
-          <xsl:with-param name="title" select="str:decode-uri(str:tokenize(substring-after(@url, 'http://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/'),'#')[1])"/>
+          <xsl:with-param name="title" select="str:decode-uri(str:tokenize(substring-after(@url, 'https://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/'),'#')[1])"/>
         </xsl:call-template>
       </xsl:variable>
       <xsl:choose>
       <a href="#{$pageid}"><xsl:value-of select="."/></a>
       </xsl:when>
       <xsl:otherwise>
-      <a href="#{$pageid}_{str:tokenize(substring-after(@url, 'http://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/'),'#')[2]}"><xsl:value-of select="."/></a>
+      <a href="#{$pageid}_{str:tokenize(substring-after(@url, 'https://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/'),'#')[2]}"><xsl:value-of select="."/></a>
       </xsl:otherwise>
       </xsl:choose>
     </xsl:if>
-    <xsl:if test="not(starts-with(@url,'http://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/'))">
+    <xsl:if test="not(starts-with(@url,'https://wiki.gnome.org/Projects/Vala/Manual/Export/Projects/Vala/Manual/'))">
       <a href="{@url}"><xsl:value-of select="."/></a>
     </xsl:if>
   </xsl:template>