CLAUDE

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

概述

这是 zmurder.github.io 博客的 Hexo 源码仓库。博客使用 Hexo + NexT 主题,内容主要为技术笔记,涵盖 CUDA、TensorRT、DeepLearning、Linux、ESP32、RaspberryPi 等领域。

Hexo 常用命令

1
2
3
4
5
hexo server      # 本地预览 (http://localhost:4000)
hexo generate # 生成静态文件到 public/
hexo deploy # 部署到 GitHub Pages
hexo clean # 清除缓存和生成的文件
hexo g -d # 生成并部署

目录结构

  • source/_posts/ — 所有博客文章的 Markdown 源文件,按子目录分类(如 CUDA/TensorRT/esp32/ 等)
  • source/fragment/Markdown数学公式/ — 数学公式的 SVG 组件(供 Markdown 引用)
  • hexo/ — 有关 Hexo 博客搭建和维护的文章
  • themes/next/ — NexT 主题(子模块)
  • _config.yml — Hexo 主配置(urldeploytheme: next 等)

文章组织

  • 每篇文章放在 source/_posts/<category>/ 子目录下
  • post_asset_folder: true 开启后,创建文章时会自动生成同名文件夹存放图片
  • 文章通过 hexo-auto-categoryhexo-enhancer 根据目录路径自动生成分类
  • 标签在 _config.ymltags: 字段中定义,文章中出现对应关键词会自动打标签

部署

部署目标为 git@github.com:zmurder/zmurder.github.io.git,分支 master.deploy_git/ 为临时部署目录。