2017-01-26 09:03:53 -05:00
|
|
|
var _ = require('lodash');
|
|
|
|
|
|
|
|
module.exports = function createOverviewDump() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
$runAfter: ['processing-docs'],
|
|
|
|
$runBefore: ['docs-processed'],
|
|
|
|
$process: function(docs) {
|
|
|
|
var overviewDoc = {
|
|
|
|
id: 'overview-dump',
|
|
|
|
aliases: ['overview-dump'],
|
|
|
|
path: 'overview-dump',
|
|
|
|
outputPath: 'overview-dump.html',
|
|
|
|
modules: []
|
|
|
|
};
|
|
|
|
_.forEach(docs, function(doc) {
|
2018-06-22 11:58:29 -04:00
|
|
|
if (doc.docType === 'package') {
|
2017-01-26 09:03:53 -05:00
|
|
|
overviewDoc.modules.push(doc);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
docs.push(overviewDoc);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|