<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>测试 on LeafCxy's Blog</title><link>https://leafcxy.github.io/tags/%E6%B5%8B%E8%AF%95/</link><description>Recent content in 测试 on LeafCxy's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 11 Aug 2026 10:56:00 +0800</lastBuildDate><atom:link href="https://leafcxy.github.io/tags/%E6%B5%8B%E8%AF%95/index.xml" rel="self" type="application/rss+xml"/><item><title>Mermaid 图表测试</title><link>https://leafcxy.github.io/posts/mermaid-test/</link><pubDate>Tue, 11 Aug 2026 10:56:00 +0800</pubDate><guid>https://leafcxy.github.io/posts/mermaid-test/</guid><description>&lt;p&gt;这是一篇用于验证 Mermaid 图表功能是否正常工作的测试文章。&lt;/p&gt;
&lt;!-- more --&gt;
&lt;h2 id="流程图-flowchart"&gt;流程图 (Flowchart)&lt;/h2&gt;
&lt;div class="mermaid" align="center"&gt;graph TD
A[开始] --&gt; B{是否准备好？}
B --&gt;|是| C[执行任务]
B --&gt;|否| D[等待]
D --&gt; B
C --&gt; E[检查结果]
E --&gt;|通过| F[完成]
E --&gt;|失败| G[修复问题]
G --&gt; C&lt;/div&gt;
&lt;h2 id="时序图-sequence-diagram"&gt;时序图 (Sequence Diagram)&lt;/h2&gt;
&lt;div class="mermaid" align="center"&gt;sequenceDiagram
participant 客户端
participant 服务端
participant 数据库
客户端-&gt;&gt;服务端: GET /api/posts
服务端-&gt;&gt;数据库: SELECT * FROM posts
数据库--&gt;&gt;服务端: 返回数据
服务端--&gt;&gt;客户端: JSON 响应&lt;/div&gt;
&lt;h2 id="类图-class-diagram"&gt;类图 (Class Diagram)&lt;/h2&gt;
&lt;div class="mermaid" align="center"&gt;classDiagram
class Blog {
+String title
+String description
+getPosts() List
+publish() void
}
class Post {
+String title
+Date date
+String content
+String[] tags
+render() String
}
class Author {
+String name
+String email
+String avatar
}
Blog "1" --&gt; "*" Post : 包含
Post "*" --&gt; "1" Author : 属于&lt;/div&gt;
&lt;h2 id="甘特图-gantt-chart"&gt;甘特图 (Gantt Chart)&lt;/h2&gt;
&lt;div class="mermaid" align="center"&gt;gantt
title 博客搭建计划
dateFormat YYYY-MM-DD
section 基础设施
初始化 Hugo 项目 :done, infra1, 2025-07-01, 1d
配置 PaperMod 主题 :done, infra2, 2025-07-02, 1d
配置 GitHub Actions :done, infra3, 2025-07-03, 1d
section 内容创作
写第一篇文章 :done, content1, 2025-07-15, 1d
添加搜索和归档 :done, content2, 2025-07-20, 2d
Mermaid 测试 :active, content3, 2026-08-11, 1d
section 未来计划
持续写作 : future1, 2026-08-12, 30d&lt;/div&gt;
&lt;h2 id="状态图-state-diagram"&gt;状态图 (State Diagram)&lt;/h2&gt;
&lt;div class="mermaid" align="center"&gt;stateDiagram-v2
[*] --&gt; 草稿
草稿 --&gt; 审核中 : 提交审核
审核中 --&gt; 已发布 : 审核通过
审核中 --&gt; 草稿 : 退回修改
已发布 --&gt; 已归档 : 归档
已归档 --&gt; [*]&lt;/div&gt;
&lt;hr&gt;
&lt;p&gt;如果以上所有图表都能正常渲染，说明 Mermaid 功能配置正确。&lt;/p&gt;</description></item></channel></rss>