@mgks/docmd 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +5 -1
  2. package/package.json +28 -24
  3. package/src/templates/layout.ejs +16 -6
  4. package/src/templates/no-style.ejs +5 -1
  5. package/src/templates/partials/theme-init.js +20 -16
  6. package/src/templates/toc.ejs +1 -1
  7. package/.gitattributes +0 -2
  8. package/.github/CODE_OF_CONDUCT.md +0 -48
  9. package/.github/CONTRIBUTING.md +0 -129
  10. package/.github/FUNDING.yml +0 -15
  11. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -58
  12. package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -27
  13. package/.github/PULL_REQUEST_TEMPLATE.md +0 -16
  14. package/.github/SECURITY.md +0 -18
  15. package/.github/workflows/deploy-docmd.yml +0 -45
  16. package/.github/workflows/npm-publish.yml +0 -49
  17. package/assets/css/welcome.css +0 -6
  18. package/assets/images/preview-dark-1.webp +0 -0
  19. package/assets/images/preview-dark-2.webp +0 -0
  20. package/assets/images/preview-dark-3.webp +0 -0
  21. package/assets/images/preview-dark-welcome.png +0 -0
  22. package/assets/images/preview-light-1.webp +0 -0
  23. package/assets/images/preview-light-2.webp +0 -0
  24. package/assets/images/preview-light-3.webp +0 -0
  25. package/docs/cli-commands.md +0 -108
  26. package/docs/comparison.md +0 -56
  27. package/docs/configuration.md +0 -289
  28. package/docs/content/containers/buttons.md +0 -88
  29. package/docs/content/containers/callouts.md +0 -154
  30. package/docs/content/containers/cards.md +0 -93
  31. package/docs/content/containers/changelogs.md +0 -128
  32. package/docs/content/containers/collapsible.md +0 -89
  33. package/docs/content/containers/index.md +0 -35
  34. package/docs/content/containers/nested-containers.md +0 -329
  35. package/docs/content/containers/steps.md +0 -175
  36. package/docs/content/containers/tabs.md +0 -228
  37. package/docs/content/custom-containers.md +0 -24
  38. package/docs/content/frontmatter.md +0 -84
  39. package/docs/content/images.md +0 -205
  40. package/docs/content/index.md +0 -19
  41. package/docs/content/markdown-syntax.md +0 -309
  42. package/docs/content/mermaid.md +0 -723
  43. package/docs/content/no-style-example.md +0 -112
  44. package/docs/content/no-style-pages.md +0 -226
  45. package/docs/content/search.md +0 -68
  46. package/docs/contributing.md +0 -101
  47. package/docs/deployment.md +0 -120
  48. package/docs/getting-started/basic-usage.md +0 -89
  49. package/docs/getting-started/index.md +0 -21
  50. package/docs/getting-started/installation.md +0 -75
  51. package/docs/index.md +0 -168
  52. package/docs/overview.md +0 -63
  53. package/docs/plugins/analytics.md +0 -75
  54. package/docs/plugins/index.md +0 -70
  55. package/docs/plugins/seo.md +0 -127
  56. package/docs/plugins/sitemap.md +0 -87
  57. package/docs/recipes/custom-fonts.md +0 -43
  58. package/docs/recipes/favicon.md +0 -38
  59. package/docs/recipes/index.md +0 -12
  60. package/docs/recipes/landing-page.md +0 -46
  61. package/docs/theming/assets-management.md +0 -126
  62. package/docs/theming/available-themes.md +0 -77
  63. package/docs/theming/custom-css-js.md +0 -79
  64. package/docs/theming/icons.md +0 -92
  65. package/docs/theming/index.md +0 -19
  66. package/docs/theming/light-dark-mode.md +0 -114
  67. package/src/assets/css/docmd-highlight-dark.css +0 -1
  68. package/src/assets/css/docmd-highlight-light.css +0 -1
  69. package/src/assets/css/docmd-main.css +0 -1608
  70. package/src/assets/css/docmd-theme-retro.css +0 -868
  71. package/src/assets/css/docmd-theme-ruby.css +0 -629
  72. package/src/assets/css/docmd-theme-sky.css +0 -618
  73. package/src/assets/favicon.ico +0 -0
  74. package/src/assets/images/docmd-logo-dark.png +0 -0
  75. package/src/assets/images/docmd-logo-light.png +0 -0
  76. package/src/assets/images/docmd-logo.png +0 -0
  77. package/src/assets/images/docmd-preview.png +0 -0
  78. package/src/assets/js/docmd-image-lightbox.js +0 -74
  79. package/src/assets/js/docmd-main.js +0 -249
  80. package/src/assets/js/docmd-mermaid.js +0 -205
  81. package/src/assets/js/docmd-search.js +0 -218
@@ -1,723 +0,0 @@
1
- ---
2
- title: "Mermaid Diagrams"
3
- description: "Create beautiful diagrams and flowcharts using Mermaid syntax in your docmd documentation."
4
- ---
5
-
6
- # Mermaid Diagrams
7
-
8
- Mermaid is a JavaScript-based diagramming and charting tool that uses Markdown-inspired text definitions to create and modify diagrams dynamically. docmd has built-in support for Mermaid diagrams with automatic light/dark theme switching.
9
-
10
- ::: callout tip
11
- All Mermaid diagrams automatically adapt to your site's light/dark theme!
12
- :::
13
-
14
- ## Flowchart
15
-
16
- Flowcharts are used to represent workflows or processes. They show the steps as boxes of various kinds, and their order by connecting them with arrows.
17
-
18
- **Code:**
19
-
20
- ````markdown
21
- ```mermaid
22
- graph TD
23
- A[Start] --> B{Is it working?}
24
- B -->|Yes| C[Great!]
25
- B -->|No| D[Debug]
26
- D --> E[Fix the issue]
27
- E --> B
28
- C --> F[Deploy]
29
- F --> G[End]
30
- ```
31
- ````
32
-
33
- **Rendered Preview:**
34
-
35
- ```mermaid
36
- graph TD
37
- A[Start] --> B{Is it working?}
38
- B -->|Yes| C[Great!]
39
- B -->|No| D[Debug]
40
- D --> E[Fix the issue]
41
- E --> B
42
- C --> F[Deploy]
43
- F --> G[End]
44
- ```
45
-
46
- ## Sequence Diagram
47
-
48
- Sequence diagrams show how processes operate with one another and in what order. They capture the interaction between objects in the context of a collaboration.
49
-
50
- **Code:**
51
-
52
- ````markdown
53
- ```mermaid
54
- sequenceDiagram
55
- participant User
56
- participant Browser
57
- participant Server
58
- participant Database
59
-
60
- User->>Browser: Enter URL
61
- Browser->>Server: HTTP Request
62
- Server->>Database: Query Data
63
- Database-->>Server: Return Results
64
- Server-->>Browser: HTTP Response
65
- Browser-->>User: Display Page
66
- ```
67
- ````
68
-
69
- **Rendered Preview:**
70
-
71
- ```mermaid
72
- sequenceDiagram
73
- participant User
74
- participant Browser
75
- participant Server
76
- participant Database
77
-
78
- User->>Browser: Enter URL
79
- Browser->>Server: HTTP Request
80
- Server->>Database: Query Data
81
- Database-->>Server: Return Results
82
- Server-->>Browser: HTTP Response
83
- Browser-->>User: Display Page
84
- ```
85
-
86
- ## Class Diagram
87
-
88
- Class diagrams are the main building block of object-oriented modeling. They show the structure of a system by showing the system's classes, their attributes, operations, and relationships.
89
-
90
- **Code:**
91
-
92
- ````markdown
93
- ```mermaid
94
- classDiagram
95
- class Animal {
96
- +String name
97
- +int age
98
- +makeSound()
99
- }
100
- class Dog {
101
- +String breed
102
- +bark()
103
- }
104
- class Cat {
105
- +String color
106
- +meow()
107
- }
108
-
109
- Animal <|-- Dog
110
- Animal <|-- Cat
111
- ```
112
- ````
113
-
114
- **Rendered Preview:**
115
-
116
- ```mermaid
117
- classDiagram
118
- class Animal {
119
- +String name
120
- +int age
121
- +makeSound()
122
- }
123
- class Dog {
124
- +String breed
125
- +bark()
126
- }
127
- class Cat {
128
- +String color
129
- +meow()
130
- }
131
-
132
- Animal <|-- Dog
133
- Animal <|-- Cat
134
- ```
135
-
136
- ## Entity Relationship Diagram
137
-
138
- Entity Relationship Diagrams are used to model the logical structure of databases. They show entities (tables) and the relationships between them.
139
-
140
- **Code:**
141
-
142
- ````markdown
143
- ```mermaid
144
- erDiagram
145
- CUSTOMER ||--o{ ORDER : places
146
- CUSTOMER {
147
- string name
148
- string email
149
- string phone
150
- }
151
- ORDER ||--|{ LINE-ITEM : contains
152
- ORDER {
153
- int orderNumber
154
- date orderDate
155
- string status
156
- }
157
- PRODUCT ||--o{ LINE-ITEM : "ordered in"
158
- PRODUCT {
159
- string name
160
- decimal price
161
- string category
162
- }
163
- LINE-ITEM {
164
- int quantity
165
- decimal total
166
- }
167
- ```
168
- ````
169
-
170
- **Rendered Preview:**
171
-
172
- ```mermaid
173
- erDiagram
174
- CUSTOMER ||--o{ ORDER : places
175
- CUSTOMER {
176
- string name
177
- string email
178
- string phone
179
- }
180
- ORDER ||--|{ LINE-ITEM : contains
181
- ORDER {
182
- int orderNumber
183
- date orderDate
184
- string status
185
- }
186
- PRODUCT ||--o{ LINE-ITEM : "ordered in"
187
- PRODUCT {
188
- string name
189
- decimal price
190
- string category
191
- }
192
- LINE-ITEM {
193
- int quantity
194
- decimal total
195
- }
196
- ```
197
-
198
- ## State Diagram
199
-
200
- State diagrams describe the states of an object and the transitions between those states. They're useful for modeling the lifecycle of an object.
201
-
202
- **Code:**
203
-
204
- ````markdown
205
- ```mermaid
206
- stateDiagram-v2
207
- [*] --> Idle
208
- Idle --> Processing : Start
209
- Processing --> Success : Complete
210
- Processing --> Error : Fail
211
- Success --> [*]
212
- Error --> Retry : Retry
213
- Retry --> Processing
214
- Error --> [*] : Give Up
215
- ```
216
- ````
217
-
218
- **Rendered Preview:**
219
-
220
- ```mermaid
221
- stateDiagram-v2
222
- [*] --> Idle
223
- Idle --> Processing : Start
224
- Processing --> Success : Complete
225
- Processing --> Error : Fail
226
- Success --> [*]
227
- Error --> Retry : Retry
228
- Retry --> Processing
229
- Error --> [*] : Give Up
230
- ```
231
-
232
- ## User Journey
233
-
234
- User journey diagrams visualize the journey users take when using your product or service. They help identify pain points and opportunities for improvement.
235
-
236
- **Code:**
237
-
238
- ````markdown
239
- ```mermaid
240
- journey
241
- title My working day
242
- section Go to work
243
- Make tea: 5: Me
244
- Go upstairs: 3: Me
245
- Do work: 1: Me, Cat
246
- section Go home
247
- Go downstairs: 5: Me
248
- Sit down: 5: Me
249
- ```
250
- ````
251
-
252
- **Rendered Preview:**
253
-
254
- ```mermaid
255
- journey
256
- title My working day
257
- section Go to work
258
- Make tea: 5: Me
259
- Go upstairs: 3: Me
260
- Do work: 1: Me, Cat
261
- section Go home
262
- Go downstairs: 5: Me
263
- Sit down: 5: Me
264
- ```
265
-
266
- ## Gantt Chart
267
-
268
- Gantt charts illustrate a project schedule, showing the start and finish dates of elements and summary elements of a project.
269
-
270
- **Code:**
271
-
272
- ````markdown
273
- ```mermaid
274
- gantt
275
- title Project Development Timeline
276
- dateFormat YYYY-MM-DD
277
- section Planning
278
- Requirements gathering :a1, 2024-01-01, 30d
279
- Design phase :a2, after a1, 20d
280
- section Development
281
- Frontend development :a3, 2024-02-01, 40d
282
- Backend development :a4, 2024-02-01, 45d
283
- Integration :a5, after a3 a4, 15d
284
- section Testing
285
- QA Testing :a6, after a5, 20d
286
- Bug fixes :a7, after a6, 10d
287
- section Deployment
288
- Production deploy :a8, after a7, 5d
289
- ```
290
- ````
291
-
292
- **Rendered Preview:**
293
-
294
- ```mermaid
295
- gantt
296
- title Project Development Timeline
297
- dateFormat YYYY-MM-DD
298
- section Planning
299
- Requirements gathering :a1, 2024-01-01, 30d
300
- Design phase :a2, after a1, 20d
301
- section Development
302
- Frontend development :a3, 2024-02-01, 40d
303
- Backend development :a4, 2024-02-01, 45d
304
- Integration :a5, after a3 a4, 15d
305
- section Testing
306
- QA Testing :a6, after a5, 20d
307
- Bug fixes :a7, after a6, 10d
308
- section Deployment
309
- Production deploy :a8, after a7, 5d
310
- ```
311
-
312
- ## Pie Chart
313
-
314
- Pie charts are circular statistical graphics divided into slices to illustrate numerical proportions.
315
-
316
- **Code:**
317
-
318
- ````markdown
319
- ```mermaid
320
- pie title Browser Usage Statistics
321
- "Chrome" : 64.5
322
- "Safari" : 18.2
323
- "Firefox" : 8.5
324
- "Edge" : 4.8
325
- "Other" : 4.0
326
- ```
327
- ````
328
-
329
- **Rendered Preview:**
330
-
331
- ```mermaid
332
- pie title Browser Usage Statistics
333
- "Chrome" : 64.5
334
- "Safari" : 18.2
335
- "Firefox" : 8.5
336
- "Edge" : 4.8
337
- "Other" : 4.0
338
- ```
339
-
340
- ## Quadrant Chart
341
-
342
- Quadrant charts are useful for prioritization and categorizing items based on two dimensions.
343
-
344
- **Code:**
345
-
346
- ````markdown
347
- ```mermaid
348
- quadrantChart
349
- title Reach and engagement of campaigns
350
- x-axis Low Reach --> High Reach
351
- y-axis Low Engagement --> High Engagement
352
- quadrant-1 We should expand
353
- quadrant-2 Need to promote
354
- quadrant-3 Re-evaluate
355
- quadrant-4 May be improved
356
- Campaign A: [0.3, 0.6]
357
- Campaign B: [0.45, 0.23]
358
- Campaign C: [0.57, 0.69]
359
- Campaign D: [0.78, 0.34]
360
- Campaign E: [0.40, 0.34]
361
- Campaign F: [0.35, 0.78]
362
- ```
363
- ````
364
-
365
- **Rendered Preview:**
366
-
367
- ```mermaid
368
- quadrantChart
369
- title Reach and engagement of campaigns
370
- x-axis Low Reach --> High Reach
371
- y-axis Low Engagement --> High Engagement
372
- quadrant-1 We should expand
373
- quadrant-2 Need to promote
374
- quadrant-3 Re-evaluate
375
- quadrant-4 May be improved
376
- Campaign A: [0.3, 0.6]
377
- Campaign B: [0.45, 0.23]
378
- Campaign C: [0.57, 0.69]
379
- Campaign D: [0.78, 0.34]
380
- Campaign E: [0.40, 0.34]
381
- Campaign F: [0.35, 0.78]
382
- ```
383
-
384
- ## Git Graph
385
-
386
- Git graphs visualize Git branching and merging operations, making it easier to understand version control workflows.
387
-
388
- **Code:**
389
-
390
- ````markdown
391
- ```mermaid
392
- gitGraph
393
- commit
394
- commit
395
- branch develop
396
- checkout develop
397
- commit
398
- commit
399
- checkout main
400
- merge develop
401
- commit
402
- branch feature
403
- checkout feature
404
- commit
405
- checkout main
406
- merge feature
407
- commit
408
- ```
409
- ````
410
-
411
- **Rendered Preview:**
412
-
413
- ```mermaid
414
- gitGraph
415
- commit
416
- commit
417
- branch develop
418
- checkout develop
419
- commit
420
- commit
421
- checkout main
422
- merge develop
423
- commit
424
- branch feature
425
- checkout feature
426
- commit
427
- checkout main
428
- merge feature
429
- commit
430
- ```
431
-
432
- ## Mindmap
433
-
434
- Mindmaps are diagrams used to visually organize information hierarchically, showing relationships among pieces of the whole.
435
-
436
- **Code:**
437
-
438
- ````markdown
439
- ```mermaid
440
- mindmap
441
- root((docmd))
442
- Features
443
- Markdown Support
444
- Custom Containers
445
- Themes
446
- Light Mode
447
- Dark Mode
448
- Plugins
449
- Documentation
450
- Getting Started
451
- Configuration
452
- Deployment
453
- Community
454
- GitHub
455
- Contributors
456
- Issues
457
- ```
458
- ````
459
-
460
- **Rendered Preview:**
461
-
462
- ```mermaid
463
- mindmap
464
- root((docmd))
465
- Features
466
- Markdown Support
467
- Custom Containers
468
- Themes
469
- Light Mode
470
- Dark Mode
471
- Plugins
472
- Documentation
473
- Getting Started
474
- Configuration
475
- Deployment
476
- Community
477
- GitHub
478
- Contributors
479
- Issues
480
- ```
481
-
482
- ## Timeline
483
-
484
- Timeline diagrams show events in chronological order along a line, making it easy to understand the sequence and duration of events.
485
-
486
- **Code:**
487
-
488
- ````markdown
489
- ```mermaid
490
- timeline
491
- title History of Web Development
492
- 2000 : Web 1.0
493
- : Static HTML pages
494
- 2005 : Web 2.0
495
- : Dynamic content
496
- : AJAX revolution
497
- 2010 : Mobile First
498
- : Responsive design
499
- 2015 : Modern Frameworks
500
- : React
501
- : Vue
502
- : Angular
503
- 2020 : JAMstack Era
504
- : Static Site Generators
505
- : Serverless
506
- ```
507
- ````
508
-
509
- **Rendered Preview:**
510
-
511
- ```mermaid
512
- timeline
513
- title History of Web Development
514
- 2000 : Web 1.0
515
- : Static HTML pages
516
- 2005 : Web 2.0
517
- : Dynamic content
518
- : AJAX revolution
519
- 2010 : Mobile First
520
- : Responsive design
521
- 2015 : Modern Frameworks
522
- : React
523
- : Vue
524
- : Angular
525
- 2020 : JAMstack Era
526
- : Static Site Generators
527
- : Serverless
528
- ```
529
-
530
- ## XY Chart
531
-
532
- XY charts display data as a series of points on a coordinate plane, useful for showing correlations and trends.
533
-
534
- **Code:**
535
-
536
- ````markdown
537
- ```mermaid
538
- xychart-beta
539
- title "Sales Revenue by Quarter"
540
- x-axis [Q1, Q2, Q3, Q4]
541
- y-axis "Revenue (in $1000)" 0 --> 100
542
- bar [50, 60, 70, 85]
543
- line [45, 55, 75, 80]
544
- ```
545
- ````
546
-
547
- **Rendered Preview:**
548
-
549
- ```mermaid
550
- xychart-beta
551
- title "Sales Revenue by Quarter"
552
- x-axis [Q1, Q2, Q3, Q4]
553
- y-axis "Revenue (in $1000)" 0 --> 100
554
- bar [50, 60, 70, 85]
555
- line [45, 55, 75, 80]
556
- ```
557
-
558
- ## Kanban Board
559
-
560
- Kanban boards visualize work at various stages of a process, helping teams manage workflow and identify bottlenecks.
561
-
562
- **Code:**
563
-
564
- ````markdown
565
- ```mermaid
566
- ---
567
- config:
568
- kanban:
569
- ticketBaseUrl: 'https://mermaidchart.atlassian.net/browse/#TICKET#'
570
- ---
571
- kanban
572
- Todo
573
- [Create Documentation]
574
- docs[Create Blog about the new diagram]
575
- [In progress]
576
- id6[Create renderer so that it works in all cases. We also add some extra text here for testing purposes. And some more just for the extra flare.]
577
- id9[Ready for deploy]
578
- id8[Design grammar]@{ assigned: 'knsv' }
579
- id10[Ready for test]
580
- id4[Create parsing tests]@{ ticket: MC-2038, assigned: 'K.Sveidqvist', priority: 'High' }
581
- id66[last item]@{ priority: 'Very Low', assigned: 'knsv' }
582
- id11[Done]
583
- id5[define getData]
584
- id2[Title of diagram is more than 100 chars when user duplicates diagram with 100 char]@{ ticket: MC-2036, priority: 'Very High'}
585
- id3[Update DB function]@{ ticket: MC-2037, assigned: knsv, priority: 'High' }
586
-
587
- id12[Can't reproduce]
588
- id3[Weird flickering in Firefox]
589
-
590
- ```
591
- ````
592
-
593
- **Rendered Preview:**
594
-
595
- ```mermaid
596
- ---
597
- config:
598
- kanban:
599
- ticketBaseUrl: 'https://mermaidchart.atlassian.net/browse/#TICKET#'
600
- ---
601
- kanban
602
- Todo
603
- [Create Documentation]
604
- docs[Create Blog about the new diagram]
605
- [In progress]
606
- id6[Create renderer so that it works in all cases. We also add some extra text here for testing purposes. And some more just for the extra flare.]
607
- id9[Ready for deploy]
608
- id8[Design grammar]@{ assigned: 'knsv' }
609
- id10[Ready for test]
610
- id4[Create parsing tests]@{ ticket: MC-2038, assigned: 'K.Sveidqvist', priority: 'High' }
611
- id66[last item]@{ priority: 'Very Low', assigned: 'knsv' }
612
- id11[Done]
613
- id5[define getData]
614
- id2[Title of diagram is more than 100 chars when user duplicates diagram with 100 char]@{ ticket: MC-2036, priority: 'Very High'}
615
- id3[Update DB function]@{ ticket: MC-2037, assigned: knsv, priority: 'High' }
616
-
617
- id12[Can't reproduce]
618
- id3[Weird flickering in Firefox]
619
-
620
- ```
621
-
622
- ## Architecture Diagram
623
-
624
- Architecture diagrams show the high-level structure of software systems, including components and their relationships.
625
-
626
- **Code:**
627
-
628
- ````markdown
629
- ```mermaid
630
- architecture-beta
631
- group api(cloud)[API Layer]
632
-
633
- service db(database)[Database] in api
634
- service cache(disk)[Cache] in api
635
- service queue(disk)[Queue] in api
636
-
637
- service server(server)[API Server] in api
638
-
639
- server:L -- R:db
640
- server:B -- T:cache
641
- server:T -- B:queue
642
- ```
643
- ````
644
-
645
- **Rendered Preview:**
646
-
647
- ```mermaid
648
- architecture-beta
649
- group api(cloud)[API Layer]
650
-
651
- service db(database)[Database] in api
652
- service cache(disk)[Cache] in api
653
- service queue(disk)[Queue] in api
654
-
655
- service server(server)[API Server] in api
656
-
657
- server:L -- R:db
658
- server:B -- T:cache
659
- server:T -- B:queue
660
- ```
661
-
662
- ## C4 Diagram
663
-
664
- C4 diagrams provide different levels of abstraction for software architecture visualization, from system context down to code.
665
-
666
- **Code:**
667
-
668
- ````markdown
669
- ```mermaid
670
- C4Context
671
- title System Context diagram for Internet Banking System
672
-
673
- Person(customerA, "Personal Banking Customer", "A customer of the bank")
674
- Person(customerB, "Business Banking Customer", "A business customer")
675
-
676
- System(SystemAA, "Internet Banking System", "Allows customers to view information about their accounts")
677
-
678
- System_Ext(SystemE, "Mainframe Banking System", "Stores all core banking information")
679
- System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange system")
680
-
681
- Rel(customerA, SystemAA, "Uses")
682
- Rel(customerB, SystemAA, "Uses")
683
-
684
- Rel(SystemAA, SystemE, "Gets account information from")
685
- Rel(SystemAA, SystemC, "Sends e-mails", "SMTP")
686
- ```
687
- ````
688
-
689
- **Rendered Preview:**
690
-
691
- ```mermaid
692
- C4Context
693
- title System Context diagram for Internet Banking System
694
-
695
- Person(customerA, "Personal Banking Customer", "A customer of the bank")
696
- Person(customerB, "Business Banking Customer", "A business customer")
697
-
698
- System(SystemAA, "Internet Banking System", "Allows customers to view information about their accounts")
699
-
700
- System_Ext(SystemE, "Mainframe Banking System", "Stores all core banking information")
701
- System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange system")
702
-
703
- Rel(customerA, SystemAA, "Uses")
704
- Rel(customerB, SystemAA, "Uses")
705
-
706
- Rel(SystemAA, SystemE, "Gets account information from")
707
- Rel(SystemAA, SystemC, "Sends e-mails", "SMTP")
708
- ```
709
-
710
- ## Best Practices
711
-
712
- When using Mermaid diagrams in your documentation:
713
-
714
- 1. **Keep it Simple**: Start with simple diagrams and add complexity only when needed
715
- 2. **Use Clear Labels**: Make sure all nodes and connections are clearly labeled
716
- 3. **Consider Your Audience**: Adjust the level of detail based on who will read the documentation
717
- 4. **Test Both Themes**: Always check how your diagrams look in both light and dark modes
718
- 5. **Add Context**: Use callouts or text around diagrams to explain what they represent
719
-
720
- ::: callout info
721
- For more detailed Mermaid syntax and options, visit the [official Mermaid documentation](https://mermaid.js.org/).
722
- :::
723
-