2017-01-26 09:03:53 -05:00
|
|
|
module.exports = function createOverviewDump() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
$runAfter: ['processing-docs'],
|
|
|
|
$runBefore: ['docs-processed'],
|
|
|
|
$process: function(docs) {
|
2020-05-15 16:59:06 -04:00
|
|
|
const overviewDoc = {
|
2017-01-26 09:03:53 -05:00
|
|
|
id: 'overview-dump',
|
|
|
|
aliases: ['overview-dump'],
|
|
|
|
path: 'overview-dump',
|
|
|
|
outputPath: 'overview-dump.html',
|
|
|
|
modules: []
|
|
|
|
};
|
2020-05-15 16:59:06 -04:00
|
|
|
|
|
|
|
docs.forEach(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);
|
|
|
|
}
|
|
|
|
});
|
2020-05-15 16:59:06 -04:00
|
|
|
|
2017-01-26 09:03:53 -05:00
|
|
|
docs.push(overviewDoc);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|