chore(doc-gen): track modules in a dgeni service
This commit is contained in:

committed by
Misko Hevery

parent
a16954d3a5
commit
ede7690be3
@ -7,7 +7,7 @@ var path = require('canonical-path');
|
||||
* This file reader will create a simple doc for each
|
||||
* file including a code AST of the AtScript in the file.
|
||||
*/
|
||||
module.exports = function atScriptFileReader(log, atParser) {
|
||||
module.exports = function atScriptFileReader(log, atParser, modules) {
|
||||
var reader = {
|
||||
name: 'atScriptFileReader',
|
||||
defaultPattern: /\.js$/,
|
||||
@ -18,6 +18,8 @@ module.exports = function atScriptFileReader(log, atParser) {
|
||||
moduleDoc.id = moduleDoc.moduleTree.moduleName;
|
||||
moduleDoc.aliases = [moduleDoc.id];
|
||||
|
||||
modules[moduleDoc.id] = moduleDoc;
|
||||
|
||||
// Readers return a collection of docs read from the file
|
||||
// but in this read there is only one document (module) to return
|
||||
return [moduleDoc];
|
||||
|
Reference in New Issue
Block a user