summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlistair Thomas <astavale@yahoo.co.uk>2018-06-28 17:16:04 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2018-06-30 12:37:31 +0200
commit4dba116e49b08f4ba7c946228263c9ab91954bbd (patch)
tree17a0298923c90cffea3772fbe10f437ccd8c7329 /doc
parent66b552be156bf2d263b618ed455724b029aae008 (diff)
downloadvala-4dba116e49b08f4ba7c946228263c9ab91954bbd.tar.gz
doc: Fix links in the Manual
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/common.xsl8
-rw-r--r--doc/manual/print.xsl8
2 files changed, 8 insertions, 8 deletions
diff --git a/doc/manual/common.xsl b/doc/manual/common.xsl
index 2a802b52d..6cf54e50e 100644
--- a/doc/manual/common.xsl
+++ b/doc/manual/common.xsl
@@ -184,15 +184,15 @@
</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>
diff --git a/doc/manual/print.xsl b/doc/manual/print.xsl
index 969e93d16..35f982ee2 100644
--- a/doc/manual/print.xsl
+++ b/doc/manual/print.xsl
@@ -114,10 +114,10 @@
</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>
@@ -125,11 +125,11 @@
<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>