OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
2023-06-11 19:17:13 +00:00
parent 5a5714ff49
commit 3f7aec7f5b
1575 changed files with 4 additions and 28509 deletions

View File

@ -1,33 +0,0 @@
/*\
module-type: wikimethod
Introduces some utility methods used by Relink.
\*/
var utils = require("./utils.js");
exports.getTiddlerRelinkReferences = function(title) {
return utils.getIndexer(this).lookup(title);
};
exports.getTiddlerRelinkBackreferences = function(title) {
return utils.getIndexer(this).reverseLookup(title);
};
exports.getRelinkableTitles = function() {
var toUpdate = "$:/config/flibbles/relink/to-update";
var wiki = this;
return this.getCacheForTiddler(toUpdate, "relink-toUpdate", function() {
var tiddler = wiki.getTiddler(toUpdate);
if (tiddler) {
return wiki.compileFilter(tiddler.fields.text);
} else {
return wiki.allTitles;
}
})();
};
exports.getRelinkOrphans = function() {
return utils.getIndexer(this).orphans();
};