-
Notifications
You must be signed in to change notification settings - Fork 121
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
resolves #170, #180, #179, #168 & #160 enable configuration for site parser #182
Conversation
mojavelinux
commented
Dec 14, 2015
- rewrite AsciidoctorParser (used by Maven Site Plugin) to make it more organized and extensible
- specify baseDir by default when invoking Asciidoctor API
- pass AsciiDoc configuration defined in Maven Site plugin to the Asciidoctor API
- API options (e.g., templateDir)
- Ruby options (e.g., requires)
- AsciiDoc attributes (e.g., icons=font)
- enhance Maven Site integration test
- add custom template
- add include
- add source highlighting
- make validation code compatible with Java 6
- enable integration tests on Travis CI
- remove unused legacy site module
- fix license headers
- minor cleanups
if (!require.trim().isEmpty()) { | ||
try { | ||
// FIXME AsciidoctorJ should provide a public API for requiring paths in the Ruby runtime | ||
RubyUtils.requireLibrary(JRubyRuntimeContext.get(), require.trim()); |
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.
Since Asciidoctorj 1.5.3 there's a method Asciidoctor.requireLibrary(String)
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'll change this to a TODO since we haven't upgraded the AsciidoctorJ version yet. As soon as we do, we'll switch it over.
👍 \o/ |
4228725
to
1391cb3
Compare
I agree, this is a major step forward. We just killed a whole army of bugs :) |
1391cb3
to
2f1cc3d
Compare
Congrats!👑 |
👍 |
2f1cc3d
to
7728179
Compare
I think this is ready to go! |
I'm really glad you could find a solution for this. I agree this is a major step and something worth of a 1.5.3 release.
|
We should use Asciidoctor.requireLibrary, but we have to do it after the fix for #183. |
I added a note to #183. |
Eventually, yes. Though AsciidoctorParser has more specialized requirements given that it cannot benefit from the type conversion provided by the What I really like now about the AsciidoctorParser class is that it would be easy to extend given that all the steps are partitioned into methods. In other words, you have hooks into the logic in order to customize the behavior. The main plugin should be this way too. |
7728179
to
beb5993
Compare
…or#168 & asciidoctor#160 enable configuration for site parser - rewrite AsciidoctorParser (used by Maven Site Plugin) to make it more organized and extensible - specify baseDir by default when invoking Asciidoctor API - pass AsciiDoc configuration defined in Maven Site plugin to the Asciidoctor API - API options (e.g., templateDir) - Ruby options (e.g., requires) - AsciiDoc attributes (e.g., icons=font) - enhance Maven Site integration test - add custom template - add include - add source highlighting - make validation code compatible with Java 6 - enable integration tests on Travis CI and Appveyor - remove unused legacy site module - fix license headers - minor cleanups
beb5993
to
5e4a857
Compare
@abelsromero Let me know if you need more time to review. I'm ready to merge when you are. |
Concerning
So better to use the first approach |
👍 |
GO! |
👍 |
Amazing the hoops you have to go through for this |