Repository navigation
docs(site): 字阶与配色、目录与宽度、全站标题收短、系统架构图 - #453
Merged
Merged
Conversation
排版(实测改前内页 13 种字号、6 档字重,标题 42/35/29px): - 新增 typography.css:7 级字号 12/13/14/16/18/24/30 · 3 档字重,映射到 Starlight 的 --sl-text-h* - 新闸门 scripts/check-type.mjs:源码里字号只能用 var(--fs-*)、字重只能 400/500/600 配色「画布 + 纸面」:灰阶色度降到 ≤0.016;紫色只留给链接、当前位置、焦点; 行内代码 / 表头 / 提示块改中性;代码块去掉终端标题栏;上一页 / 下一页改细边框 布局:正文 56rem 在侧栏和目录之间居中、目录钉在最右(原来宽屏正文左侧空 589px); 表格第一列不再被挤成一字一行;首页顶栏和正文同宽;侧栏分组标题改成淡色小标签 右侧目录(DocsToc.astro,照 Fumadocs 的行为):阶梯轨道线、露着的几节一起高亮、 小节分组展开收起、整个目录可收起并记住 修复:「回到顶部」按钮一直点不动 —— 被 fixed 的 .right-sidebar 盖住,挪到 <body> 下 内容: - 全站 698 条小标题改成短名词短语、不写问句;20 个偏长的页面标题收短;82 条站内锚点链接跟着改 - 新闸门 scripts/check-headings.mjs:问号或超长的标题让构建失败 - 项目介绍新增「系统架构」分层图(DiagramArchitecture + src/data/architecture.ts) - monorepo 补上 AI 协作的角度:项目介绍、首页、README 构建:链接 0 断链 · 字阶 0 越界 · 标题 700 条 0 越界;ctx:check / arch:check 通过 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 自带抬头(logo · 项目名 · 图例)和落款(说明 · 仓库地址) - 层与层之间画请求流向与协议;每个模块一个线条图标 - 能力标签只在「·」处换行,行首分隔点用 clip-path 裁掉 - 应用层 sys 竖跨两行,5 个核心模块排满 3 × 2;插件改成一条虚线区的药丸 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
yile2020
force-pushed
the
feat/docs-type-color
branch
from
November 26, 2026 10:31
0635c5b to
3431b33
Compare
yile2020
enabled auto-merge
November 26, 2026 10:32
yile2020
added a commit
that referenced
this pull request
Nov 26, 2026
…不丢第三层 · 架构数据类型 - 架构图的 Vite 卡片写「接口直连 :8088」:开发时 Vite 只代理 /uploads,接口由浏览器直连后端 - 项目介绍「pnpm typecheck 覆盖每一个包」改成「每一个 TypeScript 包」(文档站 / 后端没有这项) - check-type.mjs 也查 `font:` 简写,只放行 inherit / 整条变量(反向验证:写 `font: 600 13px/1.4` 报 1 处、退出 1) - DocsToc 把更深的标题拍平进小节列表,不再静默丢掉(实测:临时加 h4 + maxHeadingLevel 4,目录里出现) - DiagramArchitecture 的 Props 数组改 readonly,接得住 `as const` 的数据(tsc 核对:改前 TS2322,改后通过) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 26, 2026
yile2020
added a commit
that referenced
this pull request
Nov 26, 2026
fix(docs): #453 评审跟进 —— 架构图 Vite 标注 · typecheck 说法 · 字阶查 font 简写 · 目录不丢第三层
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为什么
文档站读着累:内页实测有 13 种字号、6 档字重,标题是 42 / 35 / 29px 的问句、在目录里折成两三行;宽屏上正文只有 720px,左边空出 589px;紫色用在太多地方。对照 Panis 文档站 在 ego(Windows · 微软雅黑)里逐项量过之后统一改。
改了什么
排版与配色
typography.css:7 级字号 12/13/14/16/18/24/30 · 3 档字重,映射到 Starlight 的--sl-text-h*布局与组件
DocsToc.astro:阶梯轨道线、露着的几节一起高亮、小节分组展开收起、整个目录可收起并记在 localStorageisolation: isolate的.main-pane里,被 fixed 的.right-sidebar盖住;挪到<body>下内容
DiagramArchitecture.astro+src/data/architecture.ts,每个模块对着真实目录核对过)闸门(都接在
apps/docs的build后面)scripts/check-type.mjs:字号只能用var(--fs-*)、字重只能 400/500/600scripts/check-headings.mjs:标题带问号或超长就失败写作规则、踩过的坑和实测记录在
apps/docs/AGENTS.md。怎么验证的
pnpm --filter @admin/docs build:链接 65 页 0 断链 · 字阶 0 越界 · 标题 700 条 0 越界pnpm ctx:check、pnpm arch:check🤖 Generated with Claude Code