mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 02:03:04 +01:00
Updated the ref-qa-checks.xml chapter so that each QA warning
or error message would generate a permalink that is suitable
for searching from the poky codebase. To implement this, I
had to embed an id marker in the <para> tag that precedes each
<code></code> tag pair. The 'xxx' string of the id is the leaf
portion of the permalink.
This creates the following tag construct:
<para id='xxx'>
<code>
some-warning-or-error-message
</code>
</para>
The permalink is generated with the help of the new
qa-code-permalinks.xsl file, which triggers on the
<para><code></code></para> construct. This new file resides
in documentation/template.
Right now, this construct
is unique to the ref-manual's chapter on the QA error and warnings
chapter only. However, if for some reason that construct is
used in any other part of the ref-manual, a generically numbered
permalink would also be generated.
The ref-manual-customization.xsl file was also altered to include
the new documentation/template/qa-code-permalinks.xsl file.
Reported-by: Paul Eggleton <paul.eggleton@linux.intel.com>
(From yocto-docs rev: aec27a9f8337575d31bfe0066563da99259046e0)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
22 lines
1.0 KiB
XML
22 lines
1.0 KiB
XML
<?xml version='1.0'?>
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
|
|
|
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl" />
|
|
|
|
<xsl:include href="../template/permalinks.xsl"/>
|
|
<xsl:include href="../template/section.title.xsl"/>
|
|
<xsl:include href="../template/component.title.xsl"/>
|
|
<xsl:include href="../template/division.title.xsl"/>
|
|
<xsl:include href="../template/formal.object.heading.xsl"/>
|
|
<xsl:include href="../template/gloss-permalinks.xsl"/>
|
|
<xsl:include href="../template/qa-code-permalinks.xsl"/>
|
|
|
|
<xsl:param name="html.stylesheet" select="'ref-style.css'" />
|
|
<xsl:param name="chapter.autolabel" select="1" />
|
|
<xsl:param name="appendix.autolabel" select="A" />
|
|
<xsl:param name="section.autolabel" select="1" />
|
|
<xsl:param name="section.label.includes.component.label" select="1" />
|
|
<xsl:param name="generate.id.attributes" select="1" />
|
|
|
|
</xsl:stylesheet>
|