-
Notifications
You must be signed in to change notification settings - Fork 124
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
Create maven-site/doxia compliant module #571
Comments
Made an unsuccesful poc passing the asciidoctor html to html parser as suggested in #564 (comment) (/cc fyi @michael-o).
We could also explore having a custom Asciidoctor converter (or templates) adapted to what html parser expects which requires less effort but also makes as dependant on too many external elements outside of our control and may impact performace having to do 2 conversions per document. |
Let me have a look at this in the next couple of days. Currently busy with Maven Core ITs. |
@abelsromero Can you upload two outputs, before and after? I'd like to diff them. |
This just just fyi, no need to worry. But this is my test branch https://github.com/abelsromero/asciidoctor-maven-plugin/tree/poc/use-html-parser-for-site-integration, just installing locally and running https://github.com/asciidoctor/asciidoctor-maven-examples/tree/main/asciidoc-maven-site-example in debug mode to see the results. edit: I am counting this won't be easy feat and months worth of work. |
BTW, have a look how the Markdown parser does the magic. All callbacks are actually called. Maybe you can steal from? If anything isn't right in Doxia, let me know. Now is the time to make things right. I am totally skimming and improving the entire subsystem. |
Sorry, I do not understand this. I upgraded to Can anyone point me to a description of how to configure this correctly? I can also downgrade to 2.2.x, if there is an easy solution for it. |
"hoping" confuses me, do you mean you did expect tables to be correct with If you don't want to add custom styles, you can try |
Yes, because in #166 there was discussion about table formatting, and my impression was that 3.0.0 would fix the problem existing in 2.2.x. I did not read everything in detail, because I simply lack the time to.
No, if they were fine before, I would not have tried to ugrade in the first place.
I do have additional CSS, because if you remember our previous discussion, I need that for the
I am not sure what that is or what exactly I need to do. Using Asciidoctor for Maven sites is quite confusing. Can you advise me what I need to do to fix my tables? |
No problem at all. With 3.0.0 we released 2 site modules: the
|
What is this issue about?
Description
Current maven-site/doxia integration (
AsciidoctorDoxiaParser
) converts sources to Html (without header/footer) using Asciidoctor and embeds the result as-is. As a result the styles applied do not match with the maven site skins (simply theclass
value do not match) and other differences appear as seen in #166.To generate a "maven-site valid" Html a proper module should be implemented that uses Asciidoctor AST alongside Doxia's Sink so that the the generation of Html is handled by Doxia.
Pros:
Cons:
This is scheduled for v3.0.0 not for breaking changes but because as part of 3.0.0 we will split the project in sub-modules, that way we can provide multiple doxia modules, one with current approach and another one with this.
The text was updated successfully, but these errors were encountered: