-
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
Add copy button for configuration properties in config tables #44403
Add copy button for configuration properties in config tables #44403
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
That docs CI failure didn't fail when I build docs and served it. I'll check command used by CI and try to fix it. Update: seems like inline macro for HTML is not used, at least I could not reproduce situation when it is used, but I don't know all the ways in which documentation is generated, so I left it there, just adjusted it to turn the copy button macro into empty |
1f8ae8a
to
ecef520
Compare
This comment has been minimized.
This comment has been minimized.
🎊 PR Preview 0d1aa9a has been successfully built and deployed to https://quarkus-pr-main-44403-preview.surge.sh/version/main/guides/
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I think we will need to implement something similar to what was done for env vars:
This is needed for the downstream doc.
But happy to discuss if you had something else in mind.
I think we could have only one common property for that as it's all about having the ability to handle the feature.
The difference is that this is inline (like this is inside table row that is inline) so you cannot use ifdef etc. Before I went this implementation, I tried to make this conditional for hours. I am no Asciidoc expert though, if you think it can be done, I'll dig again. (also I found some links to Asciidoc about that https://discuss.asciidoctor.org/Inline-Conditional-Inclusion-Macros-td3007.html that suggested the same)
I'll come for solution for downstream, but I'll need pointers. I added that "inline macro process" that I thought is enough for any scenario that is not supported. If you tell me how downstream docs is build, I'll prepare NOOP macro.
I'd like that, but again, I don't know how to make this conditional. |
But is it a problem if it's on another line? My understanding is that it would end up on the same line in the end? But maybe it wouldn't work? |
It wouldn't, it doesn't matter whether it is on the next line (well it fails for different reason, IIRC it failed over unmatched endif, but I tried many variants, so I don't remember details). Problem is that ifdef only worked for blocks, but I didn't find a way to make row a block. |
And the envVar a few lines below is not in the same situation? If adding a block solves the issue, maybe we could do the same as for |
Fair point, from DOM POV they are all div paragraphs inside one content div so there shouldn't be a problem. I'll figure why it works for the env var. Thanks |
ecef520
to
77cbd3b
Compare
77cbd3b
to
cb009c9
Compare
@gsmet the issues I experienced were due to the fact that qute template didn't end with an empty line, it messed things. works now. I tested it and works when copy button is enabled with quarkusio/quarkusio.github.io#2164 I'll need to re-check tomorrow forenoon because I made one cosmetic change that I won't wait till docs rebuild now. Unless I report back tomorrow, please consider this ready for review. Thanks |
This comment has been minimized.
This comment has been minimized.
Status for workflow
|
Status for workflow
|
I have tested it with and without |
Thanks a lot! |
Addresses: https://quarkusio.zulipchat.com/#narrow/channel/187038-dev/topic/Doc.20-.20Copy.20property.20name/near/452271216
This won't work until quarkusio/quarkusio.github.io#2157 is merged and CI is rerun with that change.