Skip to content
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

d2 rendering does not work #741

Open
snowe2010 opened this issue Nov 15, 2024 · 0 comments
Open

d2 rendering does not work #741

snowe2010 opened this issue Nov 15, 2024 · 0 comments

Comments

@snowe2010
Copy link

This was reported initially in the asciidoctorj-diagram repo, where they told me to report it here. asciidoctor/asciidoctorj-diagram#57 (comment)


With this example project you can see that d2 rendering doesn't work. Testing with the linked project you can see that the asciidoctor-diagram gem generates both diagrams correctly (d2 and ditaa), while the asciidoctorJ task fails to generate the d2 diagram

d2asciidoctorj.zip

simply run ./gradlew asciidoctor and look at the build/docs/asciidoc/pages/index.html file and you will see a generated ditaa diagram, but the d2 diagram is not generated, and is a plain block inline in the html.

to compare to asciidoctor-diagram run
bundle
to install the gems needed and then run
./gradlew asciidoctorFromGem
and look at the docs/modules/ROOT/pages/index.html file to see the diagram has been generated correctly with the gem.

I initially thought I was doing something wrong because this user asciidoctor/asciidoctorj-diagram#35 seemed to get it working, but this is about as simple of an example as I can create and yet it still doesn't work. Either the docs are wrong or this just doesn't work.


per the linked issue in asciidoctorj-diagram it seems that asciidoctorj-diagram generates it just fine. It is only gradle that is having the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant