Skip to content

Commit 4817e78

Browse files
committed
fix: convert Mermaid diagrams to use pre tags
- Updated all Mermaid diagrams to use <pre class='mermaid'> format - Verified Mermaid library inclusion in default template - Confirmed proper CSS styling for diagrams - Updated memory bank documentation Files modified: - getting-started-template.md - extension-lifecycle.md - api-integration-patterns.md - getting-started-index-template.md - guide-template.md - social-media-integration.md - woocommerce-integration.md - memory-bank/activeContext.md - memory-bank/progress.md
1 parent 688228e commit 4817e78

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

guides/concepts/extension-lifecycle.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ This guide applies to both extensions and integrations, with specific considerat
1616

1717
The MainWP add-on development lifecycle consists of several distinct phases:
1818

19-
```mermaid
19+
<pre class="mermaid">
2020
flowchart TD
2121
A[Planning] --> B[Development]
2222
B --> C[Testing]
2323
C --> D[Distribution]
2424
D --> E[Maintenance]
2525
E --> F[Updates]
2626
F --> C
27-
```
27+
</pre>
2828

2929
Each phase has specific goals, activities, and deliverables that contribute to creating a successful extension.
3030

guides/how-to/social-media-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ A MainWP social media integration allows you to centrally manage and monitor soc
3131

3232
The integration works by communicating between the MainWP Dashboard and social media platforms via child sites:
3333

34-
```mermaid
34+
<pre class="mermaid">
3535
flowchart TD
3636
A[MainWP Dashboard] -->|API Request| B[MainWP Child]
3737
B -->|Social Media API Request| C[LinkedIn API]
3838
C -->|API Response| B
3939
B -->|API Response| A
4040
D[Social Media Data] -->|Stored During Sync| A
41-
```
41+
</pre>
4242

4343
## Step 1: Setting Up LinkedIn API Access
4444

guides/how-to/woocommerce-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ A MainWP WooCommerce integration allows you to centrally manage and monitor WooC
3131

3232
The integration works by communicating between the MainWP Dashboard and WooCommerce on child sites:
3333

34-
```mermaid
34+
<pre class="mermaid">
3535
flowchart TD
3636
A[MainWP Dashboard] -->|API Request| B[MainWP Child]
3737
B -->|WC API Request| C[WooCommerce]
3838
C -->|WC API Response| B
3939
B -->|API Response| A
4040
D[WooCommerce Data] -->|Stored During Sync| A
41-
```
41+
</pre>
4242

4343
## Step 1: Setting Up WooCommerce API Access
4444

guides/reference/api-integration-patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This reference guide documents common patterns and architectures for integrating
66

77
Use this decision tree to help you choose the right pattern for your integration needs:
88

9-
```mermaid
9+
<pre class="mermaid">
1010
flowchart TD
1111
Start[Start] --> Q1{Are you using an\nexisting API client?}
1212
Q1 -->|Yes| Q1a{Does it match your\nneeds exactly?}
@@ -62,7 +62,7 @@ flowchart TD
6262

6363
Rate -->|Token bucket| R1[Token Bucket Pattern]
6464
Rate -->|Constant rate| R2[Leaky Bucket Pattern]
65-
```
65+
</pre>
6666

6767
## Overview
6868

guides/templates/getting-started-index-template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Welcome to the MainWP Developer Documentation! This comprehensive resource is de
44

55
## Documentation Overview
66

7-
```mermaid
7+
<pre class="mermaid">
88
flowchart TD
99
A[Getting Started] --> B[Core Concepts]
1010
A --> C[How-To Guides]
@@ -20,7 +20,7 @@ flowchart TD
2020
style B fill:#2196F3,stroke:#1976D2,color:white
2121
style C fill:#FFC107,stroke:#FFA000,color:white
2222
style D fill:#9C27B0,stroke:#7B1FA2,color:white
23-
```
23+
</pre>
2424

2525
## Getting Started
2626

guides/templates/getting-started-template.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Welcome to MainWP development! This guide will walk you through the essential st
66

77
Follow these steps to begin your MainWP development journey:
88

9-
```mermaid
9+
<pre class="mermaid">
1010
flowchart LR
1111
A[1. Setup Environment] --> B[2. Choose Add-on Type]
1212
B --> C1[3a. Create Basic Extension]
@@ -19,7 +19,7 @@ flowchart LR
1919
style C1 fill:#FFC107,stroke:#FFA000,color:white
2020
style C2 fill:#FFC107,stroke:#FFA000,color:white
2121
style D fill:#9C27B0,stroke:#7B1FA2,color:white
22-
```
22+
</pre>
2323

2424
## Step 1: Set Up Your Development Environment
2525

@@ -74,7 +74,7 @@ MainWP uses specific terminology to distinguish between different types of add-o
7474

7575
Use this decision tree to determine whether you should build an Extension or an Integration:
7676

77-
```mermaid
77+
<pre class="mermaid">
7878
flowchart TD
7979
A[Do you need to connect with\na third-party service or plugin?] -->|Yes| B[Integration]
8080
A -->|No| C[Extension]
@@ -86,7 +86,7 @@ flowchart TD
8686
style C fill:#FFC107,stroke:#FFA000,color:white
8787
style D fill:#9E9E9E,stroke:#757575,color:white
8888
style E fill:#9E9E9E,stroke:#757575,color:white
89-
```
89+
</pre>
9090

9191
### Extension Examples
9292

guides/templates/guide-template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ A brief introduction to the topic that explains:
4343
- Why this is important for MainWP developers
4444
- How this fits into the broader MainWP ecosystem
4545

46-
```mermaid
46+
<pre class="mermaid">
4747
flowchart TD
4848
A[First Step] --> B[Second Step]
4949
B --> C[Third Step]
5050
C --> D[Final Result]
51-
```
51+
</pre>
5252

5353
## Step 1: First Major Step
5454

0 commit comments

Comments
 (0)