-
Notifications
You must be signed in to change notification settings - Fork 122
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
Being able to generate an Asciidoc backend with the Asciidoctor Reducer #618
Comments
I see in the docs it actually runs an Asciidoctor extension, which means "in theory" the gem could be installed with Would it help if we documented and maintained an example in the asciidoctor-maven-examples repo? |
Oh, I wasn't aware of the |
Sadly not possible yet 😞 but I could hack it by adding a few lines to the plugin. We could do this with some caveats:
@mojavelinux I wonder if you see any issue with the approach? I can see how presenting it as a backend when it's not, can create confusion to users, but it's a great project and adding it to maven will offer more exposure for it. |
I'm fine with the idea of exposing it as a backend target...and it might be interested to see if we can add a mode to Asciidoctor Reducer that makes it function as a true converter. I hadn't really thought of that before. |
Well, and if Asciidoc could be exposed as a new backend, what about Markdown? I had a look at downdoc and used it to export a Asciidoc to Markdown. Works great. If it could be integrated within the Asciidoctor Maven plugin as another backend, that would be great. |
Functionally it could make sense, but it won't be as easy, being a CLi in JS. To run in Java it would need GraalVM interpreter and some bindings. I'd advocate having the bindings in another project exposing it as an actual converter and then, we could consider integrating. |
downdoc will eventually be available as a Ruby application. I want to finish it first, though, since I don't want to have to make changes in two different languages while developing it. |
That would be awesome! I created a story to track it #619. Please, refer to it for any comment with downdoc. |
What is this issue about?
Description
It is sometimes very useful to generate a single AsciiDoc out of AsciiDoc documents containing include directives. That's the purpose of Asciidoctor Reducer. It would be great to integrate the Reducer in the Maven plugin. As a user, this could be seen just as another backend (
<backend>asciidoc</backend>
):The text was updated successfully, but these errors were encountered: