From 8f7de7cc1209dec34621f80a482292f573f3ffee Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 20 Dec 2010 04:42:35 -0500 Subject: [PATCH] Produce a tag map in dactyl.exportHelp. --- common/content/dactyl.js | 2 ++ common/content/help.xsl | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 34c9627f..a60fd5fc 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -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]; diff --git a/common/content/help.xsl b/common/content/help.xsl index 485c5b01..d1c252e2 100644 --- a/common/content/help.xsl +++ b/common/content/help.xsl @@ -1,4 +1,5 @@ - + + -