Open thedmeyer opened 4 years ago
Looking through the code. I did not realize this action is relying on an external API...
As you see, this action uses PlantUML Server. So it is difficult to refer other files, such as !include
expression. 😞
I think there are two approaches.
!include
expression in JavaScript code, and join included files and post it to PlantUML server.Approach 1 looks bad because it costs much to be maintained. So I will try to do approach 2 when I have a enough time.
For my solution, I ended up writing a native implementation and including the plantuml.jar
within my repo.
I have two files. (Pseudo-representation below, scrubbed for privacy)
One is a large file in a parent directory called
definitions.puml
The other file is in a subfolder calledarchitecture.pu
They are arranged like so.
src/definitions.puml
src/level1/architecture.pu
The outcome is a generated SVG that is "undefined" and has no content.
Github preview reads:
Sorry, this file is invalid so it cannot be displayed.
Edit:
I have even tried this format
!include %dirpath/../definitions.puml
No luck.