chore: todo update

This commit is contained in:
hypercross 2026-02-26 14:16:57 +08:00
parent c6889ac65d
commit b370e6c302
1 changed files with 4 additions and 7 deletions

11
todo.md
View File

@ -1,10 +1,7 @@
# todo # todo
## cli ## App
- [ ] 实现`serve`命令 - [ ] 增强`data-loader`的功能,允许其生成目录树以及标题结构
- [ ] 将指定目录下的所有文件以静态文件服务器提供出来 - [ ] 添加一个侧边栏组件,用于显示目录树
- [ ] 静态文件服务器在找不到路径下文件时,回退到`dist/web` - [ ] 在导航里添加按钮用于呼出侧边栏目录
- [ ] 扫描目录内的`.md`文件,生成索引,其内容匹配`import.meta.glob`的格式,即`{'./file.md': '# content'}`
- [ ] 将索引挂载到`/__CONTENT_INDEX.json`
- [ ] 修改`data-loader`,使其在`cli`环境不依赖`setDataIndex`,而是从`/__CONTENT_INDEX.json`获取索引