Skills › Marketing Skills › site-architecture › mermaid-templates.md
mermaid-templates.md
216 lines · skills/site-architecture/references/mermaid-templates.md at 88c79f6
1# Mermaid Diagram Templates
3Copy-paste-ready Mermaid diagrams for visual sitemaps. Customize node labels and connections for your site.
5---
Mermaid Diagram Templates
Copy-paste-ready Mermaid diagrams for visual sitemaps. Customize node labels and connections for your site.
Raw lines 1 to 6
7## Basic Hierarchy
9Simple top-down page hierarchy.
11```mermaid
12graph TD
13 HOME["Homepage<br/>/"] --> FEAT["Features<br/>/features"]
14 HOME --> PRICE["Pricing<br/>/pricing"]
15 HOME --> BLOG["Blog<br/>/blog"]
16 HOME --> ABOUT["About<br/>/about"]
18 FEAT --> F1["Analytics<br/>/features/analytics"]
19 FEAT --> F2["Automation<br/>/features/automation"]
20 FEAT --> F3["Integrations<br/>/features/integrations"]
22 BLOG --> B1["Post: SEO Guide<br/>/blog/seo-guide"]
23 BLOG --> B2["Post: CRO Tips<br/>/blog/cro-tips"]
24```
26---
Basic Hierarchy
Simple top-down page hierarchy.
graph TD
HOME["Homepage<br/>/"] --> FEAT["Features<br/>/features"]
HOME --> PRICE["Pricing<br/>/pricing"]
HOME --> BLOG["Blog<br/>/blog"]
HOME --> ABOUT["About<br/>/about"]
FEAT --> F1["Analytics<br/>/features/analytics"]
FEAT --> F2["Automation<br/>/features/automation"]
FEAT --> F3["Integrations<br/>/features/integrations"]
BLOG --> B1["Post: SEO Guide<br/>/blog/seo-guide"]
BLOG --> B2["Post: CRO Tips<br/>/blog/cro-tips"]Raw lines 7 to 27
28## Hierarchy with Navigation Zones
30Uses subgraphs to show which pages appear in which navigation area.
32```mermaid
33graph TD
34 subgraph "Header Nav"
35 HOME["Homepage"]
36 FEAT["Features"]
37 PRICE["Pricing"]
38 BLOG["Blog"]
39 CTA["Get Started ★"]
40 end
42 subgraph "Feature Pages"
43 F1["Analytics"]
44 F2["Automation"]
45 F3["Integrations"]
46 end
48 subgraph "Footer Nav"
49 ABOUT["About"]
50 CAREERS["Careers"]
51 CONTACT["Contact"]
52 PRIVACY["Privacy"]
53 TERMS["Terms"]
54 end
56 HOME --> FEAT
57 HOME --> PRICE
58 HOME --> BLOG
59 FEAT --> F1
60 FEAT --> F2
61 FEAT --> F3
62 HOME --> ABOUT
63 ABOUT --> CAREERS
64 HOME --> CONTACT
65```
67---
Hierarchy with Navigation Zones
Uses subgraphs to show which pages appear in which navigation area.
graph TD
subgraph "Header Nav"
HOME["Homepage"]
FEAT["Features"]
PRICE["Pricing"]
BLOG["Blog"]
CTA["Get Started ★"]
end
subgraph "Feature Pages"
F1["Analytics"]
F2["Automation"]
F3["Integrations"]
end
subgraph "Footer Nav"
ABOUT["About"]
CAREERS["Careers"]
CONTACT["Contact"]
PRIVACY["Privacy"]
TERMS["Terms"]
end
HOME --> FEAT
HOME --> PRICE
HOME --> BLOG
FEAT --> F1
FEAT --> F2
FEAT --> F3
HOME --> ABOUT
ABOUT --> CAREERS
HOME --> CONTACTRaw lines 28 to 68
69## Hierarchy with URL Labels
71Each node shows the page name and URL path.
73```mermaid
74graph TD
75 HOME["Homepage<br/><small>/</small>"] --> PROD["Product<br/><small>/product</small>"]
76 HOME --> PRICE["Pricing<br/><small>/pricing</small>"]
77 HOME --> BLOG["Blog<br/><small>/blog</small>"]
78 HOME --> DOCS["Docs<br/><small>/docs</small>"]
79 HOME --> ABOUT["About<br/><small>/about</small>"]
81 PROD --> P1["Analytics<br/><small>/product/analytics</small>"]
82 PROD --> P2["Reports<br/><small>/product/reports</small>"]
84 DOCS --> D1["Getting Started<br/><small>/docs/getting-started</small>"]
85 DOCS --> D2["API Reference<br/><small>/docs/api</small>"]
86```
88---
Hierarchy with URL Labels
Each node shows the page name and URL path.
graph TD
HOME["Homepage<br/><small>/</small>"] --> PROD["Product<br/><small>/product</small>"]
HOME --> PRICE["Pricing<br/><small>/pricing</small>"]
HOME --> BLOG["Blog<br/><small>/blog</small>"]
HOME --> DOCS["Docs<br/><small>/docs</small>"]
HOME --> ABOUT["About<br/><small>/about</small>"]
PROD --> P1["Analytics<br/><small>/product/analytics</small>"]
PROD --> P2["Reports<br/><small>/product/reports</small>"]
DOCS --> D1["Getting Started<br/><small>/docs/getting-started</small>"]
DOCS --> D2["API Reference<br/><small>/docs/api</small>"]Raw lines 69 to 89
90## Hub-and-Spoke Content Model
92Shows a hub page connected to spoke articles, with spokes linking to each other.
94```mermaid
95graph TD
96 HUB["SEO Guide<br/>(Hub Page)"]
98 HUB --> S1["Keyword Research"]
99 HUB --> S2["On-Page SEO"]
100 HUB --> S3["Technical SEO"]
101 HUB --> S4["Link Building"]
103 S1 -.-> S2
104 S2 -.-> S3
105 S3 -.-> S4
107 style HUB fill:#f9f,stroke:#333,stroke-width:2px
108```
110Legend:
111- Solid lines = primary hub-spoke links
112- Dashed lines = cross-links between spokes
114---
Hub-and-Spoke Content Model
Shows a hub page connected to spoke articles, with spokes linking to each other.
graph TD
HUB["SEO Guide<br/>(Hub Page)"]
HUB --> S1["Keyword Research"]
HUB --> S2["On-Page SEO"]
HUB --> S3["Technical SEO"]
HUB --> S4["Link Building"]
S1 -.-> S2
S2 -.-> S3
S3 -.-> S4
style HUB fill:#f9f,stroke:#333,stroke-width:2pxLegend:
- Solid lines = primary hub-spoke links
- Dashed lines = cross-links between spokes
Raw lines 90 to 115
116## Internal Linking Flow
118Shows how different site sections link to each other.
120```mermaid
121graph LR
122 subgraph "Marketing"
123 HOME["Homepage"]
124 FEAT["Features"]
125 PRICE["Pricing"]
126 end
128 subgraph "Content"
129 BLOG["Blog"]
130 GUIDE["Guides"]
131 CASE["Case Studies"]
132 end
134 subgraph "Product"
135 DOCS["Docs"]
136 API["API Ref"]
137 CHANGE["Changelog"]
138 end
140 BLOG --> FEAT
141 BLOG --> CASE
142 CASE --> FEAT
143 CASE --> PRICE
144 FEAT --> DOCS
145 GUIDE --> BLOG
146 GUIDE --> DOCS
147 HOME --> FEAT
148 HOME --> BLOG
149 HOME --> CASE
150```
152---
Internal Linking Flow
Shows how different site sections link to each other.
graph LR
subgraph "Marketing"
HOME["Homepage"]
FEAT["Features"]
PRICE["Pricing"]
end
subgraph "Content"
BLOG["Blog"]
GUIDE["Guides"]
CASE["Case Studies"]
end
subgraph "Product"
DOCS["Docs"]
API["API Ref"]
CHANGE["Changelog"]
end
BLOG --> FEAT
BLOG --> CASE
CASE --> FEAT
CASE --> PRICE
FEAT --> DOCS
GUIDE --> BLOG
GUIDE --> DOCS
HOME --> FEAT
HOME --> BLOG
HOME --> CASERaw lines 116 to 153
154## Before/After Restructuring
156Compare current and proposed site structures side by side.
158```mermaid
159graph TD
160 subgraph "Before"
161 B_HOME["Homepage"] --> B_P1["Page 1"]
162 B_HOME --> B_P2["Page 2"]
163 B_HOME --> B_P3["Page 3"]
164 B_HOME --> B_P4["Page 4"]
165 B_HOME --> B_P5["Page 5"]
166 B_HOME --> B_P6["Page 6"]
167 B_HOME --> B_P7["Page 7"]
168 B_HOME --> B_P8["Page 8"]
169 end
171 subgraph "After"
172 A_HOME["Homepage"] --> A_S1["Features"]
173 A_HOME --> A_S2["Resources"]
174 A_HOME --> A_S3["Company"]
175 A_S1 --> A_P1["Feature A"]
176 A_S1 --> A_P2["Feature B"]
177 A_S2 --> A_P3["Blog"]
178 A_S2 --> A_P4["Guides"]
179 A_S3 --> A_P5["About"]
180 A_S3 --> A_P6["Contact"]
181 end
182```
184---
Before/After Restructuring
Compare current and proposed site structures side by side.
graph TD
subgraph "Before"
B_HOME["Homepage"] --> B_P1["Page 1"]
B_HOME --> B_P2["Page 2"]
B_HOME --> B_P3["Page 3"]
B_HOME --> B_P4["Page 4"]
B_HOME --> B_P5["Page 5"]
B_HOME --> B_P6["Page 6"]
B_HOME --> B_P7["Page 7"]
B_HOME --> B_P8["Page 8"]
end
subgraph "After"
A_HOME["Homepage"] --> A_S1["Features"]
A_HOME --> A_S2["Resources"]
A_HOME --> A_S3["Company"]
A_S1 --> A_P1["Feature A"]
A_S1 --> A_P2["Feature B"]
A_S2 --> A_P3["Blog"]
A_S2 --> A_P4["Guides"]
A_S3 --> A_P5["About"]
A_S3 --> A_P6["Contact"]
endRaw lines 154 to 185
186## Color-Coding Conventions
188Use styles to highlight page status, priority, or type.
190```mermaid
191graph TD
192 HOME["Homepage"] --> FEAT["Features"]
193 HOME --> PRICE["Pricing"]
194 HOME --> BLOG["Blog"]
195 HOME --> NEW["New Section"]
196 HOME --> REMOVE["Deprecated Page"]
198 FEAT --> F1["Existing Feature"]
199 FEAT --> F2["New Feature"]
201 style HOME fill:#4CAF50,color:#fff
202 style PRICE fill:#4CAF50,color:#fff
203 style FEAT fill:#4CAF50,color:#fff
204 style BLOG fill:#4CAF50,color:#fff
205 style F1 fill:#4CAF50,color:#fff
206 style NEW fill:#2196F3,color:#fff
207 style F2 fill:#2196F3,color:#fff
208 style REMOVE fill:#f44336,color:#fff
209```
211Color key:
212- **Green** (`#4CAF50`): Existing pages (no changes)
213- **Blue** (`#2196F3`): New pages to create
214- **Red** (`#f44336`): Pages to remove or redirect
215- **Yellow** (`#FFC107`): Pages to restructure or move
216- **Purple** (`#9C27B0`): High-priority / CTA pages
Color-Coding Conventions
Use styles to highlight page status, priority, or type.
graph TD
HOME["Homepage"] --> FEAT["Features"]
HOME --> PRICE["Pricing"]
HOME --> BLOG["Blog"]
HOME --> NEW["New Section"]
HOME --> REMOVE["Deprecated Page"]
FEAT --> F1["Existing Feature"]
FEAT --> F2["New Feature"]
style HOME fill:#4CAF50,color:#fff
style PRICE fill:#4CAF50,color:#fff
style FEAT fill:#4CAF50,color:#fff
style BLOG fill:#4CAF50,color:#fff
style F1 fill:#4CAF50,color:#fff
style NEW fill:#2196F3,color:#fff
style F2 fill:#2196F3,color:#fff
style REMOVE fill:#f44336,color:#fffColor key:
- Green (
#4CAF50): Existing pages (no changes) - Blue (
#2196F3): New pages to create - Red (
#f44336): Pages to remove or redirect - Yellow (
#FFC107): Pages to restructure or move - Purple (
#9C27B0): High-priority / CTA pages