mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-12 11:05:47 +01: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
|
||||
// Manually process main and overlay files, since XSLTProcessor and
|
||||
// XMLHttpRequest don't allow access to chrome documents.
|
||||
tagMap.all = "all";
|
||||
tagMap["all"] = tagMap["all.xml"] = "all";
|
||||
let files = findHelpFile("all").map(function (doc)
|
||||
[f.value for (f in util.evaluateXPath("//dactyl:include/@href", doc))]);
|
||||
|
||||
// Scrape the tags from the rest of the help files.
|
||||
array.flatten(files).forEach(function (file) {
|
||||
tagMap[file + ".xml"] = file;
|
||||
findHelpFile(file).forEach(function (doc) {
|
||||
addTags(file, doc);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user