-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Tooltips for enum values are rendered incorrectly in documentation of configuration properties #36401
Comments
/cc @MichalMaler (documentation), @ebullient (documentation), @inoxx03 (documentation), @michelle-purcell (documentation), @rolfedh (documentation), @sheilamjones (documentation), @sunayna15 (documentation) |
I think I've narrowed this down to a problem with how the Either the javadoc could be updated to remove the paragraph tags, or the parser updated to use asciidoc hard line breaks. Thoughts? |
Right, that's the correct translation.
I'm not sure this would make sense as I think the parser is used in other contexts. Also, if you mean
I'm not sure why this breaks exactly so this may be irrelevant, but can't we wrap the generated asciidoc of each tooltip into an open block? |
Right, that's the correct translation.
I'm not sure this would make sense as I think the parser is used in other contexts. Also, if you mean
I'm not sure why this breaks exactly so this may be irrelevant, but can't we wrap the generated asciidoc for the description of each enum into an open block? |
No, not I'm not sure about the open block, if it would work inside the table cell that contains the enum values, or if having multiple open blocks would work. |
Only one way to find out :) Personally I'd rather avoid changing the way But if we really have to... whatever works and doesn't break formatting for the rest of the guides is fine to me. |
Good news - I created a small reproducer so the build cycle is shorter; bad news - neither the open blocks nor the asciidoc hard line breaks seemed to help. What did help, was to smash it all together in one line (but then I don't get the tooltips at all, probably an issue with the reproducer). |
Probably a good idea to share your reproducer so that others can have a look. |
|
An updated reproducer that generates the HTML page with the same magic that quarkus.io uses, giving the tooltip hover. It boils down to those newlines inside of the square brackets surrounding the tooltip text. If we take those out, it'll generate the HTML nicely. I haven't stumbled onto an asciidoc combo to allow leaving those in... yet. |
thanks for looking into this @nderwin |
I'm only judging by your analysis and I'll be happy if you come with better solution, but if it goes down to the newlines inside tooltip description, I'd just strip it. Tooltip description is inline block and you can't expect paragraphs work there anyway. |
* removed the paragraph tags from the enum javadoc because they don't translate well into asciidoc and subsequently HTML tooltips * potential fix for quarkusio#36401 Signed-off-by:Nathan Erwin <[email protected]>
* removed the paragraph tags from the enum javadoc because they don't translate well into asciidoc and subsequently HTML tooltips * potential fix for quarkusio#36401 Signed-off-by:Nathan Erwin <[email protected]> Signed-off-by:Nathan Erwin <[email protected]>
* removed the paragraph tags from the enum javadoc because they don't translate well into asciidoc and subsequently HTML tooltips * potential fix for quarkusio#36401 Signed-off-by:Nathan Erwin <[email protected]>
* removed the paragraph tags from the enum javadoc because they don't translate well into asciidoc and subsequently HTML tooltips * potential fix for quarkusio#36401 Signed-off-by:Nathan Erwin <[email protected]>
* removed the paragraph tags from the enum javadoc because they don't translate well into asciidoc and subsequently HTML tooltips * potential fix for quarkusio#36401 Signed-off-by:Nathan Erwin <[email protected]>
Describe the bug
See for example https://quarkus.io/guides/scheduler#scheduler-configuration-reference
Expected behavior
All enum values should be rendered correctly.
Actual behavior
Only the first enum value is rendered correctly, the other ones seem off:
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: