mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-28 04:35:45 +01:00
Add machinery to allow app-specific help files.
--HG-- branch : xslt
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<xsl:output method="xml"/>
|
||||
|
||||
<xsl:variable name="local" select="concat('chrome://&liberator.name;/locale/', /liberator:document/@name, '.xml')"/>
|
||||
<xsl:variable name="localdoc" select="document($local)/liberator:document"/>
|
||||
<xsl:variable name="localdoc" select="document($local)/liberator:overlay"/>
|
||||
|
||||
<xsl:template match="liberator:document">
|
||||
<html:html liberator:highlight="Help">
|
||||
@@ -156,6 +156,12 @@
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="liberator:document/liberator:tags|liberator:document/liberator:tag">
|
||||
<xsl:call-template name="splice-locals">
|
||||
<xsl:with-param name="tag" select="substring-before(concat(., ' '), ' ')"/>
|
||||
<xsl:with-param name="elem" select="self::node()"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
<xsl:template match="liberator:document/*[liberator:tags]">
|
||||
<xsl:call-template name="splice-locals">
|
||||
<xsl:with-param name="tag" select="substring-before(concat(liberator:tags, ' '), ' ')"/>
|
||||
|
||||
@@ -1724,6 +1724,7 @@ const liberator = (function () //{{{
|
||||
let start = Date.now();
|
||||
liberator.log("Initializing liberator object...", 0);
|
||||
|
||||
services.get("liberator:").helpNamespaces = [config.name.toLowerCase(), "liberator"];
|
||||
services.get("liberator:").helpFiles = config.helpFiles.map(function (f) f.replace(/\..*/, ""));
|
||||
|
||||
config.features.push(getPlatformFeature());
|
||||
|
||||
Reference in New Issue
Block a user