diff --git a/DEV_LOG.md b/DEV_LOG.md index 061fe91..6480db7 100644 --- a/DEV_LOG.md +++ b/DEV_LOG.md @@ -29,6 +29,14 @@ - **Task 18**: 右侧动态高亮 TOC 目录组件 (`TOC.astro`) 构建完成,支持滚动监听与活跃章节高亮。 - **Task 19**: TOC 集成至文档路由,实现响应式三栏布局。 +--- +- **Task 20**: 代码块增强组件(`CodeBlockHelper.astro`)构建完成,支持一键复制与语言标签展示。 +- **Task 21**: 全局挂载代码块增强组件至 `BaseLayout.astro`,全站文档生效。 + +- **Task 22**: 引入 `ClientRouter` 开启全站无缝路由过渡,实现 SPA 体验。 + +- **Task 23**: 移除 main 标签的 overflow 限制,修复 TOC 无法滚动跟随的 CSS 陷阱,并优化悬浮间距。 + --- **🔄 当前状态**: 系统架构稳定,UI 交互流畅。所有功能模块已固化至 Git 版本控制。 **📝 下一步计划**: 等待分配新需求(如:全文搜索、SEO 优化等)。 \ No newline at end of file diff --git a/src/components/TOC.astro b/src/components/TOC.astro index 0cb59f0..e40c9a8 100644 --- a/src/components/TOC.astro +++ b/src/components/TOC.astro @@ -3,7 +3,7 @@ const { headings } = Astro.props; // 仅提取 h2 和 h3 作为目录 const toc = headings.filter((h: any) => h.depth === 2 || h.depth === 3); --- -