Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CLI command skips unrelated plugins #472

Merged

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
1 check passed
@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 - [email protected]

@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