Skip to content

fix: CLI command skips unrelated plugins#472

Merged
tgreyuk merged 1 commit intotypedoc2md:masterfrom
spalladino:fix/cli-command-with-multiple-plugins
Sep 25, 2023
Merged

fix: CLI command skips unrelated plugins#472
tgreyuk merged 1 commit intotypedoc2md:masterfrom
spalladino:fix/cli-command-with-multiple-plugins

Conversation

@spalladino
Copy link

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.

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.
@tgreyuk tgreyuk merged commit 39b60ee into typedoc2md:master Sep 25, 2023
@spalladino
Copy link
Author

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
Copy link
Member

tgreyuk commented Sep 26, 2023

Sure - docusaurus-plugin-typedoc@0.20.2

@spalladino
Copy link
Author

Awesome, thanks man!!

spalladino added a commit to AztecProtocol/aztec-packages that referenced this pull request Sep 27, 2023
We were using a fork of `docusaurus-plugin-typedoc` due to a bugfix. Now
that [the fix was merged
upstream](typedoc2md/typedoc-plugin-markdown#472),
we can go back to the main version of the package.
AztecBot pushed a commit to AztecProtocol/docs that referenced this pull request Sep 28, 2023
We were using a fork of `docusaurus-plugin-typedoc` due to a bugfix. Now
that [the fix was merged
upstream](typedoc2md/typedoc-plugin-markdown#472),
we can go back to the main version of the package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants