Skip to content
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

OrchidDiagrams not supporting plantuml !include directive to include files #351

Open
sirinsevinc opened this issue Jan 17, 2020 · 2 comments
Labels

Comments

@sirinsevinc
Copy link

sirinsevinc commented Jan 17, 2020

Hi,
I have been trying to figure out how to include a .puml or.uml file from another file plantuml file.

I'm using the editorial theme and I have the following directory structure:

  • orchid
    ++ resources
    +++ assets
    +++ changlelog
    +++ pages
    ++++ sample.uml
    ++++ another.uml
    +++ wiki
    ++++ include-test.md

include-test.md loads the sample.uml as follows:
{{ load('pages/sample.uml') | raw }}

Here is the sample.uml file under pages :
@startuml
!include another.uml
@enduml

IncludeUrl works fine when pointed to URL but include with another uml file keeps giving a plantuml error of not able to include the file.

I wondered if that is something not supported yet or am I doing something wrong?

Thanks
Screenshot from 2020-01-17 12-55-28

@cjbrooks12
Copy link
Contributor

I don't think the !include directive is currently supported. I'll look into the integration to see if I can get it to work, but until then, you should be able to use the same kind of {{ load('pages/another.uml') | raw }} line when Orchid preprocesses the UML markup.

@sirinsevinc
Copy link
Author

sirinsevinc commented Jan 20, 2020

Thank you for your response.
If I use {{ load('pages/another.uml') | raw }} in the .uml file as it's not a valid PlantUml directive it gives an error.
When I try to load it from an .md file say load the header.uml first and then load the actually .uml, then it tries to load them as two separate SVGs.

no worries, looking forward to the actual fix for this, until then will use include pointing to a url for now..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants