[ADF-2127] Started introducing new doc tools (#2809)

This commit is contained in:
Andy Stark
2018-01-09 10:36:24 +00:00
committed by Eugenio Romano
parent 1d0670a826
commit da9d0e0ec2
27 changed files with 1599 additions and 223 deletions

View File

@@ -0,0 +1,19 @@
module.exports = {
"ngNameToDisplayName": ngNameToDisplayName,
"dekebabifyName": dekebabifyName,
"classTypes": ["component", "directive", "model", "pipe", "service", "widget"]
}
function ngNameToDisplayName(ngName) {
var mainSections = ngName.split(".");
mainSections[0] = dekebabifyName(mainSections[0]);
return mainSections.join(" ");
}
function dekebabifyName(name) {
var result = name.replace(/-/g, " ");
result = result.substr(0, 1).toUpperCase() + result.substr(1);
return result;
}