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.
11 lines
328 B
11 lines
328 B
#!/usr/bin/env node
|
|
|
|
import shell from '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 --alias mjs:js --link-format "${link_format}"`)
|
|
|