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

Optionally use a URL include instead of file include #13

Merged
merged 4 commits into from
May 25, 2021
Merged

Optionally use a URL include instead of file include #13

merged 4 commits into from
May 25, 2021

Conversation

BenRStutzman
Copy link

Add an optional parameter, useUrlInclude, to the ToPumlString() method. If set to true, it will change the include statement at the beginning of the puml string to link to the current PlantUML standard library file on github, instead of to a local .puml file. For example, a component diagram would have:

!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml

This allows for standalone PlantUML code that can be converted to a diagram by any server with an internet connection, without relying on local .puml files.

@yanjustino yanjustino merged commit 5d25145 into 8T4:main May 25, 2021
@BenRStutzman BenRStutzman deleted the feature/add-url-include branch May 25, 2021 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants