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

[Javadoc] Ignore Kotlin samples #3473

Merged

Conversation

vmishenev
Copy link
Member

This is a laconic solution to avoid an error message (#3466) for Kotlin samples in unstable Javadoc format. There are 2 problems.

  1. Javadoc's content model does not contain samples links at all. It should contain something like samplesSectionContent in the base plugin.
  2. Sample Transformer from the base plugin knows nothing about Javadoc's content model. see DefaultSamplesTransformer.dfs, e.g. JavadocContentGroup is unavailable from the base plugin.

@vmishenev vmishenev force-pushed the vmishenev/3466-javadoc-fix-error-message-for-kotlin-samples branch from 569c393 to 1860928 Compare January 25, 2024 21:21
This is a laconic solution to avoid an error message (#3466) for Kotlin samples in unstable Javadoc format. There are 2 problems.
1. Javadoc's content model does not contain samples links at all. It should contain something like `samplesSectionContent` in the base plugin.
2. Sample Transformer from the base plugin knows nothing about Javadoc's content model. see  `DefaultSamplesTransformer.dfs`, e.g. `JavadocContentGroup` is unavailable from the base plugin.
@vmishenev vmishenev force-pushed the vmishenev/3466-javadoc-fix-error-message-for-kotlin-samples branch from 1860928 to 547d92c Compare January 25, 2024 21:30
Copy link
Collaborator

@whyoleg whyoleg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vmishenev vmishenev merged commit e502b2c into master Jan 30, 2024
9 of 12 checks passed
@vmishenev vmishenev deleted the vmishenev/3466-javadoc-fix-error-message-for-kotlin-samples branch January 30, 2024 19:46
IgnatBeresnev pushed a commit that referenced this pull request Jan 31, 2024
* [Javadoc] Ignore Kotlin samples

This is a laconic solution to avoid an error message (#3466) for Kotlin samples in unstable Javadoc format. There are 2 problems.
1. Javadoc's content model does not contain samples links at all. It should contain something like `samplesSectionContent` in the base plugin.
2. Sample Transformer from the base plugin knows nothing about Javadoc's content model. see  `DefaultSamplesTransformer.dfs`, e.g. `JavadocContentGroup` is unavailable from the base plugin.

(cherry picked from commit e502b2c)
vmishenev added a commit that referenced this pull request Mar 20, 2024
* [Javadoc] Ignore Kotlin samples

This is a laconic solution to avoid an error message (#3466) for Kotlin samples in unstable Javadoc format. There are 2 problems.
1. Javadoc's content model does not contain samples links at all. It should contain something like `samplesSectionContent` in the base plugin.
2. Sample Transformer from the base plugin knows nothing about Javadoc's content model. see  `DefaultSamplesTransformer.dfs`, e.g. `JavadocContentGroup` is unavailable from the base plugin.
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.

dokkaJavadoc task reports Could not recognize JavadocContentGroup in SamplesTransformer for samples
3 participants