Skip to content
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

Merged
merged 6 commits into from
Jun 19, 2024
Merged

docs: Setup diagram auto gen #790

merged 6 commits into from
Jun 19, 2024

Conversation

edibotopic
Copy link
Collaborator

This proposed change sets up the repo for the automated generation of C4 diagrams in the docs.

In /docs/ there is a workspace.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

@edibotopic edibotopic requested a review from a team as a code owner June 12, 2024 10:11
@edibotopic edibotopic changed the title Setup diagram auto gen docs: Setup diagram auto gen Jun 12, 2024
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.84%. Comparing base (49ef5fc) to head (14ad1ce).

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.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Jun 12, 2024

Everyone contributing to this PR have now signed the CLA. Thanks!

CarlosNihelton added a commit that referenced this pull request Jun 18, 2024
Fixes #782, #784, #790, #792, #795, #796 and #798
that required regenerating agentapi bindings.

Doing all at once to be faster.
CarlosNihelton added a commit that referenced this pull request Jun 18, 2024
Fixes #782, #784, #790, #792, #795, #796 and #798
that required regenerating agentapi bindings.

Doing all at once to be faster.
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.
@edibotopic edibotopic force-pushed the setup-diagram-auto-gen branch from e61f038 to 65f1568 Compare June 19, 2024 09:48
@edibotopic edibotopic force-pushed the setup-diagram-auto-gen branch 2 times, most recently from 05fae71 to 65f1568 Compare June 19, 2024 09:53
@didrocks didrocks marked this pull request as draft June 19, 2024 10:05
@didrocks didrocks marked this pull request as ready for review June 19, 2024 10:05
Copy link
Collaborator

@didrocks didrocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent automation :)

@edibotopic edibotopic merged commit 30575e9 into main Jun 19, 2024
30 of 31 checks passed
@edibotopic edibotopic deleted the setup-diagram-auto-gen branch June 19, 2024 10:08
CarlosNihelton added a commit that referenced this pull request Jun 19, 2024
Fixes #782,
#784,
#790,
#792,
#795,
#796 and
#798 that required
regenerating agentapi bindings.

Doing all at once to be faster.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants