Skip to content

Commit de5d32d

Browse files
nanotaboadaCopilot
andcommitted
docs: adjust Mermaid chart styling
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 079747f commit de5d32d

File tree

4 files changed

+69
-29
lines changed

4 files changed

+69
-29
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ COPY --from=builder /app/publish/ .
4545

4646
# Copy metadata docs for container registries (e.g.: GitHub Container Registry)
4747
COPY --chmod=444 README.md ./
48-
COPY --chmod=555 assets/ ./assets/
4948

5049
# https://rules.sonarsource.com/docker/RSPEC-6504/
5150

README.md

Lines changed: 69 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -98,33 +98,75 @@ test/Dotnet.Samples.AspNetCore.WebApi.Tests/
9898
Dependencies flow from data layer through repositories and services to controllers. External dependencies (AutoMapper, FluentValidation, Serilog) integrate at their respective layers.
9999

100100
```mermaid
101-
%%{init: {'theme':'base'}}%%
102-
graph TD
103-
Data[Data]:::core --> Models[Models]:::core
104-
Models --> Repositories[Repositories]:::core
105-
Repositories --> Services[Services]:::core
106-
Services --> Controllers[Controllers]:::core
107-
Controllers --> Program[Program]:::core
108-
109-
Validators[Validators]:::core --> Controllers
110-
Mappings[Mappings]:::core --> Services
111-
112-
AutoMapper[AutoMapper]:::external --> Mappings
113-
FluentValidation[FluentValidation]:::external --> Validators
114-
Serilog[Serilog]:::external --> Program
115-
116-
Configurations[Configurations]:::infrastructure --> Program
117-
SwaggerUI[SwaggerUI]:::infrastructure --> Controllers
118-
MemoryCache[MemoryCache]:::infrastructure --> Services
119-
Migrations[Migrations]:::infrastructure --> Repositories
120-
121-
Controllers --> Tests[Tests]:::testing
122-
Services --> Tests
123-
124-
classDef core fill:#cfe4ff,stroke:#333333,stroke-width:2px,color:#000
125-
classDef external fill:#ffd9d9,stroke:#333333,stroke-width:2px,color:#000
126-
classDef infrastructure fill:#fcfcca,stroke:#333333,stroke-width:2px,color:#000
127-
classDef testing fill:#c3f7c8,stroke:#333333,stroke-width:2px,color:#000
101+
%%{init: {
102+
"theme": "default",
103+
"themeVariables": {
104+
"fontFamily": "Fira Code, Consolas, monospace",
105+
"textColor": "#555",
106+
"lineColor": "#555",
107+
"lineWidth": 2
108+
}
109+
}}%%
110+
graph LR
111+
%% Core Modules
112+
Data[Data]
113+
Models[Models]
114+
Repositories[Repositories]
115+
Services[Services]
116+
Controllers[Controllers]
117+
Program[Program]
118+
Validators[Validators]
119+
Mappings[Mappings]
120+
121+
%% External Dependencies
122+
AutoMapper[AutoMapper]
123+
FluentValidation[FluentValidation]
124+
Serilog[Serilog]
125+
126+
%% Supporting Features
127+
Configurations[Configurations]
128+
SwaggerUI[SwaggerUI]
129+
MemoryCache[MemoryCache]
130+
Migrations[Migrations]
131+
132+
%% Tests
133+
Tests[Tests]
134+
135+
%% Main Application Flow
136+
Data --> Models
137+
Models --> Repositories
138+
Repositories --> Services
139+
Services --> Controllers
140+
Controllers --> Program
141+
142+
Validators --> Controllers
143+
Mappings --> Services
144+
145+
%% External Dependencies connections
146+
AutoMapper --> Mappings
147+
FluentValidation --> Validators
148+
Serilog --> Program
149+
150+
%% Supporting Features connections
151+
Configurations --> Program
152+
SwaggerUI --> Controllers
153+
MemoryCache --> Services
154+
Migrations --> Repositories
155+
156+
%% Tests connections
157+
Controllers -.-> Tests
158+
Services -.-> Tests
159+
160+
%% Node styling (fallbacks)
161+
classDef core fill:#b3d9ff,stroke:#6db1ff,stroke-width:2px,color:#555,font-family:monospace;
162+
classDef deps fill:#ffcccc,stroke:#ff8f8f,stroke-width:2px,color:#555,font-family:monospace;
163+
classDef test fill:#ccffcc,stroke:#53c45e,stroke-width:2px,color:#555,font-family:monospace;
164+
classDef feat fill:#ffffcc,stroke:#fdce15,stroke-width:2px,color:#555,font-family:monospace;
165+
166+
class Data,Models,Repositories,Services,Controllers,Program,Validators,Mappings core;
167+
class AutoMapper,FluentValidation,Serilog deps;
168+
class Tests test;
169+
class Configurations,SwaggerUI,MemoryCache,Migrations feat;
128170
```
129171

130172
*Layered architecture: Core application flow (blue), supporting features (yellow), external dependencies (red), and test coverage (green). Not all dependencies are shown.*

assets/images/Structure.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/images/Swagger.png

-400 KB
Binary file not shown.

0 commit comments

Comments
 (0)