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
Execute a custom asciidoctor converter for generateHTML #1239
Comments
interesting problem. I am not sure if this is the solution, but you can configure doctoolchain to use ruby plugins: https://github.com/docToolchain/docToolchain/blob/ng/scripts/AsciiDocBasics.gradle#L240 https://github.com/docToolchain/docToolchain/blob/ng/template_config/Config.groovy#L169 Does this help? |
Thank you for the reply and the suggestions.This does look promising. I am using the default
Now when I run
Any idea? I am not experienced in ruby at all, sorry. |
I am also not very experienced in ruby. I would take a look at other ruby plugins and see what is different. Unfortunately, there will be no time for me to do so the next two weeks. After that, I could have a look |
I made some progress using the raw asciidoctor-gradle-plugin. First of all I modified my converter, which now also works with inline equations:
Now I can successfully build and generate hmtl using the following
I needed to add my custom converter to the Adding However, I am still lost on how to include this in the |
Again some progress has been made... I had tested everything with
which I had seen previously when adding the I mentioned above that the custom converter had to be added to
This produces the expected results. |
looks good. Great Work! |
Thanks for your investigation! I try to find time in the next two weeks to figure out how we can incorporate a fix. |
Hello, |
@cgoguyer thanks for the valuable hints, that made the fix easy for me to implement ❤️ |
Background and description
I am looking to start using docToolchain for our docs.
Our documentation often includes mathematical expressions.
I use STEM blocks to write using latex syntax:
When generating HTML and publish to confluence, asciidoctor will generate code with the default mathjax deliiters,
\[
,\]
,\(
,\)
.However our Confluence MathJax plugin does not support the delimiters above. Thus, I followed this tutorial to write a custom converter that changes the delimiters.
I can now generate the HTML site using asciidoctor with:
Delimiters are changed and everything renders correctly.
However, I do not know how to execute the converter using the doctoolchain.
My preferred Solution(s)
generatedHTML
andpublishToConfluence
taskmy-html5-converter.rb
while runninggeneratedHTML
The text was updated successfully, but these errors were encountered: