UNPKG

angular-material-npfixed

Version:

The Angular Material project is an implementation of Material Design in Angular.js. This project provides a set of reusable, well-tested, and accessible Material Design UI components. Angular Material is supported internally at Google by the Angular.js, M

34 lines (31 loc) 840 B
var _ = require('lodash'); module.exports = function contentProcessor(templateFinder) { return { $runAfter: ['paths-computed'], $runBefore: ['rendering-docs'], $process: function(docs) { var contentDocs = _(docs) .filter(function(doc) { return doc.docType === 'content'; }) .groupBy('area') .mapValues(function(areaDocs) { return _.map(areaDocs, function(areaDoc) { return { name: areaDoc.name, outputPath: areaDoc.outputPath, url: '/' + areaDoc.path, label: areaDoc.label || areaDoc.name }; }); }). value(); docs.push({ name: 'PAGES', template: 'constant-data.template.js', outputPath: 'js/content-data.js', items: contentDocs }); } }; };