This plugin adds README.adoc support to typedoc.
To use this plugin specify the readme
option for typedoc.
{
"typedocOptions": {
"entryPoints": ["src/index.ts"],
"out": "docs",
"readme": "README.adoc",
"excludePrivate": true,
"plugin": [ "@ink-feather-org/typedoc-plugin-asciidoctor" ]
}
}
Typedoc runs the output of asciidoc through a markdown renderer. Unfortunately there is nothing a plugin can do about that. This sometimes causes rendering issues.
Take a 'README.adoc' and render it to 'html' before sending it off to typedoc which then passes it to the output generator.
This plugin does NOT enable you to use ascii-doc in the javadoc comments ONLY in the README. It also does NOT generate '.adoc' output. It only integrates an existing 'README.adoc' into the typedoc output.
Steps:
-
Clone the repo
-
cd into example
-
pnpm i
-
pnpm run docs
-
Verify that the typedoc generated correctly
Only try to integrate my plugin into your project after you have verified that the example works.
Pull requests that add ascii-doc output functionality are welcome (Issue).