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

How to generate Image at build time #145

Closed
demagnevalCegelec opened this issue Oct 2, 2020 · 5 comments · Fixed by #154
Closed

How to generate Image at build time #145

demagnevalCegelec opened this issue Oct 2, 2020 · 5 comments · Fixed by #154
Labels
🍩 enhancement New feature or request 💎 Ruby

Comments

@demagnevalCegelec
Copy link
Contributor

I use Asciidoctor with jruby and I'd like to have my images generated a build time instead of calling kroki web server later.
I've try to add the following atgtribute in the adoc file :

  • :kroki-default-options: inline
  • :kroki-fetch-diagram: true
    to have the image result generate during the build and having the image either in a folder or in the resulting html, but none of them append, I still got a link to the kroki web server
    What attribute should I set and how should I define them ?
@ggrossetie
Copy link
Member

This feature is currently only available in JavaScript (Node/Browser).
If you want to implement this feature in Ruby I can provide some guidance.

@ggrossetie
Copy link
Member

@demagnevalCegelec I've released version 0.2.0 to RubyGems.org. It would be great if you could give it a try and let me know if everything is working as expected, thanks! 😉

@ggrossetie
Copy link
Member

Follow-up issue to support global options (for instance: :kroki-default-options: inline): #156

@demagnevalCegelec
Copy link
Contributor Author

I've update to asciidoctor-kroki 0.2.0 and the inline image are generated with the :kroki-fetch-diagram: true option
It's working fine, thanks for your great work !

@ggrossetie
Copy link
Member

Thanks @demagnevalCegelec for the follow-up! I'm glad it's working for you 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍩 enhancement New feature or request 💎 Ruby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants