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: remove excess files from diagram autogeneration and disable titles in generated diagrams #847

Merged
merged 5 commits into from
Aug 1, 2024

Conversation

edibotopic
Copy link
Collaborator

@edibotopic edibotopic commented Jul 30, 2024

This PR aimed to (1) reduce the number of excess files that are created in the repo during autogeneration of C4 diagrams and (2) leverage config options passed to the renderer to disable excess information in the diagrams, such as titles.

Originally, switching to an alternative rendering backend was trialled for (1) but this failed during test workflow runs.
The alternative solution was to simply remove unwanted files with rm in the workflow after generation.
The workflow already removes junk generated during each run (.puml files), so it has now been amended to also remove key/legend files, which are not useful for our purposes. This removed 11 files of ~110 kb.

The existing plantuml rendering backend has limited config options but allows titles to be disabled in diagrams. This change was made and helps reduce visual noise in what are already already complex diagrams. This also prevents naming conflicts; for example, terms like "landscape" and "container" are included in titles (according to the C4 convention) but these could cause confusion when a technology called "Landscape" is also being referenced in a diagram and "container" has a variety of uses in software.

The alt text used for one of the images in the docs was also fixed as it wasn't fit-for-purpose.

UDENG-3731

@edibotopic edibotopic changed the title Change C4 diagram rendering backend docs: Change C4 diagram rendering backend Jul 30, 2024
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.33%. Comparing base (5898930) to head (dc5b9cf).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #847      +/-   ##
==========================================
+ Coverage   88.29%   88.33%   +0.04%     
==========================================
  Files         105      105              
  Lines        6757     6757              
==========================================
+ Hits         5966     5969       +3     
+ Misses        616      613       -3     
  Partials      175      175              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@edibotopic edibotopic force-pushed the change-c4-diagram-rendering-backend branch from af478f9 to 5ab172e Compare July 30, 2024 11:08
@edibotopic edibotopic force-pushed the change-c4-diagram-rendering-backend branch from 5ab172e to f6bf160 Compare July 30, 2024 11:43
@edibotopic edibotopic changed the title docs: Change C4 diagram rendering backend docs: remove excess files from diagram autogeneration and disable titles in generated diagrams Jul 30, 2024
@edibotopic edibotopic marked this pull request as ready for review July 30, 2024 12:22
@edibotopic edibotopic requested a review from a team as a code owner July 30, 2024 12:22
Copy link
Contributor

@CarlosNihelton CarlosNihelton left a comment

Choose a reason for hiding this comment

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

Sensible decision in my opinion. Thanks for addressing that!

@edibotopic edibotopic merged commit 87b614c into main Aug 1, 2024
39 checks passed
@edibotopic edibotopic deleted the change-c4-diagram-rendering-backend branch August 1, 2024 07:59
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