generate-md.mjs entry point. Both plugins follow the standard TypeDoc plugin interface — each module exports a load(app) function that TypeDoc calls during initialisation.
Processor plugin
Converts accessors to properties, merges
export= namespaces, and writes a type-map.json file to the output directory.Custom theme plugin
Defines the
doc-kit Markdown theme with custom helpers and partials for stability annotations, typed lists, and member titles.Plugin interface
Every plugin module must export a namedload function. TypeDoc calls it once with the running application instance, giving the plugin access to the converter, renderer, and options.
Registration in generate-md.mjs
Plugins are declared in the plugin array passed to Application.bootstrapWithPlugins. The order matters: typedoc-plugin-markdown must come first because the processor and theme plugins depend on the types and events it adds.
The
theme: "doc-kit" option activates the custom theme defined by the theme plugin. Without it, TypeDoc falls back to the default Markdown theme even if the theme plugin is loaded.