-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jason Wise
committed
Jun 17, 2022
1 parent
fab7552
commit ff68d0b
Showing
8 changed files
with
75 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python: Current File", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "${file}", | ||
"console": "integratedTerminal", | ||
"justMyCode": true | ||
}, | ||
{ | ||
"name": "PlantUML", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/docs/source/plantuml/ExportDiagrams.py", | ||
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,31 @@ | ||
import os | ||
import pathlib | ||
|
||
import plantuml | ||
|
||
PLANT_PATH = r'C:\Source\plantuml.jar' | ||
|
||
def export(): | ||
is_local = os.path.exists(PLANT_PATH) | ||
if is_local: | ||
print('Using local PlantUML jar.') | ||
else: | ||
print('Using PlantUML server.') | ||
puml = plantuml.PlantUML('http://www.plantuml.com/plantuml/img/') | ||
|
||
plant_dir = pathlib.Path(__file__).parents[0] | ||
docs_dir = plant_dir.parents[0] | ||
for input_file in plant_dir.glob('*.puml'): | ||
# for file_name in ['KeynetixConverter.puml']: | ||
# input_file = plant_dir / file_name | ||
print(input_file.name) | ||
output_name = input_file.name.replace('.puml', '.png') | ||
output_dir = docs_dir.joinpath('images') | ||
output_file = output_dir.joinpath(output_name) | ||
if is_local: | ||
os.system('java -jar {} {} -o {}'.format(PLANT_PATH, input_file, output_dir)) | ||
else: | ||
puml.processes_file(input_file, output_file) | ||
|
||
if __name__ == '__main__': | ||
export() |
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 KeynetixConverter | ||
|
||
(gINT) -down-> (Excel) | ||
(AGS) -down-> (Excel) | ||
(Excel) -down-> (DIGGS) | ||
(Excel) -down-> (CSV) | ||
(Excel) -down-> (KeyLAB) | ||
|
||
@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