-
Notifications
You must be signed in to change notification settings - Fork 6
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
docs: Setup diagram auto gen #790
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #790 +/- ##
==========================================
+ Coverage 87.75% 87.84% +0.08%
==========================================
Files 104 90 -14
Lines 6631 5790 -841
==========================================
- Hits 5819 5086 -733
+ Misses 635 571 -64
+ Partials 177 133 -44 ☔ View full report in Codecov by Sentry. |
Everyone contributing to this PR have now signed the CLA. Thanks! |
This adds a workflow to automate generation of C4 diagrams. The source file is docs/workspace.dsl. The output dir is docs/diagrams/. A Docker container installs necessary dependencies including Graphviz. The action generates .png files of the images when a PR is submitted that changes the source file.
This is where the diagrams will be generated. A readme is included for explanatory purposes.
This is the source-of-truth for all the diagrams that will be generated. If a change is made to this file then the affected diagrams will be rerendered.
e61f038
to
65f1568
Compare
05fae71
to
65f1568
Compare
[Auto-generated pull request](https://github.com/canonical/ubuntu-pro-for-wsl/actions/workflows/autoupdate-structurizr-diagrams.yml) by GitHub Action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent automation :)
This proposed change sets up the repo for the automated generation of C4 diagrams in the docs.
In
/docs/
there is aworkspace.dsl
file that contains the source markup for all of the C4 diagrams.When a PR includes a change to the markup a GitHub action will be triggered that updates the affected diagrams.
The generated diagrams will be added to the
docs/diagrams/
folder and can then be referenced in the rest of the documentation.If accepted, the change should make it easier to maintain/version the
workspace.dsl
source and the diagrams along with the rest of the docs.It should also make it easier for any future contributors who wish to work on the diagrams specifically.
UDENG-2943