You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix all diagram containment issues and add documentation
- Removed redundant classDef space and class definitions from all diagrams
- Fixed Minikube Architecture, Debug Container Approach, Sidecar Approach diagrams
- Updated contributing documentation with guidelines for proper subgraph containment
- Added detailed instructions on how to ensure proper wrapping of elements
- Documented the need to exclude explicit text color from subgraph labels
- Ensured consistent styling across all diagrams
Signed-off-by: Aaron Lippold <[email protected]>
For light mode compatibility, white text (#FFFFFF) works well with all the recommended background colors.
77
77
78
+
### Proper Subgraph Containment
79
+
80
+
When using subgraphs in Mermaid diagrams, follow these guidelines to ensure proper containment and wrapping:
81
+
82
+
1.**Always add `direction TB` inside subgraphs**: This ensures proper containment of elements within the subgraph
83
+
84
+
```mermaid
85
+
flowchart TD
86
+
subgraph MySubgraph["My Subgraph Title"]
87
+
direction TB
88
+
A --> B
89
+
B --> C
90
+
end
91
+
```
92
+
93
+
2.**Avoid using `classDef space` and `class` definitions** in your diagrams, as these can interfere with proper rendering and containment. Instead, rely on the default sizing and standard styling.
0 commit comments