typedoc2md / typedoc-plugin-markdown

A plugin for TypeDoc that enables TypeScript API documentation to be generated in Markdown.
https://typedoc-plugin-markdown.org
MIT License
697 stars 173 forks source link

fix: CLI command skips unrelated plugins #472

Closed spalladino closed 10 months ago

spalladino commented 11 months ago

The generate-typedoc CLI command would run typedoc on every plugin instance defined on the site, not just for the current one. This would cause generation to fail with errors "Tried to set an option that was not declared", since the config for other plugins would not pass the validation for this plugin.

This fix checks that the plugin name matches the current one before running generateTypedoc on it.

spalladino commented 10 months ago

Thank you @tgreyuk! Any chance we can get a release with this fix, so we can drop the fork and go back using the upstream version of the package..?

tgreyuk commented 10 months ago

Sure - docusaurus-plugin-typedoc@0.20.2

spalladino commented 10 months ago

Awesome, thanks man!!