在任意项目中通过 /blog-note 命令快速将技术笔记记录到 blog 知识库,自动创建 markdown 文件并更新导航配置。
背景
blog 项目是一个基于 VuePress 的个人技术知识库,按分类(http/vue/react/css/js/git/performance/canvas/regExp/softExamination/tool/weixin)组织文档。
每次手写笔记需要:
- 在
docs/document/{category}/下创建 markdown 文件 - 编写 frontmatter
- 更新
navbar.ts添加导航入口 - 更新
sidebar.ts添加侧边栏链接
大约 2 分钟
