-
Notifications
You must be signed in to change notification settings - Fork 245
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
[MNGSITE-507] Convert APT to Markdown #573
base: master
Are you sure you want to change the base?
Conversation
After applying tons of fixes to Doxia and Converter this looks good to me now. |
Did you diff the produced HTML? Especially |
The converter from apache/maven-doxia-converter@4061da5 was used with the following options: java -jar doxia-converter-1.4-SNAPSHOT-shaded.jar -in ./content/apt -from apt -out ./content/markdown -to markdown -removeIn
954d634
to
d461d61
Compare
I don't care about the HTML differences too much, I manually validated that the content looks reasonable now. I haven't found any obvious issue with CSS. |
One of the problems I have seen multiple times: https://github.com/apache/maven-fluido-skin/blob/master/src/main/resources/css/maven-base.css |
@michael-o Can you be more specific? I fail to see the relation between this conversion and a general CSS resource of the fluido-skin. What exactly is incorrectly rendered? |
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.
The first difference I see is that comments are fully retained. The generated HTML contains the license header. Waste, isn't it? The comments which aren't HTML style should be stripped.
Next diff: Code blocks from APT, not verbatim ones are lost, so is autohighlight. Example: developers/committer-settings.html |
|
Well, https://maven.apache.org/developers/committer-settings.html has the following APT: maven-site/content/apt/developers/committer-settings.apt Lines 41 to 60 in 923f866
According to https://maven.apache.org/doxia/references/apt-format.html#verbatim-text this is just verbatim text with a box around it. I see that the HTML generated out of the converted MD is lacking the hightlighting and line number, but I think this is due to https://issues.apache.org/jira/browse/MSKINS-245 because the HTML looks good to me i.e. enclosed in {{
What exactly do you consider wrong here @michael-o ? |
This is not new and not strictly related to the conversion but I tracked this now in https://issues.apache.org/jira/browse/DOXIA-758 |
|
The converter from
apache/maven-doxia-converter@4061da5 was used with the following options:
java -jar doxia-converter-1.4-SNAPSHOT-shaded.jar -in ./content/apt -from apt -out ./content/markdown -to markdown -removeIn