6 changed files with 209 additions and 924 deletions
@ -1,25 +0,0 @@ |
|||
# |
|||
# Common nodeca config |
|||
################################################################################ |
|||
|
|||
--index "./README.md" |
|||
--package "./package.json" |
|||
--gh-ribbon "https://github.com/{package.repository}" |
|||
--output "apidoc" |
|||
--render "html" |
|||
--link-format "https://github.com/{package.repository}/blob/master/{file}#L{line}" |
|||
--broken-links "show" |
|||
|
|||
|
|||
# |
|||
# Paths with sources |
|||
################################################################################ |
|||
|
|||
lib |
|||
|
|||
|
|||
# |
|||
# Project specific configuration |
|||
################################################################################ |
|||
|
|||
--show-all |
|||
File diff suppressed because it is too large
@ -1,4 +1,6 @@ |
|||
import { callable } from './common/utils.ts' |
|||
import MarkdownIt from './markdownit.ts' |
|||
import MarkdownItClass from './markdownit.ts' |
|||
|
|||
export default callable(MarkdownIt) |
|||
const MarkdownIt = callable(MarkdownItClass) |
|||
|
|||
export default MarkdownIt |
|||
|
|||
@ -1,22 +0,0 @@ |
|||
#!/usr/bin/env node
|
|||
|
|||
import { rmSync } from 'node:fs' |
|||
import { execFileSync, spawnSync } from 'node:child_process' |
|||
|
|||
rmSync('apidoc', { recursive: true, force: true }) |
|||
|
|||
const head = execFileSync('git', ['show-ref', '--hash', 'HEAD'], { encoding: 'utf8' }).slice(0, 6) |
|||
|
|||
const link_format = `https://github.com/{package.repository}/blob/${head}/{file}#L{line}` |
|||
|
|||
const result = spawnSync(process.execPath, [ |
|||
'node_modules/.bin/ndoc', |
|||
'--alias', |
|||
'mjs:js', |
|||
'--link-format', |
|||
link_format |
|||
], { stdio: 'inherit' }) |
|||
|
|||
if (result.error) throw result.error |
|||
|
|||
process.exitCode = result.status |
|||
@ -0,0 +1,19 @@ |
|||
{ |
|||
"$schema": "https://typedoc.org/schema.json", |
|||
"entryPoints": ["src/index.ts"], |
|||
"plugin": ["typedoc-plugin-missing-exports"], |
|||
"out": "apidoc", |
|||
"includeVersion": true, |
|||
"markdownLinkExternal": true, |
|||
"sourceLinkExternal": true, |
|||
"sourceLinkTemplate": "https://github.com/markdown-it/markdown-it/blob/{gitRevision:short}/{path}#L{line}", |
|||
"navigationLinks": { |
|||
"GitHub": "https://github.com/markdown-it/markdown-it" |
|||
}, |
|||
"defaultCategory": "markdown-it", |
|||
"categoryOrder": ["markdown-it", "*"], |
|||
"sort": ["source-order"], |
|||
"navigation": { |
|||
"includeCategories": true |
|||
} |
|||
} |
|||
Loading…
Reference in new issue