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.
16 lines
360 B
16 lines
360 B
5 years ago
|
#!/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}"`);
|