feat: implement dynamic routing

This commit is contained in:
kennethcheng 2026-04-27 13:31:45 +08:00
parent d407e4ae49
commit f3142f4dc8
4 changed files with 20 additions and 4 deletions

View File

@ -5,3 +5,4 @@ Task 4: Markdown 解析底层依赖安装完成
Task 5: astro.config.mjs 引擎装配完成 Task 5: astro.config.mjs 引擎装配完成
Task 7: BaseLayout 闭环 Task 7: BaseLayout 闭环
Task 8 修正:已通过替换 @tailwindcss/vite 解决配置文件路径问题,构建成功。 Task 8 修正:已通过替换 @tailwindcss/vite 解决配置文件路径问题,构建成功。
核心渲染系统闭环成功

View File

@ -1,3 +1,7 @@
---
title: "2026-04-26 测试文档"
---
| 小时 | 平均输入t/s | 平均输出t/s | 输入token总数 | 输出token总数 | token总数 | | 小时 | 平均输入t/s | 平均输出t/s | 输入token总数 | 输出token总数 | token总数 |
| :---: | :---: | :---: | :---: | :---: | :---: | | :---: | :---: | :---: | :---: | :---: | :---: |
| 00 | 216.04 | 26.08 | 115,105 | 5,701 | 120,806 | | 00 | 216.04 | 26.08 | 115,105 | 5,701 | 120,806 |

View File

@ -1,5 +1,14 @@
--- ---
title: "测试文档" title: "极致渲染测试"
--- ---
# 标题 # 欢迎来到我的文档
测试公式:$E=mc^2$
测试一个数学公式:
$$
E = mc^2
$$
测试代码高亮:
```javascript
console.log("Hello Astro!");
```

View File

@ -10,5 +10,7 @@ const { doc } = Astro.props;
const { Content } = await render(doc); const { Content } = await render(doc);
--- ---
<BaseLayout title={doc.data.title}> <BaseLayout title={doc.data.title}>
<main class="prose dark:prose-invert mx-auto"><Content /></main> <main class="prose prose-lg dark:prose-invert mx-auto">
<Content />
</main>
</BaseLayout> </BaseLayout>