Hello community,
here is the log from the commit of package suse-xsl-stylesheets for
openSUSE:Factory checked in at 2019-09-11 10:23:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/suse-xsl-stylesheets (Old)
and /work/SRC/openSUSE:Factory/.suse-xsl-stylesheets.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "suse-xsl-stylesheets"
Wed Sep 11 10:23:48 2019 rev:45 rq:729010 version:2.0.14
Changes:
--------
---
/work/SRC/openSUSE:Factory/suse-xsl-stylesheets/suse-xsl-stylesheets.changes
2019-04-17 10:03:41.170451162 +0200
+++
/work/SRC/openSUSE:Factory/.suse-xsl-stylesheets.new.7948/suse-xsl-stylesheets.changes
2019-09-11 10:23:51.455484972 +0200
@@ -1,0 +2,10 @@
+Fri Aug 30 17:05:23 UTC 2019 - Stefan Knorr <[email protected]>
+
+Stable release of the SUSE XSL stylesheets 2.0.14:
+
+- HTML only:
+ - Improve text of Report Bug links
+ - Support inserting <link rel=canonical> via XSLT parameter
+ $canonical-url-base=https://some.example.org/doc
+
+-------------------------------------------------------------------
Old:
----
suse-xsl-stylesheets-2.0.13.tar.bz2
New:
----
suse-xsl-stylesheets-2.0.14.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ suse-xsl-stylesheets.spec ++++++
--- /var/tmp/diff_new_pack.mAnSBM/_old 2019-09-11 10:23:52.123484889 +0200
+++ /var/tmp/diff_new_pack.mAnSBM/_new 2019-09-11 10:23:52.127484888 +0200
@@ -17,7 +17,7 @@
Name: suse-xsl-stylesheets
-Version: 2.0.13
+Version: 2.0.14
Release: 0
###############################################################
++++++ suse-xsl-stylesheets-2.0.13.tar.bz2 ->
suse-xsl-stylesheets-2.0.14.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/suse-xsl-stylesheets/ChangeLog
new/suse-xsl-stylesheets/ChangeLog
--- old/suse-xsl-stylesheets/ChangeLog 2018-11-23 17:43:07.000000000 +0100
+++ new/suse-xsl-stylesheets/ChangeLog 2019-08-30 19:01:09.000000000 +0200
@@ -1,4 +1,17 @@
-------------------------------------------------------------------
+Fri Aug 29 13:37:00 UTC 2019 - [email protected]
+
+Stable release of the SUSE XSL stylesheets 2.0.14:
+
+Find issues in our GitHub tracker at
+https://github.com/openSUSE/suse-xsl/issues/NUMBER
+
+HTML only:
+* Improve text of Report Bug links
+* Support inserting <link rel=canonical> via XSLT parameter
+ $canonical-url-base=https://some.example.org/doc
+
+-------------------------------------------------------------------
Wed Nov 23 13:37:00 UTC 2018 - [email protected]
Stable release of the SUSE XSL stylesheets 2.0.13:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/suse-xsl-stylesheets/Makefile
new/suse-xsl-stylesheets/Makefile
--- old/suse-xsl-stylesheets/Makefile 2018-11-23 17:43:07.000000000 +0100
+++ new/suse-xsl-stylesheets/Makefile 2019-08-30 19:01:09.000000000 +0200
@@ -12,7 +12,7 @@
SHELL := /bin/bash
PACKAGE := suse-xsl-stylesheets
# HINT: Also raise version number in packaging/suse-xsl-stylesheets.spec
-VERSION := 2.0.13
+VERSION := 2.0.14
CDIR := $(shell pwd)
DIST_EXCLUDES := packaging/exclude-files_for_susexsl_package.txt
SUSE_XML_PATH := $(PREFIX)/xml/suse
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/suse-xsl-stylesheets/README.adoc
new/suse-xsl-stylesheets/README.adoc
--- old/suse-xsl-stylesheets/README.adoc 2018-11-23 17:43:07.000000000
+0100
+++ new/suse-xsl-stylesheets/README.adoc 2019-08-30 19:01:09.000000000
+0200
@@ -1,4 +1,4 @@
-SUSE XSL Stylesheets 2.0.13
+SUSE XSL Stylesheets 2.0.14
============================
:numbered:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/suse-xsl-stylesheets/daps2013/static/js/script.js
new/suse-xsl-stylesheets/daps2013/static/js/script.js
--- old/suse-xsl-stylesheets/daps2013/static/js/script.js 2018-11-23
17:43:07.000000000 +0100
+++ new/suse-xsl-stylesheets/daps2013/static/js/script.js 2019-08-30
19:01:09.000000000 +0200
@@ -1,8 +1,40 @@
+/*
+JavaScript for SUSE documentation
+
+Authors:
+ Stefan Knorr, Thomas Schraitle, Adam Spiers
+
+License: GPL 2+
+
+(c) 2012-2019 SUSE LLC
+*/
+
var active = false;
var deactivatePosition = -1;
-$(function() {
+var trackerUrl = $( 'meta[name="tracker-url"]' ).attr('content');
+var trackerType = $( 'meta[name="tracker-type"]' ).attr('content');
+
+// we handle Github (= gh) and bugzilla.suse.com (= bsc), default to bsc
+if ((trackerType != 'gh') && (trackerType != 'bsc')) {
+ trackerType = 'bsc';
+}
+
+// For Bugzilla
+var bscComponent = $( 'meta[name="tracker-bsc-component"]' ).attr('content');
+if (!bscComponent) {
+ bscComponent = 'Documentation'; // default component
+}
+var bscProduct = $( 'meta[name="tracker-bsc-product"]' ).attr('content');
+var bscAssignee = $( 'meta[name="tracker-bsc-assignee"]' ).attr('content');
+var bscVersion = $( 'meta[name="tracker-bsc-version"]' ).attr('content');
+// For GitHub
+var ghAssignee = $( 'meta[name="tracker-gh-assignee"]' ).attr('content');
+var ghLabels = $( 'meta[name="tracker-gh-labels"]' ).attr('content');
+var ghMilestone = $( 'meta[name="tracker-gh-milestone"]' ).attr('content');
+
+$(function() {
/* http://css-tricks.com/snippets/jquery/smooth-scrolling/ */
var speed = 400;
@@ -103,9 +135,75 @@
$('#_toolbar').addClass('only-nav');
}
+ tracker();
});
+function tracker() {
+ // do not create links if there is no URL
+ if ( typeof(trackerUrl) == 'string') {
+ $('.permalink:not([href^=#idm])').each(function () {
+ var permalink = this.href;
+ var sectionNumber = "";
+ var sectionName = "";
+ var url = "";
+ if ( $(this).prevAll('span.number')[0] ) {
+ sectionNumber = $(this).prevAll('span.number')[0].innerHTML;
+ }
+ if ( $(this).prevAll('span.number')[0] ) {
+ sectionName = $(this).prevAll('span.name')[0].innerHTML;
+ }
+
+ if (trackerType == 'bsc') {
+ url = bugzillaUrl(sectionNumber, sectionName, permalink);
+ }
+ else {
+ url = githubUrl(sectionNumber, sectionName, permalink);
+ }
+
+ $(this).before("<a class=\"report-bug\" target=\"_blank\" href=\""
+ + url
+ + "\" title=\"Report a bug against this section of the
documentation\">Report Documentation Bug</a> ");
+ return true;
+ });
+ }
+ else {
+ return false;
+ }
+}
+
+function githubUrl(sectionNumber, sectionName, permalink) {
+ var body = sectionNumber + " " + sectionName + "\n\n" + permalink;
+ var url = trackerUrl
+ + "?title=" + encodeURIComponent('[doc] ' + sectionNumber + ' ' +
sectionName)
+ + "&body=" + encodeURIComponent(body);
+ if (ghAssignee) {
+ url += "&assignee=" + encodeURIComponent(ghAssignee);
+ }
+ if (ghMilestone) {
+ url += "&milestone=" + encodeURIComponent(ghMilestone);
+ }
+ if (ghLabels) {
+ url += "&labels=" + encodeURIComponent(ghLabels);
+ }
+ return url;
+}
+
+function bugzillaUrl(sectionNumber, sectionName, permalink) {
+ var body = sectionNumber + " " + sectionName + "\n\n" + permalink;
+ var url = trackerUrl + "?&product=" + encodeURIComponent(bscProduct)
+ + '&component=' + encodeURIComponent(bscComponent)
+ + "&short_desc=" + encodeURIComponent('[doc] ' + sectionNumber + ' ' +
sectionName)
+ + "&comment=" + encodeURIComponent(body);
+ if (bscAssignee) {
+ url += "&assigned_to=" + encodeURIComponent(bscAssignee);
+ }
+ if (bscVersion) {
+ url += "&version=" + encodeURIComponent(bscVersion);
+ }
+ return url;
+}
+
function activate( elm ) {
var element = elm;
if (element == '_toc-area' || element == '_find-area' ||
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/suse-xsl-stylesheets/packaging/suse-xsl-stylesheets.spec
new/suse-xsl-stylesheets/packaging/suse-xsl-stylesheets.spec
--- old/suse-xsl-stylesheets/packaging/suse-xsl-stylesheets.spec
2018-11-23 17:43:07.000000000 +0100
+++ new/suse-xsl-stylesheets/packaging/suse-xsl-stylesheets.spec
2019-08-30 19:01:09.000000000 +0200
@@ -17,7 +17,7 @@
Name: suse-xsl-stylesheets
-Version: 2.0.13
+Version: 2.0.14
Release: 0
###############################################################
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/suse-xsl-stylesheets/suse2013/static/js/script.js
new/suse-xsl-stylesheets/suse2013/static/js/script.js
--- old/suse-xsl-stylesheets/suse2013/static/js/script.js 2018-11-23
17:43:07.000000000 +0100
+++ new/suse-xsl-stylesheets/suse2013/static/js/script.js 2019-08-30
19:01:09.000000000 +0200
@@ -6,7 +6,7 @@
License: GPL 2+
-(c) 2012-2016 SUSE LLC
+(c) 2012-2019 SUSE LLC
*/
var active = false;
@@ -163,7 +163,7 @@
$(this).before("<a class=\"report-bug\" target=\"_blank\" href=\""
+ url
- + "\" title=\"Report a bug against this section\">Report Bug</a> ");
+ + "\" title=\"Report a bug against this section of the
documentation\">Report Documentation Bug</a> ");
return true;
});
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/suse-xsl-stylesheets/suse2013/xhtml/docbook.xsl
new/suse-xsl-stylesheets/suse2013/xhtml/docbook.xsl
--- old/suse-xsl-stylesheets/suse2013/xhtml/docbook.xsl 2018-11-23
17:43:07.000000000 +0100
+++ new/suse-xsl-stylesheets/suse2013/xhtml/docbook.xsl 2019-08-30
19:01:09.000000000 +0200
@@ -666,6 +666,29 @@
<xsl:template name="user.head.content">
<xsl:param name="node" select="."/>
+ <xsl:text> </xsl:text>
+
+ <xsl:if test="$canonical-url-base != ''">
+ <xsl:variable name="ischunk">
+ <xsl:call-template name="chunk"/>
+ </xsl:variable>
+ <xsl:variable name="filename">
+ <xsl:choose>
+ <xsl:when test="$ischunk = 1">
+ <xsl:apply-templates mode="chunk-filename" select="."/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="concat($root.filename,$html.ext)"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="canonical.url">
+ <xsl:value-of select="concat($canonical-url-base,'/',$filename)"/>
+ </xsl:variable>
+ <link rel="canonical" href="{$canonical.url}"/>
+ </xsl:if>
+ <xsl:text> </xsl:text>
+
<xsl:if test="$build.for.web = 1">
<script type="text/javascript">
<xsl:text disable-output-escaping="yes">
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/suse-xsl-stylesheets/suse2013/xhtml/param.xsl
new/suse-xsl-stylesheets/suse2013/xhtml/param.xsl
--- old/suse-xsl-stylesheets/suse2013/xhtml/param.xsl 2018-11-23
17:43:07.000000000 +0100
+++ new/suse-xsl-stylesheets/suse2013/xhtml/param.xsl 2019-08-30
19:01:09.000000000 +0200
@@ -25,7 +25,7 @@
<!-- Add a link to a product/company homepage to the logo -->
<xsl:param name="homepage" select="''"/>
<!-- Override this parameter from the command line by adding
- ––stringparam="homepage=http://www.example.com"
+ ––stringparam="homepage=https://www.example.com"
(don't copy from here, for technical reasons I can't use hyphens and
must use dashes). -->
@@ -33,11 +33,18 @@
<xsl:param name="overview-page" select="''"/>
<xsl:param name="overview-page-title" select="''"/>
<!-- Override with
- ––stringparam="overview-page=http://www.example.com"
+ ––stringparam="overview-page=https://www.example.com"
––stringparam="overview-page-title='Back to Overview'"
(don't copy from here, for technical reasons I can't use hyphens and
must use dashes). -->
+ <!-- Base URL for <link rel=canonical> tags. No tags included if unset. -->
+ <xsl:param name="canonical-url-base" select="''"/>
+ <!-- Override with:
+ ––stringparam="canonical-url-base=https://www.example.com"
+ (don't copy from here, for technical reasons I can't use hyphens and
+ must use dashes). -->
+
<!-- Toggle the SUSE footer and SUSE e-mail button. Set to 0 if the
documentation won't be available at a suse.com address.-->
<xsl:param name="suse.content" select="1"/>