adrianvlupu / C4-Builder

This is a documentation builder. You feed it .md and .puml and it exports a site, pdf, or a markdown with navigation.
https://adrianvlupu.github.io/C4-Builder/
MIT License
563 stars 93 forks source link

Feature/Include PlantUML diagrams at arbitrary positions in doc #28

Closed sju66 closed 2 years ago

sju66 commented 3 years ago

Addition of the possibility of including diagrams at an arbitrary position via the use of markdown syntax ![](_diagram.puml).

Fixes #21

adrianvlupu commented 3 years ago

Thanks for the pull request, I'll come back to this after I push all the other PRs

hkdobrev commented 3 years ago

@adrianvlupu Is it possible to review this at this time? Thank you!

MickeJohannesson commented 2 years ago

I have done an update to this PR but not able to commit it. Changes made:

If someone could give me a hint on getting this into this PR or if I need to push it as a new PR

huyz commented 2 years ago

@MickeJohannesson Your changes look quite useful. But they seem like multiple PRs. Can you break it up and submit PRs separately?

MickeJohannesson commented 2 years ago

The problem is that all changes (more or less) are made in the build.js file. And I have done them in the version from this PR. Some are of course not needed (like PlantUML and NPM update). But to make for example DITAA support work it can not be separated in the main version of the build.js in a simple way What I instead could do is do a first commit on a new PR and then commit the "addons" as separate commits.

vellala2000 commented 2 years ago

This seems like very handy feature and its pending for some time. If we could figure out conflicts and a path forward that would be awesome. Please let me know if there is anything i can do to help

adrianvlupu commented 2 years ago

Thanks for the implementation.

I couldn't merge it properly but the functionality is there from another PR (that included your changes) and my refactoring.

You can include diagrams using ![name](diagramName.puml) where diagramName is variable.