-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add preprocess support for PlantUML "!include"
Fixes #49 see: http://plantuml.com/en/preprocessing http://plantuml.com/en/commons implement and test: - [x] `!include local-file-path` (throw an error if file not found) - [x] `!include local-file-path-with-spaces` - [x] `!include ... # comment` - [x] `!include remote-file-url` (skip and warn if url not accessible) - [x] `!include <std/lib/path>` (skip and warn) - [x] `!include file!index` - [x] `!include file!id` - [x] `!includeurl url` (compatibility : same as `!include remote-file-url`) - [x] `!includesub id` (compatibility : includes `!startsub id ... !endsub`) - [x] recursive include - [x] cyclic include loop protection (throw an error if detected) - [x] remove block `/' ... '/` and line `' ... '` comments - [x] `!include_many local-file-or-url` (compatibility : same as normal `!include ...`) - [x] `!include_once local-file-or-url` (throw an error if file included multiple times) - [x] `!include local-file-path-or-url` if included file has `@startuml ... @enduml` block(s) it should include only first block (index 0)
- Loading branch information
Showing
18 changed files
with
692 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!include file-include-grand-parent.iuml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!include file-include-parent.iuml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!include file-include-itself.iuml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!include file-include-child.iuml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@startuml(id=MY_OWN_ID1) | ||
A -> A : stuff1 | ||
B -> B : stuff2 | ||
@enduml | ||
|
||
@startuml(id=MY_OWN_ID2) | ||
C -> C : stuff3 | ||
D -> D : stuff4 | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@startuml | ||
A -> A : stuff1 | ||
B -> B : stuff2 | ||
@enduml | ||
|
||
@startuml | ||
C -> C : stuff3 | ||
D -> D : stuff4 | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@startuml | ||
A -> A : stuff1 | ||
!startsub BASIC | ||
B -> B : stuff2 | ||
B -> B : stuff2.1 | ||
!endsub | ||
C -> C : stuff3 | ||
!startsub BASIC | ||
D -> D : stuff4 | ||
D -> D : stuff4.1 | ||
!endsub | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
skinparam DefaultFontName "Neucha" | ||
skinparam BackgroundColor transparent | ||
skinparam Shadowing false | ||
skinparam Handwritten true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
!include style\ general\ with\ spaces.iuml | ||
!include style-note.iuml | ||
!include style-sequence.iuml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
skinparam DefaultFontName "Neucha" | ||
skinparam BackgroundColor transparent | ||
skinparam Shadowing false | ||
skinparam Handwritten true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@startuml | ||
skinparam DefaultFontName "Neucha" | ||
skinparam BackgroundColor transparent | ||
skinparam Shadowing false | ||
skinparam Handwritten true | ||
@enduml | ||
|
||
@startuml | ||
skinparam Sequence { | ||
TitleFontSize 12 | ||
TitleFontColor #606060 | ||
ArrowColor #303030 | ||
DividerBackgroundColor #EEEEEE | ||
GroupBackgroundColor #EEEEEE | ||
LifeLineBackgroundColor white | ||
LifeLineBorderColor #303030 | ||
ParticipantBackgroundColor #FEFEFE | ||
ParticipantBorderColor #303030 | ||
BoxLineColor #303030 | ||
BoxBackgroundColor #DDDDDD | ||
} | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
!include_once style-general.iuml | ||
!include style-note.iuml | ||
!include style-sequence.iuml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
skinparam Note { | ||
BorderColor #303030 | ||
BackgroundColor #CEEEFE | ||
FontSize 12 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
skinparam Sequence { | ||
TitleFontSize 12 | ||
TitleFontColor #606060 | ||
ArrowColor #303030 | ||
DividerBackgroundColor #EEEEEE | ||
GroupBackgroundColor #EEEEEE | ||
LifeLineBackgroundColor white | ||
LifeLineBorderColor #303030 | ||
ParticipantBackgroundColor #FEFEFE | ||
ParticipantBorderColor #303030 | ||
BoxLineColor #303030 | ||
BoxBackgroundColor #DDDDDD | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
!include style-general.iuml | ||
!include style-note.iuml | ||
!include style-sequence.iuml |
Oops, something went wrong.