CLAUDE.md — liweinan.github.io 技术博客项目规则

CLAUDE.md — liweinan.github.io 技术博客项目规则

博客文章写作规则

文件命名

Front Matter

.mermaid-container:hover { opacity: 0.8; }

.mermaid-container svg { max-width: 100%; height: auto; display: block; }

/* Modal overlay */ .mermaid-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); animation: fadeIn 0.3s; }

.mermaid-modal.active { display: flex; align-items: center; justify-content: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Modal content */ .mermaid-modal-content { position: relative; width: 90vw; height: 90vh; overflow: hidden; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); display: flex; align-items: center; justify-content: center; }

.mermaid-modal-diagram { transform-origin: center center; transition: transform 0.2s ease; display: inline-block; min-width: 100%; cursor: grab; user-select: none; }

.mermaid-modal-diagram.dragging { cursor: grabbing; transition: none; }

.mermaid-modal-diagram svg { width: 100%; height: auto; display: block; pointer-events: none; }

/* Control buttons */ .mermaid-controls { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; z-index: 10000; }

.mermaid-btn { background: rgba(255, 255, 255, 0.9); border: 1px solid #ddd; border-radius: 4px; padding: 8px 12px; cursor: pointer; font-size: 14px; transition: background 0.2s; color: #333; font-weight: 500; }

.mermaid-btn:hover { background: white; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }

/* Close button */ .mermaid-close { background: #f44336; color: white; border: none; }

.mermaid-close:hover { background: #d32f2f; }

/* Zoom indicator */ .mermaid-zoom-level { position: absolute; bottom: 20px; left: 20px; background: rgba(0, 0, 0, 0.7); color: white; padding: 6px 12px; border-radius: 4px; font-size: 14px; z-index: 10000; } </style>

`

写作风格

代码块规范

引用规范

Mermaid 图表

Git 提交

My Github Page: https://github.com/liweinan

B站视频: https://space.bilibili.com/21947620

Powered by Jekyll and Theme by solid

If you have any question want to ask or find bugs regarding with my blog posts, please report it here:
https://github.com/liweinan/liweinan.github.io/issues