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
Upgrade & refactor asciidoctor-maven-plugin config #284
Upgrade & refactor asciidoctor-maven-plugin config #284
Conversation
* Bump asciidoctor-maven-plugin to v2.2.2 * Bump AsciidoctorJ to v2.5.6 * Bump AsciidoctorJ PDF to v2.1.6 * Refactor configuration * To remove duplication * Added Maven properties for shared versions and paths. * Use common <configuguration> in plugins for all executions. * Removed unused elements * imagesdir attribute in html already uses default value. * imagesdir in pdf no longer requires to point to target (issue fixed in upstream). * Created single executions to convert only required files: index, toc, release-notes. This has the advantatge that displays errors/warning for each file as independent steps during maven build. * Other changes * Set source-highlighter in PDF to rouge which is current recommended. * Set outputFile to 'reference.pdf' for convenience.
Build shows several errors for
|
Hello @abelsromero Thank you, all looks good, excepting that for profile generate-html-plain does not work now, because index.html and release-notes.html are empty now. This profile is used each time when I do release to generate files:
I have merged this request the to the branch try_new_asciidoctor please use it for next requests related to asciidoctor migration. If you know how to fix generate-html-plain it will be nice to provide correspondent pull-request. |
Excellent idea 👍
Found it, doctype must be
If I understand correctly, for a release the process would be:
If that's the case, we can just setup a single profile "generate-html-docs" that does exactly that. Leaving index in the directory above the version one. |
Yes, you correctly understand release process, I do not have objections to merge html generation in one profile. |
Thank you very much. Has been merged to master. |
This has the advantatge that displays errors/warning for each file as independent
steps during maven build.