[vala/staging] doc: Fix links in the Manual
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] doc: Fix links in the Manual
- Date: Sat, 30 Jun 2018 10:38:30 +0000 (UTC)
commit 4dba116e49b08f4ba7c946228263c9ab91954bbd
Author: Alistair Thomas <astavale yahoo co uk>
Date: Thu Jun 28 17:16:04 2018 +0100
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.
doc/manual/common.xsl | 8 ++++----
doc/manual/print.xsl | 8 ++++----
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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]