mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-16 04:03:30 +02:00
Add missing filename.xml help file tags to the tags list.
These are the only tags guaranteed to be present for each file.
This commit is contained in:
@@ -481,12 +481,13 @@ const Dactyl = Module("dactyl", {
|
|||||||
// Scrape the list of help files from all.xml
|
// Scrape the list of help files from all.xml
|
||||||
// Manually process main and overlay files, since XSLTProcessor and
|
// Manually process main and overlay files, since XSLTProcessor and
|
||||||
// XMLHttpRequest don't allow access to chrome documents.
|
// XMLHttpRequest don't allow access to chrome documents.
|
||||||
tagMap.all = "all";
|
tagMap["all"] = tagMap["all.xml"] = "all";
|
||||||
let files = findHelpFile("all").map(function (doc)
|
let files = findHelpFile("all").map(function (doc)
|
||||||
[f.value for (f in util.evaluateXPath("//dactyl:include/@href", doc))]);
|
[f.value for (f in util.evaluateXPath("//dactyl:include/@href", doc))]);
|
||||||
|
|
||||||
// Scrape the tags from the rest of the help files.
|
// Scrape the tags from the rest of the help files.
|
||||||
array.flatten(files).forEach(function (file) {
|
array.flatten(files).forEach(function (file) {
|
||||||
|
tagMap[file + ".xml"] = file;
|
||||||
findHelpFile(file).forEach(function (doc) {
|
findHelpFile(file).forEach(function (doc) {
|
||||||
addTags(file, doc);
|
addTags(file, doc);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user