mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-21 11:25:45 +01:00
Produce a tag map in dactyl.exportHelp.
This commit is contained in:
@@ -682,6 +682,8 @@ const Dactyl = Module("dactyl", {
|
|||||||
.join("\n");
|
.join("\n");
|
||||||
addDataEntry("help.css", data.replace(/chrome:[^ ")]+\//g, ""));
|
addDataEntry("help.css", data.replace(/chrome:[^ ")]+\//g, ""));
|
||||||
|
|
||||||
|
addDataEntry("tag-map.json", JSON.stringify(services["dactyl:"].HELP_TAGS));
|
||||||
|
|
||||||
let m, re = /(chrome:[^ ");]+\/)([^ ");]+)/g;
|
let m, re = /(chrome:[^ ");]+\/)([^ ");]+)/g;
|
||||||
while ((m = re.exec(data)))
|
while ((m = re.exec(data)))
|
||||||
chrome[m[0]] = m[2];
|
chrome[m[0]] = m[2];
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<!DOCTYPE document SYSTEM "chrome://dactyl/content/dactyl.dtd">
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE stylesheet SYSTEM "chrome://dactyl/content/dactyl.dtd">
|
||||||
|
|
||||||
<!-- Header {{{1 -->
|
<!-- Header {{{1 -->
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
@@ -126,7 +127,6 @@
|
|||||||
<xsl:copy-of select="$root/node()"/>
|
<xsl:copy-of select="$root/node()"/>
|
||||||
</dactyl:document>
|
</dactyl:document>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
<xsl:variable name="root2" select="exsl:node-set($doc2)/dactyl:document"/>
|
|
||||||
|
|
||||||
<html dactyl:highlight="Help">
|
<html dactyl:highlight="Help">
|
||||||
<head>
|
<head>
|
||||||
|
|||||||
Reference in New Issue
Block a user