-
Notifications
You must be signed in to change notification settings - Fork 487
Closed
Description
I need to document vuejs component, and I found a solution below:
documentation/lib/input/dependency.js
var processed = [];
expandDirectories(indexes, filterer).forEach(function (index) {
// support { source, file } input
if (typeof index === 'object' && index.source) {
processed.push(index);
return;
}
md.write(path.resolve(index));
});
md.end();
md.once('error', function (error) {
return callback(error);
});
md.pipe(concat(function (inputs) {
callback(null, inputs.map(function (input) {
// un-transform babelify transformed source
input.source = fs.readFileSync(input.file, 'utf8');
return input;
}).concat(processed));
}));
Metadata
Metadata
Assignees
Labels
No labels