1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-11 19:54:13 +01:00

Produce a tag map in dactyl.exportHelp.

This commit is contained in:
Kris Maglione
2010-12-20 04:42:35 -05:00
parent a0adb276d0
commit 8f7de7cc12
2 changed files with 4 additions and 2 deletions

View File

@@ -682,6 +682,8 @@ const Dactyl = Module("dactyl", {
.join("\n");
addDataEntry("help.css", data.replace(/chrome:[^ ")]+\//g, ""));
addDataEntry("tag-map.json", JSON.stringify(services["dactyl:"].HELP_TAGS));
let m, re = /(chrome:[^ ");]+\/)([^ ");]+)/g;
while ((m = re.exec(data)))
chrome[m[0]] = m[2];

View File

@@ -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 -->
<xsl:stylesheet version="1.0"
@@ -126,7 +127,6 @@
<xsl:copy-of select="$root/node()"/>
</dactyl:document>
</xsl:variable>
<xsl:variable name="root2" select="exsl:node-set($doc2)/dactyl:document"/>
<html dactyl:highlight="Help">
<head>