Vitaly Puzrin
5 years ago
3 changed files with 23 additions and 12 deletions
@ -0,0 +1,15 @@ |
|||||
|
#!/usr/bin/env node
|
||||
|
|
||||
|
'use strict'; |
||||
|
|
||||
|
/* eslint-env es6 */ |
||||
|
|
||||
|
const shell = require('shelljs'); |
||||
|
|
||||
|
shell.rm('-rf', 'apidoc'); |
||||
|
|
||||
|
const head = shell.exec('git show-ref --hash HEAD').stdout.slice(0, 6); |
||||
|
|
||||
|
const link_format = `https://github.com/{package.repository}/blob/${head}/{file}#L{line}`; |
||||
|
|
||||
|
shell.exec(`node node_modules/.bin/ndoc --link-format "${link_format}"`); |
Loading…
Reference in new issue