From fa911a5f21530be14365dfac5dfe6a6e33d1b72f Mon Sep 17 00:00:00 2001
From: cflmy
Date: Wed, 2 Dec 2026 14:25:41 +0800
Subject: [PATCH] feat(site): implement approved Marqdo website design
Align the homepage grid and document demo, render the traced Three.js hero, and reorganize the ecosystem, research, and download pages. Refs cflmy/marqdo#84 and #1.
---
docs/BASELINE.md | 8 +
index.mq.md | 4 +-
package-lock.json | 67 ++++-
package.json | 4 +-
scripts/verify-dist.mjs | 11 +-
src/components/Demo.astro | 31 +--
src/components/EcosystemMap.astro | 42 +++
src/components/Footer.astro | 4 +-
src/components/Header.astro | 6 +-
src/components/HeroArt.astro | 60 ++++
src/components/Home.astro | 135 +++------
src/components/Releases.astro | 37 ++-
src/components/Section.astro | 23 --
src/components/pages/DownloadPage.astro | 62 ++---
src/components/pages/EcosystemPage.astro | 156 ++++++-----
src/components/pages/ResearchPage.astro | 109 ++++----
src/layouts/Site.astro | 16 +-
src/lib/hero-art.ts | 9 +
src/lib/hero-particles.ts | 126 +++++++++
src/lib/hero-points.json | 332 +++++++++++++++++++++++
src/pages/assets/hero-particles.svg.ts | 9 +
src/styles/components.css | 60 ++--
src/styles/demo.css | 34 ++-
src/styles/home.css | 125 ++++-----
src/styles/layout.css | 3 +-
src/styles/site.css | 227 ++++++++++++++--
src/styles/typography.css | 8 +-
tests/site.spec.mjs | 114 +++++++-
28 files changed, 1337 insertions(+), 485 deletions(-)
create mode 100644 src/components/EcosystemMap.astro
create mode 100644 src/components/HeroArt.astro
delete mode 100644 src/components/Section.astro
create mode 100644 src/lib/hero-art.ts
create mode 100644 src/lib/hero-particles.ts
create mode 100644 src/lib/hero-points.json
create mode 100644 src/pages/assets/hero-particles.svg.ts
diff --git a/docs/BASELINE.md b/docs/BASELINE.md
index 8074ea9..7611f47 100644
--- a/docs/BASELINE.md
+++ b/docs/BASELINE.md
@@ -46,3 +46,11 @@
- 生产域名 `https://marqdo.com/` 复核 27/27 通过:首页 H1、页脚两栏中轴误差 0 CSS px、头像位于姓名之上、演示模式切换与计算、非法输入阻断、Wiki 直达与 `/docs/` 迁移、360/390/768/1024/1440 px 无横向溢出、真实 404。
- `www.marqdo.com` 的 DNS 仍走 `a1.initaf.com`(ESA)链路,实测已返回本次构建(12,175 B、含新页脚与演示);正式解析、证书与备案归属仍由维护者确认。
- 当前站点为未接入公开发行数据的构建:`noindex`,下载页显示「尚未接入主仓公开发行快照」,不展示虚构版本或资产。
+
+## 官网设计稿对齐候选(2026-12-02)
+
+- 责任仓为 `cflmy/marqdo-site`,按 [官网 #1](https://git.cflmy.cn/cflmy/marqdo-site/issues/1) 和 [视觉工单 #84](https://git.cflmy.cn/cflmy/marqdo/issues/84) 验收。基线 SHA 为 `ff63306610491fbb932ed99b3674bc4be8683e0c`。在 1440 px Chromium 中打开基线首页,导航与首屏的外框为 x=120 px、宽 1200 px,演示框为 x=40 px、宽 1360 px。
+- 候选按批准的中文浅色稿实现首页(桌面和移动)、生态、研究和下载。验收点覆盖共同外框 x=120 px / 1200 px、桌面演示 38:34:28、移动端标题与操作先于静态插画、生态按职责分组与真实依赖、研究锚点和下载产品选择。中文与英文、深浅主题使用同一套布局。真实文稿、Logo、头像、站点身份和发布快照继续由现有输入提供。图稿按静态版式参照,实际字体渲染、动效帧和真实内容会产生像素差异。
+- Linux x86_64,Node.js 24.22.3、npm 11.19.1。以下命令在候选上退出码均为 0:`npm ci --offline --no-audit`、`npm run check`(36 文件,无诊断)、`npm test`(5 项)、`python3 -B -m unittest discover -s tests -p '*_test.py'`(11 项)、`bash scripts/prepare-example.sh`、`npm run build`(21 个页面)、`npm run test:e2e -- --workers=2`(Chromium,18 项)。固定 CLI/View 归档通过摘要校验,圆面积 0、1、3 的真实调用和 View 静态导出通过。
+- Chromium 截图覆盖 1440 px 桌面及 390 px 移动首页、生态、研究、下载和深色首页。用 SwiftShader WebGL 2 渲染两次不同粒子帧,再触发上下文丢失验证海报恢复。手机、减少动态效果偏好及无 WebGL 的静态路径已验收。构建首页入口脚本 2688 B gzip,静态海报 20041 B gzip,延迟加载的 Three.js 场景 147610 B gzip。Vite 仍会提示该延迟块的未压缩体积超过 500 kB。
+- 本地 `dist/index.html` SHA-256 为 `a850edff8a07a720d1eba419a4636e89f278f431c19c1bf12b336bc4cf65fdf3`。静态海报 SHA-256 为 `7b1a2c34ebed7f05203291ad6a78b7e1b1ff84e49562ec592be73ea8302bc57c`。候选 Woodpecker 与 EdgeOne 预览、生产发布为 UNVERIFIED。
diff --git a/index.mq.md b/index.mq.md
index 7f28543..8981316 100644
--- a/index.mq.md
+++ b/index.mq.md
@@ -15,9 +15,9 @@
## 视觉体系
-语义颜色、字体、容器和间距分别由 `src/styles/tokens.css`、`typography.css`、`layout.css`、`components.css` 定义;首页与三栏文稿演示的专用样式在 `home.css`、`demo.css`。页面不得自行引入色值、字号或宽度。
+语义颜色、字体、容器和间距分别由 `src/styles/tokens.css`、`typography.css`、`layout.css`、`components.css` 定义;首页与三栏文稿演示的专用样式在 `home.css`、`demo.css`。导航、主要页面内容与页脚共用 1200 CSS px 容器,窄屏保留至少 16 px 侧边距。
-首页保留「从一篇文稿开始」的源码 / 知识阅读 / 交互计算三栏演示与四种查看模式;宽屏默认并排,窄屏默认单栏但保留全部模式。浏览器演示使用固定圆面积公式,与 CLI 实测证据相互独立。
+首页保留「从一篇文稿开始」的源码 / 知识阅读 / 交互计算三栏演示与四种查看模式;宽屏默认 38:34:28 并排,窄屏默认「知识阅读」,四种模式均可切换。首屏的设计点阵同时提供静态海报与 Three.js 动效,宽屏可见且允许动画、支持 WebGL 2 时才加载动效模块。浏览器演示使用固定圆面积公式,与 CLI 实测证据相互独立。
## 运行
diff --git a/package-lock.json b/package-lock.json
index adfd3f0..e29fb87 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,12 +10,14 @@
"dependencies": {
"@astrojs/check": "0.9.12",
"astro": "7.4.14",
+ "three": "0.187.0",
"typescript": "6.0.3",
"zod": "4.6.7"
},
"devDependencies": {
"@playwright/test": "1.65.2",
- "@types/node": "24.19.4"
+ "@types/node": "24.19.4",
+ "@types/three": "0.187.0"
},
"engines": {
"node": "24.22.3"
@@ -714,6 +716,13 @@
"node": ">= 20.12.0"
}
},
+ "node_modules/@dimforge/rapier3d-compat": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz",
+ "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
"node_modules/@emmetio/abbreviation": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/@emmetio/abbreviation/-/abbreviation-2.3.3.tgz",
@@ -1783,6 +1792,13 @@
"integrity": "sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==",
"license": "MIT"
},
+ "node_modules/@tweenjs/tween.js": {
+ "version": "23.1.3",
+ "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz",
+ "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@tybys/wasm-util": {
"version": "0.10.5",
"resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.5.tgz",
@@ -1844,12 +1860,41 @@
"undici-types": ">=7.24.0 <7.24.7"
}
},
+ "node_modules/@types/stats.js": {
+ "version": "0.17.4",
+ "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz",
+ "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/three": {
+ "version": "0.187.0",
+ "resolved": "https://registry.npmjs.org/@types/three/-/three-0.187.0.tgz",
+ "integrity": "sha512-v+vKNarUtk4n2QRZ4+CN5ygMM0ARUjXjIQl0R/unMUfmStFeVqGbgqarbrpoGTXRZoulSH16ePrVJVxPJEbMUA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@dimforge/rapier3d-compat": "~0.12.0",
+ "@tweenjs/tween.js": "~23.1.3",
+ "@types/stats.js": "*",
+ "@types/webxr": ">=0.5.17",
+ "fflate": "~0.8.3",
+ "meshoptimizer": "~1.1.1"
+ }
+ },
"node_modules/@types/unist": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",
"license": "MIT"
},
+ "node_modules/@types/webxr": {
+ "version": "0.5.24",
+ "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz",
+ "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@ungap/structured-clone": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz",
@@ -2667,6 +2712,13 @@
}
}
},
+ "node_modules/fflate": {
+ "version": "0.8.3",
+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz",
+ "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/flattie": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/flattie/-/flattie-1.1.1.tgz",
@@ -3208,6 +3260,13 @@
"integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==",
"license": "CC0-1.0"
},
+ "node_modules/meshoptimizer": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-1.1.1.tgz",
+ "integrity": "sha512-oRFNWJRDA/WTrVj7NWvqa5HqE1t9MYDj2VaWirQCzCCrAd2GHrqR/sQezCxiWATPNlKTcRaPRHPJwIRoPBAp5g==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/micromark-util-character": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",
@@ -3962,6 +4021,12 @@
"url": "https://opencollective.com/svgo"
}
},
+ "node_modules/three": {
+ "version": "0.187.0",
+ "resolved": "https://registry.npmjs.org/three/-/three-0.187.0.tgz",
+ "integrity": "sha512-Qiu7R+Cmh8CstZsY1uJOSWnVlfo7ZtNLV7mF8Jltk3LB3AtDu9cRZlcnRKkAk8Y4z6KKw35z7Y7Urd7jWY8etA==",
+ "license": "MIT"
+ },
"node_modules/tiny-inflate": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz",
diff --git a/package.json b/package.json
index 829f54d..3596d4c 100644
--- a/package.json
+++ b/package.json
@@ -2,12 +2,14 @@
"dependencies": {
"@astrojs/check": "0.9.12",
"astro": "7.4.14",
+ "three": "0.187.0",
"typescript": "6.0.3",
"zod": "4.6.7"
},
"devDependencies": {
"@playwright/test": "1.65.2",
- "@types/node": "24.19.4"
+ "@types/node": "24.19.4",
+ "@types/three": "0.187.0"
},
"name": "marqdo-site",
"version": "0.1.0",
diff --git a/scripts/verify-dist.mjs b/scripts/verify-dist.mjs
index 0767ef0..a56772b 100644
--- a/scripts/verify-dist.mjs
+++ b/scripts/verify-dist.mjs
@@ -33,7 +33,7 @@ for (const [path, html] of documents) {
}
}
-for (const file of ['assets/logo.svg', 'assets/cflmy.jpg', 'assets/social.png', 'assets/geometry.mq.md', 'robots.txt', 'sitemap.xml']) {
+for (const file of ['assets/logo.svg', 'assets/hero-particles.svg', 'assets/cflmy.jpg', 'assets/social.png', 'assets/geometry.mq.md', 'robots.txt', 'sitemap.xml']) {
assert.ok(existsSync(join(dist, file)), `Missing ${file}`);
}
// The documentation search index was removed with the in-site docs body.
@@ -58,5 +58,12 @@ assert.match(home, /查看 CLI 命令与实测依据/);
const homeScripts = [...home.matchAll(/
diff --git a/src/components/Home.astro b/src/components/Home.astro
index ecfcfa6..48865db 100644
--- a/src/components/Home.astro
+++ b/src/components/Home.astro
@@ -1,134 +1,75 @@
---
import Demo from './Demo.astro';
-import Section from './Section.astro';
-import catalog from '../config/catalog.json';
+import EcosystemMap from './EcosystemMap.astro';
+import HeroArt from './HeroArt.astro';
import { choose, site, url, type Locale } from '../config/site';
const { locale, hasRecommendations } = Astro.props as { locale: Locale; hasRecommendations: boolean };
const t = (zh: T, en: T) => choose(locale, zh, en);
const values = [
{
title: t('共同表达', 'Shared expression'),
- body: t(
- '人类的需求、知识依据和可执行实现,能够在同一份文稿中阅读和审计。',
- 'Human intent, the knowledge behind it, and a runnable implementation can be read and audited in one document.',
- ),
+ body: t('在同一份文稿中阅读和审计。', 'Read and audit the work in one document.'),
},
{
title: t('智能执行', 'Guided execution'),
- body: t(
- '模型处理需要理解和判断的局部问题;程序约束后续计算与执行,结果可以复现。',
- 'Models handle the parts that need judgement; the program constrains the computation that follows, and results stay reproducible.',
- ),
+ body: t('模型处理需要理解和判断的局部问题,程序约束后续计算与执行,结果可以复现。', 'Models handle the parts that need judgement, while the program constrains the computation so results stay reproducible.'),
},
{
title: t('长期复用', 'Lasting reuse'),
- body: t(
- '已验证的方法与领域知识可以沉淀为有明确来源、条件和调用入口的资产。',
- 'Verified methods and domain knowledge become assets with explicit provenance, preconditions, and call entry points.',
- ),
+ body: t('已验证的方法与领域知识可以沉淀为有明确来源、条件和调用入口的资产。', 'Verified methods and domain knowledge become assets with explicit provenance, preconditions, and call entry points.'),
},
];
-const core = catalog.components.filter(row => row.kind === 'core').map(row => row.id);
-const toolCount = catalog.components.filter(row => row.kind === 'tool').length;
-const stdCount = catalog.components.filter(row => row.kind === 'stdlib').length;
-const extCount = catalog.components.filter(row => row.kind === 'extension').length;
-const appCount = catalog.components.filter(row => row.kind === 'app').length;
---
-
+
-
{t('文档原生编程语言', 'Document-native programming language')}
-
{t('让知识成为', 'Make knowledge')} {t('可以执行的力量', 'executable')}
+
{t('文档原生编程语言', 'Document-native programming language')}
+
{t('让知识成为', 'Make knowledge')} {t('可以执行的力量', 'executable')}
{t('面向人机协作与可执行知识的文档原生编程语言。', 'A document-native programming language for human–AI collaboration and executable knowledge.')}
-
{t('代码即文档,文档即知识,知识即工具。', 'Code is documentation, documentation is knowledge, knowledge is a tool.')}
{!hasRecommendations && (
{t('暂无推荐发行 · 查看发行状态', 'No recommended release · View release status')}
)}
-
-
-
-
+
-
-
-
-
01 · {t('技术展示', 'Technical demo')}
-
{t('从一篇文稿开始', 'Start with one document')}
-
{t('同一份 Markdown 文稿,保留推导,也提供可调用的函数。', 'One Markdown document keeps the reasoning and exposes a callable function.')}
-
-
-
+
-
-
- {values.map((value, index) => (
-
- 0{index + 1}
- {value.title}
- {value.body}
-
+
+ {t('人类与 AI 的共同知识载体', 'A shared knowledge medium for people and AI')}
+
+ {values.map(value => (
+
+
{value.title}
+ {value.body}
+
))}
-
-
- {t('以上为设计目标与技术思想;实际能力以对应组件版本和验证记录为准。', 'These are design goals and technical direction; delivered capability follows each component release and its verification record.')}
-
-
+
+
-
-
-
- {core.join(' · ') || 'Marqdo CLI'}
- {t('文档解析、编译与执行', 'Document parsing, compilation, execution')}
-
-
- Std · Ext · Tools
- {t(`标准库 ${stdCount} 项 · 扩展 ${extCount} 项 · 独立工具 ${toolCount} 项`, `${stdCount} libraries · ${extCount} extensions · ${toolCount} tools`)}
-
-
- MQDH
- {t(`面向用户的应用入口(${appCount} 项);不构成 CLI 运行时依赖`, `User-facing application entry (${appCount} items); not a runtime dependency of the CLI`)}
-
-
{t('生态组成示意,连线表示职责层次,不代表运行依赖。实际依赖以主仓组件登记为准。', 'Composition only. Lines show responsibility levels, not runtime dependencies; see the root component catalog for real dependencies.')}
-
- {t('探索完整生态', 'Explore the ecosystem')} · {t('了解 MQDH', 'About MQDH')}
-
+
+
+ {t('从语言到知识生态', 'From a language to a knowledge ecosystem')}
+ {t('CLI、标准库、可选扩展、工具与应用各自承担明确职责。', 'The CLI, standard libraries, optional extensions, tools, and applications each own a clear responsibility.')}
+
+
+
-
-
-
-
-
{t('开始你的第一份文稿', 'Start your first document')}
-
{t('按平台安装,运行一份真实示例,然后到 Wiki 继续阅读。', 'Install for your platform, run a real example, then continue in the Wiki.')}
-
-
-
-
-
+
+
+ {t('开始你的第一份文稿', 'Start your first document')}
+ {t('按平台安装,运行一份真实示例,然后到 Wiki 继续阅读。', 'Install for your platform, run a real example, then continue in the Wiki.')}
+
+ {t('快速开始', 'Quick start')}
diff --git a/src/components/Releases.astro b/src/components/Releases.astro
index 9bac82b..9435d99 100644
--- a/src/components/Releases.astro
+++ b/src/components/Releases.astro
@@ -22,7 +22,7 @@ const products = [
{t('快照生成', 'Snapshot generated')} {publication.snapshot.generated_at} ·
{t('最近完整核验', 'Last complete verification')} {publication.pointer.verified_at}
· {t('核验距今已超过 24 小时', 'Last verification was over 24 hours ago')}
-
: {t('官网尚未接入主仓公开发行快照。推荐组合、平台支持和直链下载待核验。', 'The root repository’s public snapshot is unavailable. Recommendations, platform support, and direct downloads are pending verification.')}
}
+ : {t('官网尚未接入主仓公开发行快照。', 'The root repository’s public release snapshot is unavailable.')}
}
{snapshot && eligibleOffers.length + releases.length > 0 && }
-{!history && products.map(product => {
+{!history &&
+
+ Marqdo
+ MQDH
+
+{products.map(product => {
const rows = eligibleOffers.filter(offer => offer.product === product.id);
- return
- {product.name}
- {product.detail}
- 0}>{t('所选条件下暂无推荐发行。', 'No recommended release matches the selected options.')}
+ return
+ {product.name}
+ {snapshot && {product.detail}
}
+ 0}>{snapshot ? t('所选条件下暂无推荐发行。', 'No recommended release matches the selected options.') : t('暂无推荐发行。', 'No recommended release.')}
{snapshot && rows.map(offer =>
{offer.version} · {offer.channel.toUpperCase()} · {offer.target}
{offer.channel !== 'stable' && {t('预发布,适合测试。', 'Prerelease, intended for testing.')}
}
@@ -67,10 +72,14 @@ const products = [
})}
)}
- {t('快速开始', 'Quick Start')} · {t('项目仓库', 'Repository')} · {t('查阅官方发行记录', 'Browse official release records')}
+
+ {t('快速开始', 'Quick Start')} ↗
+ {t('官方发行记录', 'Official release records')} ↗
+
;
})}
- }
+
{history ? t('发行记录', 'Release records') : t('高级下载与独立发行', 'Advanced downloads and independent releases')}
{t('组件的独立发行和生态集成状态分别显示。', 'Component releases and their ecosystem integration status appear separately.')}
0}>{t('所选条件下暂无已核验的发行记录。', 'No verified release records match the selected options.')}
@@ -93,6 +102,18 @@ const products = [
{snapshot.withdrawals.map(item => {item.id} · {item.withdrawn_at} · {item.reason} )}
}
diff --git a/src/components/pages/ResearchPage.astro b/src/components/pages/ResearchPage.astro
index 4bb1081..7db9d22 100644
--- a/src/components/pages/ResearchPage.astro
+++ b/src/components/pages/ResearchPage.astro
@@ -3,63 +3,62 @@ import { choose, site, url, type Locale } from '../../config/site';
const { locale } = Astro.props as { locale: Locale };
const t = (zh: T, en: T) => choose(locale, zh, en);
const topics = [
- {
- id: 'document-native',
- title: t('文档原生语言与可执行知识工程', 'Document-native languages and executable knowledge engineering'),
- body: t(
- '把知识的意图、前置条件与实现保留在同一份文稿中。函数与模块边界明确了计算从何而来,读者可以逐层追溯依据,而不是只看到结果。',
- 'Keep intent, preconditions, and implementation in one document. Function and module boundaries make the provenance of a computation explicit, so readers can trace the reasoning instead of receiving only a result.',
- ),
- links: [{ label: t('语言规范', 'Language specification'), href: site.git + '/marqdo-cli/src/commit/63776735e924ade279cdf59d5c733dc24bfdabbb/spec' }],
- },
- {
- id: 'shared-expression',
- title: t('人类与 AI 的共同表达、可审计的函数抽象', 'Shared expression for people and AI, auditable function abstraction'),
- body: t(
- '同一份文稿既服务于人的阅读与审计,也服务于智能体的上下文选择。需要稳定的计算被约束在显式函数入口,模型只处理需要理解与判断的部分。',
- 'The same document serves human reading and auditing as well as agent context selection. Stability-critical computation is constrained to explicit function entry points, while models handle the parts that need comprehension and judgement.',
- ),
- links: [{ label: t('研究方向说明(Wiki)', 'Research notes (Wiki)'), href: site.wiki }],
- },
- {
- id: 'anchored-context',
- title: t('基于锚点的上下文工程', 'Anchor-based context engineering'),
- body: t(
- '标题与锚点构成可引用的知识边界。上下文按明确位置选取,而不是依赖模糊的全文匹配,调用与引用因此可以复核。',
- 'Headings and anchors define referenceable knowledge boundaries. Context is selected by explicit position rather than fuzzy full-text matching, so calls and citations can be re-checked.',
- ),
- },
- {
- id: 'guided-execution',
- title: t('智能引导的确定执行', 'Intelligently guided deterministic execution'),
- body: t(
- '模型负责理解任务、澄清约束;程序负责可复现的计算与执行。两者边界清晰,结果可以带输入、版本和依据一起复现。',
- 'Models interpret the task and clarify constraints; programs perform reproducible computation and execution. The boundary stays explicit, and results can be reproduced with their inputs, version, and evidence.',
- ),
- },
- {
- id: 'verification',
- title: t('有限边界内的验证、复用与知识编译', 'Verification, reuse, and knowledge compilation within bounded scope'),
- body: t(
- '已验证的方法连同适用范围、条件和调用入口一起沉淀,供后续文稿直接复用。验证事件与边界条件记录在证据中,而不是宣称普遍正确。',
- 'Verified methods are preserved together with applicability, preconditions, and call entry points for reuse by later documents. Verification events and boundary conditions are recorded as evidence rather than claims of universal correctness.',
- ),
- },
+ { id: 'shared-expression', title: t('人机共同表达', 'Shared expression for people and AI') },
+ { id: 'context-and-execution', title: t('上下文与执行', 'Context and execution') },
+ { id: 'verification', title: t('验证与复用', 'Verification and reuse') },
];
+const documentParts = [t('意图', 'Intent'), t('前置条件', 'Preconditions'), t('可执行实现', 'Executable implementation')];
---
-
-
-
- {t('研究', 'Research')}
- {t('Marqdo 关注的问题、设计方向与可执行知识案例。这里区分设计目标、研究假设与已交付能力。', 'The questions Marqdo works on, its design direction, and executable-knowledge cases. Design goals, research hypotheses, and delivered capability are kept distinct.')}
-
- {topics.map(topic => (
-
- {topic.title}
- {topic.body}
- {topic.links?.map(link => {link.label} ↗
)}
+
+
+ {t('研究', 'Research')}
+ {t('文档原生语言、人机协作与可执行知识。', 'Document-native languages, human–AI collaboration, and executable knowledge.')}
+
+
+
+
+
{t('文档原生语言与可执行知识工程', 'Document-native languages and executable knowledge engineering')}
+
{t('在同一份文稿中保留意图、前置条件与实现。', 'Keep intent, preconditions, and implementation in one document.')}
+
{t('语言规范', 'Language specification')} ↗
+
+
+
+
+
+
+ {t('主题索引', 'Topic index')}
+ {topics.map(topic => {topic.title} )}
+
+
+
+ {topics[0].title}
+ {t('同一份文稿既服务于人的阅读与审计,也服务于智能体的上下文选择。需要稳定的计算被约束在显式函数入口,模型只处理需要理解与判断的部分。', 'One document supports human reading, auditing, and agent context selection. Explicit function entry points constrain computation. Models handle the parts that need understanding and judgement.')}
+ {t('研究方向说明', 'Research notes')} ↗
- ))}
-
{t('论文、预印本与实验记录以对应仓库和 Wiki 的真实来源为准;未完成的设想不会在此描述为稳定能力。', 'Papers, preprints, and experiment records follow their real sources in the repositories and Wiki; unfinished ideas are not described here as stable capability.')} {t('查看可复现示例', 'Open the reproducible example')}
+
+
+ {topics[1].title}
+
+
+
{t('基于锚点的上下文工程', 'Anchor-based context engineering')}
+
{t('标题与锚点构成可引用的知识边界。上下文按明确位置选取,调用与引用因此可以复核。', 'Headings and anchors define referenceable knowledge boundaries. Selecting context by explicit location makes calls and citations reviewable.')}
+
+
+
{t('智能引导的确定执行', 'Guided deterministic execution')}
+
{t('模型理解任务与约束,程序执行可复现的计算。', 'Models interpret tasks and constraints. Programs perform reproducible computation.')}
+
+
+
+
+
+ {topics[2].title}
+ {t('将实现、运行条件和结果组织为可复现的单元。适用范围、前置条件与调用入口随已验证的方法一起保留,方便后续文稿复用。', 'Package implementations, runtime conditions, and results as reproducible units. Keep scope, preconditions, and entry points with verified methods so later documents can reuse them.')}
+ {t('查看可复现示例', 'Open the reproducible example')} ↗
+
+
diff --git a/src/layouts/Site.astro b/src/layouts/Site.astro
index c502003..0b05bbc 100644
--- a/src/layouts/Site.astro
+++ b/src/layouts/Site.astro
@@ -53,14 +53,16 @@ const canonicalRoute = (current ?? '') as Route;