bpruitt-goddard / vscode-mermaid-syntax-highlight

Markdown syntax support for the Mermaid charting language
MIT License
92 stars 36 forks source link

Feat: Separate Diagram Files #41

Closed bpruitt-goddard closed 3 years ago

bpruitt-goddard commented 3 years ago

The original yaml file was growing very large with all of the disparate diagrams in one location. This PR uses the yaml-import library to separate the diagrams into their own files, re-adding them in the existing npm script.

This has the added benefit of automatically importing any new diagram file in the associated folder.

Note the generated json file has many changes, but these are because of the re-ordering of the diagrams due to the automatic folder adding mentioned above. I confirmed that the actual diagrams do not change in this output, they are only being re-ordered.