-
Notifications
You must be signed in to change notification settings - Fork 168
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
Unable to generate .svgs when PlantUML uses !include for files in parent directory. #3
Comments
Looking through the code. I did not realize this action is relying on an external API... generate-plantuml-action/src/main.ts Line 14 in fd4ec36
|
As you see, this action uses PlantUML Server. So it is difficult to refer other files, such as |
I think there are two approaches.
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 |
Add support for `.pml`, `.puml` and `.plantuml` extensions
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 called
architecture.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.The text was updated successfully, but these errors were encountered: