Skip to content

Commit d330b68

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 d330b68

File tree

4 files changed

+67
-30
lines changed

4 files changed

+67
-30
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: 67 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -95,36 +95,75 @@ test/Dotnet.Samples.AspNetCore.WebApi.Tests/
9595

9696
## Architecture
9797

98-
Dependencies flow from data layer through repositories and services to controllers. External dependencies (AutoMapper, FluentValidation, Serilog) integrate at their respective layers.
98+
Dependencies flow from data layer through repositories and services to controllers. External dependencies (AutoMapper, FluentValidation, Serilog, Swashbuckle) 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+
}
108+
}}%%
109+
graph LR
110+
%% Core Modules
111+
Data[Data]
112+
Models[Models]
113+
Repositories[Repositories]
114+
Services[Services]
115+
Controllers[Controllers]
116+
Program[Program]
117+
Validators[Validators]
118+
Mappings[Mappings]
119+
120+
%% External Dependencies (Third-Party)
121+
AutoMapper[AutoMapper]
122+
FluentValidation[FluentValidation]
123+
Serilog[Serilog]
124+
Swashbuckle[Swashbuckle]
125+
126+
%% Supporting Features (Framework/Built-in)
127+
Configurations[Configurations]
128+
MemoryCache[MemoryCache]
129+
130+
%% Tests
131+
Tests[Tests]
132+
133+
%% Main Application Flow
134+
Data --> Models
135+
Models --> Repositories
136+
Repositories --> Services
137+
Services --> Controllers
138+
Controllers --> Program
139+
140+
Validators --> Controllers
141+
Mappings --> Services
142+
143+
%% External Dependencies connections
144+
AutoMapper --> Mappings
145+
FluentValidation --> Validators
146+
Serilog --> Program
147+
Swashbuckle --> Controllers
148+
149+
%% Supporting Features connections
150+
Configurations --> Program
151+
MemoryCache --> Services
152+
153+
%% Tests connections
154+
Controllers -.-> Tests
155+
Services -.-> Tests
156+
157+
%% Node styling with stroke-width
158+
classDef core fill:#b3d9ff,stroke:#6db1ff,stroke-width:2px,color:#555,font-family:monospace;
159+
classDef deps fill:#ffcccc,stroke:#ff8f8f,stroke-width:2px,color:#555,font-family:monospace;
160+
classDef test fill:#ccffcc,stroke:#53c45e,stroke-width:2px,color:#555,font-family:monospace;
161+
classDef feat fill:#ffffcc,stroke:#fdce15,stroke-width:2px,color:#555,font-family:monospace;
162+
163+
class Data,Models,Repositories,Services,Controllers,Program,Validators,Mappings core;
164+
class AutoMapper,FluentValidation,Serilog,Swashbuckle deps;
165+
class Tests test;
166+
class Configurations,MemoryCache feat;
128167
```
129168

130169
*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)