-
Notifications
You must be signed in to change notification settings - Fork 19
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
AsciiDoctor Diagram support added #66
base: main
Are you sure you want to change the base?
AsciiDoctor Diagram support added #66
Conversation
Can you explain why and what you are trying to add this plugin in this PR? |
AsciiDoctor Diagram support. Adding i.e. PlantUML, ditaa or BPMN diagrams to the component spec documents (or others). It also updates some related versions and fixes some issues like usage of the source highlighter. |
Which spec needs to use this one? Is it possible to add to that spec to try it out before making this to parent pom? |
I would like to use it within MP Telemetry and it is a configuration I derived from my company's current platform project documentation and the official AsciiDoctor Maven examples. But this configuration (not as an user of the microprofile-parent) would be helpful on the MPSP project too, to render the BPMN drawing directly from the source there instead of generating a SVG to be included manually. It is possible to overwrite the asciidoctor-maven-plugin and it's dependency inside a component specs plugin management section, but I would have to figure out this will work with the microprofile-parent asciidoc profile then the intendet way... I also can offer to show you my current use - but that project itself is not public yet (but will be to some extent in the future). Another improvement for testing microprofile-parent changes (i.e. for major release plugin update too) could be an test component spec or template for it - but that approach would take some time. Originally the AsciiDoctor Diagram support was discussed with @kwsutter and @radcortez about more than a year ago for using it in the Jakarta Security documentation to replace existing low quality images. |
Thank you @JanWesterkamp-iJUG for the detailed explanation! Do you think this can be done after MP 6.0, hopefully happening soon? We can then spend more time to experiment the plugin. |
@Emily-Jiang now MP 6.0 is released and we already fixed some of the (security) issues there in the same way I want to do it in MP Parent here (eclipse/microprofile#300). I can then proceed to create an new PR for the remaining issue in both projects. |
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.
I've noticed a few style differences in the PDF version. We may want to confirm if we are ok with this.
The annotations color in the new version is gray (in the HTML version, they are blue, and the previous PDF showed light purple). I don't want to discuss colors, but I feel the annotations in the PDF version are hardly noticeable due to the similar color to the rest of the text.
@radcortez, thanks for your approval so far. Just to make sure not misunderstood you. ;-) The existing configuration was broken already, as the attribute sourceHighlighter got replaced by source-highlighter in AsciiDoctor version 2.x. By the way, this is one of the differences for the MP 6.0 Spec change, where CodeRay was already active for both output documents. Many MP component specs fix this issue by setting the correct attribute in the docs as a workaround. |
My intent here is not to discuss colors. I'm terrible at that. I just wanted to make sure that we are aware of this. |
I am not a big fun with the new color scheme. |
@radcortez and @Emily-Jiang, it looks like the style sheets deviate a little bit between the PDF and the HTML output and more reasonable between CodeRay and Rouge, where both try to style like GitHub. Rouge uses GitHub as the default style sheet, but there is the option to configure one from here. So we will get the old behaviour, when CodeRay is configured and it looks like that inlines the CSS (now?), which solves the tracking issue in this respect (there are also 3rd party fonts included, but that´s a different story). Another option would be finding the right theme for Rouge. Can we solve this in the next PR or do I need to do it here? |
I'm fine if this is resolved on a separate PR. |
@Emily-Jiang can I address you concerns by changing the source highlighter back to CodeRay? This would fix source highlighting for PDFs with the old design. Then we can handle the final solution in a separate issue/PR. I really would like to merge this, as I would like to fix the security issues with it and then do it for the remaining ones, as similar for the MP umbrella spec too:
|
@JanWesterkamp-iJUG as agreed on last week's call, can you split this PR to 2 PRs, one of which is to address plugin upgrades to address CVEs and the other one on diagram plugin? thanks |
@Emily-Jiang, as requested the seprate PR for the security fix is created here: #73 When this is merged, I will create an update for this one. |
This PR adds AsciiDoctor Diagram support and updates AsciiDoc related versions.
Also the source highligter is fixed and configured to PDF documets with the intended to be AsciiDoctor new default "rouge" implementation.
The source highlighter could be configured to HTML output manually, but this would generate dependencies to external static ressources that allow for potential user tracking.
Defaut postfix (.asciidoc) and source loaction (src/main/asciidoc) are unchanged for now (see #63).