美化个人主页 README 并补充中文 CLAUDE.md
- README 改为简洁留白风:新增渐变 Banner 横幅,统一等宽标题与莫兰迪配色徽章 - 微信公众号、创作者认证声明折叠进 details,首屏更简洁 - 保留 profile 下由 Actions 自动更新的统计卡片 - 新增 CLAUDE.md,记录仓库用途与两个 GitHub Actions 的自动化行为 Co-Authored-By: daitcl <daitcl@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# CLAUDE.md
|
||||
|
||||
本文件为 Claude Code (claude.ai/code) 在本仓库中工作时提供指引。
|
||||
|
||||
## 这个仓库是什么
|
||||
|
||||
这是一个 **GitHub 个人主页 README 仓库**(`daitcl/daitcl`,即与 GitHub 用户名同名的特殊仓库)。它不是一个软件项目:没有源代码、构建系统、测试套件或 Lint 工具。该仓库的唯一用途是渲染 https://github.com/daitcl 上展示的个人主页。
|
||||
|
||||
- `README.md` — 主页内容,使用中文编写,会直接渲染为 GitHub 个人主页页面。包含作者 CSDN 博客、个人网站(daitcc.top)、爱发电赞助、邮箱、微信公众号等链接。
|
||||
- `profile/stats.svg`、`profile/top-langs.svg` — README 通过相对路径(`./profile/stats.svg`)引用的 GitHub 统计卡片。
|
||||
- `.github/workflows/` — 仓库中唯一有实际意义的"代码",两个 GitHub Actions 负责主页的自动化。
|
||||
|
||||
## GitHub Actions(需要了解的自动化)
|
||||
|
||||
### `.github/workflows/stats.yml` — 重新生成统计卡片
|
||||
- 定时每天 UTC 03:00 运行,也支持 `workflow_dispatch` 手动触发。
|
||||
- 使用 `readme-tools/github-readme-stats-action@v1` 重新生成 `profile/stats.svg` 和 `profile/top-langs.svg`。
|
||||
- 自动提交这些 SVG(提交信息为 "Update README cards")并推送回仓库——因此 `profile/*.svg` 可能在 main 分支上自动变化,无需本地修改。请将这两个文件视为**生成产物**,不要手动编辑。
|
||||
|
||||
### `.github/workflows/sync.yml` — 镜像推送到 Gitee 和 GitCode
|
||||
- 在**任意分支上的每次 push** 时触发(另支持 `workflow_dispatch`)。
|
||||
- 如果 Gitee / GitCode 上不存在同名仓库,会通过各自的 V5 REST API 自动创建公开仓库,然后 **强制推送** 分支和标签到两个镜像。
|
||||
- 需要在 GitHub 仓库中配置 `GITEE_TOKEN` 和 `GITCODE_TOKEN` 两个 Secret。
|
||||
- 含义:向本 GitHub 仓库推送任意提交都会立即强制镜像到 Gitee / GitCode。只有尚未推送的本地提交是安全的;请谨慎推送临时分支或改写历史。
|
||||
|
||||
## 编辑工作流
|
||||
|
||||
- 内容变更只涉及 Markdown/SVG:编辑 `README.md`,提交并推送即可——`sync.yml` 会自动处理 Gitee/GitCode 的镜像同步。
|
||||
- 要刷新统计卡片时,通过 GitHub 界面触发工作流(Actions → Update README cards → Run workflow)。没有本地的工具可以重新生成这些 SVG。
|
||||
|
||||
## 约定
|
||||
|
||||
- README 和提交信息使用**中文**。
|
||||
- 该仓库曾在 public/private 之间切换过;README 中包含爱发电创作者认证声明,要求个人主页保持公开。
|
||||
@@ -1,68 +1,74 @@
|
||||
<!--
|
||||
GitHub 个人主页 README
|
||||
GitHub 个人主页 README · 简洁留白风
|
||||
自动展示于 https://github.com/daitcl
|
||||
-->
|
||||
|
||||
<h1 align="center">👋 你好,我是 dait</h1>
|
||||
<img src="https://capsule-render.vercel.app/api?type=soft&color=gradient&customColorList=12,20,24&height=190§ion=header&text=dait&fontSize=62&fontColor=ffffff&fontAlignY=42&desc=%E7%83%AD%E7%88%B1%E5%88%86%E4%BA%AB%E4%B8%8E%E5%88%9B%E9%80%A0%20%C2%B7%20%E6%AC%A2%E8%BF%8E%E6%9D%A5%E5%88%B0%E6%88%91%E7%9A%84%E6%8A%80%E6%9C%AF%E5%B0%8F%E6%A0%88&descAlignY=64&descSize=16" width="100%" alt="dait" />
|
||||
|
||||
<h3 align="center">
|
||||
<samp>你好,我是 dait 👋</samp>
|
||||
</h3>
|
||||
|
||||
<p align="center">
|
||||
<img src="https://readme-typing-svg.demolab.com?font=Fira+Code&pause=1000¢er=true&width=435&lines=热爱分享与创造;欢迎来到我的技术小栈" alt="Typing SVG" />
|
||||
<samp>热爱编程 · 乐于分享 · 相信「输出是最好的输入」</samp>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://blog.csdn.net/qq_39538318" target="_blank"><img src="https://img.shields.io/badge/CSDN-博客-red?logo=csdn" /></a>
|
||||
<a href="https://www.daitcc.top"><img src="https://img.shields.io/badge/Website-daitcc.top-blue?style=flat-square" alt="个人网站"></a>
|
||||
<a href="https://github.com/daitcl" target="_blank"><img src="https://img.shields.io/badge/GitHub-181717?logo=github" /></a>
|
||||
<a href="https://ifdian.net/a/daitcc" target="_blank"><img src="https://img.shields.io/badge/爱发电-赞助-946ce6?logo=afdian" /></a>
|
||||
<a href="mailto:daitcctop@163.com"><img src="https://img.shields.io/badge/邮箱-daitcctop@163.com-EA4335?logo=gmail" /></a>
|
||||
<a href="https://blog.csdn.net/qq_39538318"><img src="https://img.shields.io/badge/CSDN-博客-9e4a4a?style=flat-square&logo=csdn&logoColor=white" alt="CSDN" /></a>
|
||||
<a href="https://www.daitcc.top"><img src="https://img.shields.io/badge/网站-daitcc.top-6b7f8c?style=flat-square" alt="Website" /></a>
|
||||
<a href="https://github.com/daitcl"><img src="https://img.shields.io/badge/GitHub-@daitcl-24292f?style=flat-square&logo=github&logoColor=white" alt="GitHub" /></a>
|
||||
<a href="https://ifdian.net/a/daitcc"><img src="https://img.shields.io/badge/爱发电-赞助-8a7ca8?style=flat-square" alt="爱发电" /></a>
|
||||
<a href="mailto:daitcctop@163.com"><img src="https://img.shields.io/badge/邮箱-daitcctop@163.com-9e4a4a?style=flat-square&logo=gmail&logoColor=white" alt="Email" /></a>
|
||||
</p>
|
||||
|
||||
<br />
|
||||
|
||||
---
|
||||
|
||||
## 👋 关于我
|
||||
<h3><samp> 关于我</samp></h3>
|
||||
|
||||
你好!我是 **dait**,一名热爱编程与分享的开发者。
|
||||
这里是我的**技术小栈**,记录着我一路的学习脚印与实践心得——无论是深入源码的笔记、项目落地的复盘,还是偶尔发现的“奇技淫巧”,我都会认真整理并分享出来。
|
||||
|
||||
我相信 **输出是最好的输入**,也希望通过开放的文字,与同行的你交流碰撞,一起成长。
|
||||
这里是我的 **技术小栈**,记录着一路走来的学习脚印与实践心得——无论是深入源码的笔记、项目落地的复盘,还是偶尔发现的「奇技淫巧」,我都会认真整理并分享出来。
|
||||
|
||||
<br />
|
||||
|
||||
---
|
||||
|
||||
## 📝 为什么写博客?
|
||||
<h3><samp> 为什么写博客</samp></h3>
|
||||
|
||||
- **记录**:把模糊的“我知道”变成清晰的“我能写出来”
|
||||
- **复盘**:每完成一个项目或解决一个难题,沉淀为可复用的经验
|
||||
- **分享**:也许我踩过的坑,能帮你省下一些时间
|
||||
- **连接**:通过文字认识更多有趣的朋友和同行
|
||||
| | |
|
||||
| :-- | :-- |
|
||||
| **记录** | 把模糊的「我知道」变成清晰的「我能写出来」 |
|
||||
| **复盘** | 每完成一个项目或解决一个难题,沉淀为可复用的经验 |
|
||||
| **分享** | 也许我踩过的坑,能帮你省下一些时间 |
|
||||
| **连接** | 通过文字认识更多有趣的朋友和同行 |
|
||||
|
||||
<br />
|
||||
|
||||
---
|
||||
|
||||
## 🔗 来找我
|
||||
<h3><samp> 来找我</samp></h3>
|
||||
|
||||
- **CSDN**:[daitcl的博客](https://blog.csdn.net/qq_39538318)
|
||||
- **GitHub**:[@daitcl](https://github.com/daitcl) — (你正在这里)
|
||||
- **爱发电**:[爱发电主页](https://ifdian.net/a/daitcc) — 欢迎支持、分享或合作
|
||||
- **个人网站**:[daitcc.top](https://www.daitcc.top) — 个人博客、项目展示、联系我
|
||||
- **邮箱**:daitcctop@163.com — 欢迎交流、指正或闲聊
|
||||
- **微信公众号**:扫一扫下方二维码,获取更新推送
|
||||
<p>
|
||||
<a href="https://blog.csdn.net/qq_39538318">CSDN</a> ·
|
||||
<a href="https://github.com/daitcl">GitHub</a> ·
|
||||
<a href="https://www.daitcc.top">个人网站</a> ·
|
||||
<a href="https://ifdian.net/a/daitcc">爱发电</a> ·
|
||||
<a href="mailto:daitcctop@163.com">邮箱</a>
|
||||
</p>
|
||||
|
||||
<details>
|
||||
<summary><samp> 微信公众号</samp></summary>
|
||||
<br />
|
||||
<img src="https://raw.gitcode.com/daitcl/picgo/raw/main/wechat_qrcode.jpg" alt="微信公众号二维码" width="150" />
|
||||
</details>
|
||||
|
||||
<br />
|
||||
|
||||
---
|
||||
|
||||
## 📢 创作者认证声明
|
||||
|
||||
本人已入驻 **爱发电** 平台,并依据平台“创作者认证”流程要求,在此公开宣传我的爱发电主页:
|
||||
|
||||
👉 **https://ifdian.net/a/daitcc**
|
||||
|
||||
同时,我在以下最常使用的平台中也已公开本主页(用于交叉验证):
|
||||
- **个人网站**:[daitcc.top](https://www.daitcc.top) — 个人签名/置顶文章包含爱发电链接
|
||||
- **GitHub**:[daitcl](https://github.com/daitcl) — 本 README 中已包含爱发电链接
|
||||
- **微信公众号**:菜单栏已配置“爱发电”入口
|
||||
|
||||
---
|
||||
|
||||
## 📊 GitHub 统计
|
||||
<h3><samp> GitHub 统计</samp></h3>
|
||||
|
||||
<p align="center">
|
||||
<img src="./profile/stats.svg" alt="GitHub Stats" height="170" />
|
||||
@@ -70,10 +76,30 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="https://komarev.com/ghpvc/?username=daitcl&color=blue&style=flat" alt="Profile Views" />
|
||||
<img src="https://komarev.com/ghpvc/?username=daitcl&color=8a7ca8&style=flat-square" alt="Profile Views" />
|
||||
</p>
|
||||
|
||||
<br />
|
||||
|
||||
---
|
||||
|
||||
> “独行快,众行远。” 感谢你的每一次阅读、点赞和分享。
|
||||
> 期待在技术道路上,与你并肩前行。
|
||||
<details>
|
||||
<summary><samp> 创作者认证声明</samp></summary>
|
||||
<br />
|
||||
|
||||
本人已入驻 **爱发电** 平台,并依据平台「创作者认证」流程要求,在此公开宣传我的爱发电主页:
|
||||
|
||||
👉 **https://ifdian.net/a/daitcc**
|
||||
|
||||
同时,我在以下最常使用的平台中也已公开本主页(用于交叉验证):
|
||||
- **个人网站**:[daitcc.top](https://www.daitcc.top) — 个人签名/置顶文章包含爱发电链接
|
||||
- **GitHub**:[daitcl](https://github.com/daitcl) — 本 README 中已包含爱发电链接
|
||||
- **微信公众号**:菜单栏已配置「爱发电」入口
|
||||
|
||||
</details>
|
||||
|
||||
<br />
|
||||
|
||||
<p align="center">
|
||||
<samp>「独行快,众行远。」<br />感谢你的每一次阅读、点赞和分享。</samp>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user