Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed
https://markdown-it.github.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
333 B
12 lines
333 B
5 years ago
|
#!/usr/bin/env node
|
||
|
|
||
1 year ago
|
import shell from 'shelljs';
|
||
5 years ago
|
|
||
|
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}`;
|
||
|
|
||
1 year ago
|
shell.exec(`node node_modules/.bin/ndoc --alias mjs:js --link-format "${link_format}"`);
|