chore(doc-gen/angular.io): sort exports alphabetically

This commit is contained in:
Peter Bacon Darwin
2015-09-16 14:41:51 +01:00
committed by Naomi Black
parent 457b689bf0
commit 608f35b4a7
2 changed files with 36 additions and 2 deletions

View File

@ -48,13 +48,18 @@ module.exports = function addJadeDataDocsProcessor() {
}];
// GET DATA FOR EACH PAGE (CLASS, VARS, FUNCTIONS)
var modulePageInfo = _.map(doc.exports, function(exportDoc) {
var modulePageInfo = _(doc.exports)
.map(function(exportDoc) {
return {
name: exportDoc.name + '-' + exportDoc.docType,
title: exportDoc.name,
varType: exportDoc.symbolTypeName && titleCase(exportDoc.symbolTypeName)
};
});
})
.sortBy('name')
.value();
//COMBINE PAGE DATA
var allPageData = indexPageInfo.concat(modulePageInfo);