PlantUML Support #2958
Replies: 5 comments 2 replies
-
As in the code, assumes use of local plantuml server deployed in the same host accessible through localhost:8080. For non sensitive docs, can also use the public URL https://www.plantuml.com/plantuml/uml/SyfFKj2rKt3CoKnELR1Io4ZDoSa700003. Given our internal engg docs cannot be exposed to public domain, using the locally deployed server. Needs a tomcat installation in the same node container when using docker. |
Beta Was this translation helpful? Give feedback.
-
I wonder if you’d be interested in publishing an Astro integration that wraps up this code? I think that would probably be the best approach to make it easier for people to extend their project with this functionality if needed. Given the relative complexity of needing a server for generating the images, I don’t think it’s something we’d add as a built-in feature, but a community Starlight plugin or Astro integration would make a lot of sense. |
Beta Was this translation helpful? Give feedback.
-
@delucis : Started the leg work to it https://github.com/joesaby/astro-plantuml |
Beta Was this translation helpful? Give feedback.
-
@delucis - this is now done. I have couple of examples done as well |
Beta Was this translation helpful? Give feedback.
-
Done #3222 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of
starlight
are you using?0.32.2
What is your idea?
Discussion in the Discord channel in thread (https://discord.com/channels/830184174198718474/1345017578497773589) about support for plantuml rendering using rehype within Astro.
Example of astro.config.mjs
Where
rehypes any plantuml as code blocks in markdown. Code blocks look like
Code for
./src/scripts/plantuml-png-rehype.ts
Why is this feature necessary?
It wouldnt be unusual for engineering teams to use plantUML given mermaid or others arent well suited for complicated sequence flows or state machines
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions