Skip to content

Need support for document vue script #596

@xiaoping0x

Description

@xiaoping0x

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions