From f3142f4dc8f1bdd5cb009125a65dcfd7e779288e Mon Sep 17 00:00:00 2001 From: kennethcheng Date: Mon, 27 Apr 2026 13:31:45 +0800 Subject: [PATCH] feat: implement dynamic routing --- DEV_LOG.md | 1 + src/content/docs/2026-04-26.md | 4 ++++ src/content/docs/test.md | 15 ++++++++++++--- src/pages/docs/[...slug].astro | 4 +++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/DEV_LOG.md b/DEV_LOG.md index ad25346..96bf1ab 100644 --- a/DEV_LOG.md +++ b/DEV_LOG.md @@ -5,3 +5,4 @@ Task 4: Markdown 解析底层依赖安装完成 Task 5: astro.config.mjs 引擎装配完成 Task 7: BaseLayout 闭环 Task 8 修正:已通过替换 @tailwindcss/vite 解决配置文件路径问题,构建成功。 +核心渲染系统闭环成功 diff --git a/src/content/docs/2026-04-26.md b/src/content/docs/2026-04-26.md index c8d89d1..8716b76 100644 --- a/src/content/docs/2026-04-26.md +++ b/src/content/docs/2026-04-26.md @@ -1,3 +1,7 @@ +--- +title: "2026-04-26 测试文档" +--- + | 小时 | 平均输入t/s | 平均输出t/s | 输入token总数 | 输出token总数 | token总数 | | :---: | :---: | :---: | :---: | :---: | :---: | | 00 | 216.04 | 26.08 | 115,105 | 5,701 | 120,806 | diff --git a/src/content/docs/test.md b/src/content/docs/test.md index 065a758..b333b3b 100644 --- a/src/content/docs/test.md +++ b/src/content/docs/test.md @@ -1,5 +1,14 @@ --- -title: "测试文档" +title: "极致渲染测试" --- -# 标题 -测试公式:$E=mc^2$ +# 欢迎来到我的文档 + +测试一个数学公式: +$$ +E = mc^2 +$$ + +测试代码高亮: +```javascript +console.log("Hello Astro!"); +``` diff --git a/src/pages/docs/[...slug].astro b/src/pages/docs/[...slug].astro index 26b31fd..6c81067 100644 --- a/src/pages/docs/[...slug].astro +++ b/src/pages/docs/[...slug].astro @@ -10,5 +10,7 @@ const { doc } = Astro.props; const { Content } = await render(doc); --- -
+
+ +