generate-docs-by-github-issue

1.0.7 • Public • Published

How To Use

const path = require('path');
const generate = require('generate-docs-by-github-issue');

generate({
    targetDir: path.join(__dirname, 'docs'),
    username: 'xxx',
    repo: 'xxx',
    beforeSort(issues) {
        issues.forEach(issue => {
            issue.title = issue.title.replace(/\//g, '-');
        });
    }
    afterSort(issues) {
        issues.forEach(issue => {
            console.log(issue.title);
        })   
    }
});

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i generate-docs-by-github-issue

Weekly Downloads

1

Version

1.0.7

License

ISC

Unpacked Size

6.26 kB

Total Files

6

Last publish

Collaborators

  • antfoot