[kroki-fetch-diagram] generated-file-name parameter not used
See original GitHub issuesee #47 for my setup
My test presentation.adoc sets the imagesdir
and use generated-file-name
parameter to have all images with human readable names:
ifndef::imagesdir[:imagesdir: ./images]
== UML class diagram test with kroki
[plantuml, "diagram-classes", svg]
....
class BlockProcessor
class DiagramBlock
class DitaaBlock
class PlantUmlBlock
BlockProcessor <|-- DiagramBlock
DiagramBlock <|-- DitaaBlock
DiagramBlock <|-- PlantUmlBlock
....
It fetches the diagram and writes to images/210a0ebf2a7bb40669c4e3c895b2c9396f048327.svg
instead of images/diagram-classes.svg
like ascidoctor-diagram does.
It would be good to support the mandatory diagram parameters from asciidoctor-diagram.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Configuration - Kroki Documentation
Diagram Binary Paths Kroki depends on external binaries to generate images. By default, Kroki will locate these binaries in the PATH environment variable....
Read more >AsciiDoc Diagram (#31818) · Issues - GitLab.org
Resolution At this point we're using Kroki to support additional diagram types - we won't be supporting asciidoctor-diagram directly.
Read more >The Chart Template Developer's Guide - Helm V2
Templates generate manifest files, which are YAML-formatted resource descriptions that Kubernetes can understand. We'll look at how templates are structured, ...
Read more >GitLab Arbitrary File Read & Write through Kroki - CVE-2021 ...
generate_data_uri makes call to File.binread which is reading file at the path specified in the target_image parameter. ::File.
Read more >Asciidoctor Diagram
The second, optional positional attribute assigns a file name (i.e. target ) to the generated diagram. If a target is not specified an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s a good idea! I wonder if it exists a better (shorter) hashing algorithm to make the filename more human-friendly? I did a quick search but I couldn’t find a good alternative.
I agree, let’s do that 👍🏻
The linked PR is closed, however this issue is still open. In my trials (using the RubyGem), it appears that the custom / human-readable name is still ignored (https://github.com/Mogztter/asciidoctor-kroki/blob/master/ruby/lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb#L291). Is that accurate? If so, is the plan still to support the custom name, or is there a reason for always using the auto-generated name?
I’d be glad to help get this resolved.