Let the PlantUML code block embed the generated image instead of the PlantUML server request · Issue #2200 · google/docsy · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PlantUML code block does not embed the generated image when building the page. Instead, the image is regenerated each time the page is fetched. This has two disadvantages:
Firstly, there is a lot of unnecessary traffic.
But more importantly, the PlantUML server may not be accessible from anywhere on the web. In our case, our PlantUML server is hosted on the corporate network. When our page is built, it can be accessed. But from anywhere outside our network, the PlantUML diagrams will not load.
It would be nice if there was an option to embed the generated image when building the page, rather than having the image generated when the page is visited.
The text was updated successfully, but these errors were encountered:
I had a similar issue of not wanting to call out to an external server for the puml conversion. The approach I took is to have the puml in separate .puml files. This is possibly better when you have large diagrams or want to open the .puml file in an IDE that can preview the puml.
I have a script to convert all the .puml files (that have a different sha1 since last run) into a .puml.svg file. The svgs are then just included in the docs as standard svg images. This script can be run before serving the site locally and as part of the CI build pipeline.
The PlantUML code block does not embed the generated image when building the page. Instead, the image is regenerated each time the page is fetched. This has two disadvantages:
Firstly, there is a lot of unnecessary traffic.
But more importantly, the PlantUML server may not be accessible from anywhere on the web. In our case, our PlantUML server is hosted on the corporate network. When our page is built, it can be accessed. But from anywhere outside our network, the PlantUML diagrams will not load.
It would be nice if there was an option to embed the generated image when building the page, rather than having the image generated when the page is visited.
The text was updated successfully, but these errors were encountered: