2015-03-31 17:12:34 -04:00
|
|
|
var _ = require('lodash');
|
|
|
|
|
|
|
|
module.exports = function createOverviewDump() {
|
|
|
|
|
|
|
|
return {
|
2015-04-10 06:45:02 -04:00
|
|
|
$runAfter: ['captureModuleExports', 'captureClassMembers'],
|
2015-03-31 17:12:34 -04:00
|
|
|
$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) {
|
|
|
|
if ( doc.docType === 'module' ) {
|
|
|
|
overviewDoc.modules.push(doc);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
docs.push(overviewDoc);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|