bit-docs-generate-searchmap
Version:
Generates a searchmap from the docMap
14 lines (9 loc) • 345 B
JavaScript
module.exports = function(docObject, configuration){
var name = typeof docObject == "string" ? docObject : docObject.dest || docObject.name;
return configuration && name === configuration.parent ?
'index.html' :
name.replace(/ /g, "_")
.replace(/./g, ".")
.replace(/>/g, "_gt_")
.replace(/\*/g, "_star_") + '.html';
};