Skip to content

draft(docs): switch documentation to Clarify with minimal configuration - #5648

Open
yinxulai wants to merge 8 commits into
apolloconfig:masterfrom
yinxulai:clarify
Open

draft(docs): switch documentation to Clarify with minimal configuration#5648
yinxulai wants to merge 8 commits into
apolloconfig:masterfrom
yinxulai:clarify

Conversation

@yinxulai

@yinxulai yinxulai commented Jul 22, 2026

Copy link
Copy Markdown

What's the purpose of this PR

Upgrade the Apollo documentation experience from the legacy Docsify presentation to Clarify with a deliberately minimal integration. Existing Markdown content remains unchanged and continues to be the source of truth; Clarify reads it directly from docs/.

A single JSON configuration provides the full site experience: bilingual navigation, grouped sections, search, light/dark themes, responsive layouts, footer links, and localized routes. This keeps future documentation work focused on content instead of site-specific scripts and injected UI configuration.

Which issue(s) this PR fixes

Fixes #5638

Brief changelog

  • Add docs/clarify.json with site metadata, English and Chinese locales, navigation, footer links, and layout settings.
  • Add minimal npm scripts for local development and production builds.
  • Ignore Clarify dependencies, generated output, and local logs.
  • Keep all existing documentation content unchanged.

Local development

Prerequisite: Node.js and npm.

cd docs
npm install
npm run dev

Open the URL printed by the command and visit /README, for example http://localhost:5173/README. If that port is already in use, Clarify automatically selects another one.

The development server watches documentation and configuration files and refreshes the site as they change.

Production build

cd docs
npm install
npm run build

The generated static site is written to docs/output/.

Validation

  • Started the development server with npm run dev.
  • Confirmed Clarify discovered and indexed 76 existing documentation pages.
  • Confirmed the JSON configuration loads bilingual navigation, search, theme controls, and footer links.

Preview

Apollo documentation powered by Clarify Apollo documentation page powered by Clarify

Checklist

  • Read the Contributing Guide.
  • Added a detailed description of what changed, how it works, and why.
  • Verified the documentation development server and generated navigation.
  • Run mvn clean test (not required for this documentation-only change).
  • Run mvn spotless:apply (not applicable to JSON/package metadata only).
  • Update CHANGES.md after the PR URL is available.

Summary by CodeRabbit

  • Documentation
    • Added configuration for the Apollo Documentation site, including English and Chinese navigation, page tabs, footer links, copyright text, and theme layout.
    • Added documentation site development and build commands.
  • Chores
    • Updated repository exclusions to keep generated documentation output, logs, and installed documentation packages out of version control.

@dosubot dosubot Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Jul 22, 2026
@github-actions

Copy link
Copy Markdown

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d0a29aec-3ccb-4fd7-8a1c-c579c7eded90

📥 Commits

Reviewing files that changed from the base of the PR and between 34541d5 and 7ae241d.

📒 Files selected for processing (2)
  • docs/clarify.json
  • docs/package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/package.json

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The update adds Clarify tooling and configuration for the documentation site. It defines bilingual navigation, footer links, locale settings, theme layout, package scripts, and ignore rules for generated documentation files.

Changes

Documentation configuration

Layer / File(s) Summary
Clarify tooling and generated-output setup
.gitignore, docs/package.json
The docs package adds Clarify development and build scripts and the @clarify-labs/cli dependency. Git ignores Clarify-generated files and directories.
Clarify site configuration
docs/clarify.json
The site configuration adds metadata, multilingual navigation, footer links, English and Chinese locale settings, and the default theme layout.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: ⚪ Minimal · up to 7ae24

This PR replaces the documentation presentation with a minimal Clarify configuration while preserving existing Markdown content. No actionable merge-blocking risk remains beyond normal checks and review.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR implements the Clarify migration requested in [#5638] and adds configuration for multilingual, self-hosted documentation. However, the reported navigation.links validation error prevents the … Remove or replace the unsupported navigation.links configuration, then verify that npm run build completes successfully and produces the intended deployment artifacts for [#5638].
✅ Passed checks (4 passed)
Check name Status Explanation
Out of Scope Changes check ✅ Passed The changed files support the Clarify documentation migration. The .gitignore entries, Clarify configuration, and package scripts are within the stated scope.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: migrating the documentation site to Clarify with minimal configuration.
Full details: Linked Issues check

Explanation

The PR implements the Clarify migration requested in [#5638] and adds configuration for multilingual, self-hosted documentation. However, the reported navigation.links validation error prevents the documented production build from completing, so the static-site migration is not yet functional.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@yinxulai yinxulai changed the title Switch documentation to the new Clarify site draft: Switch documentation to the new Clarify site Jul 22, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/en/quick-start.mdx`:
- Around line 1-7: Replace the unfinished placeholder content in
docs/en/quick-start.mdx lines 1-7 with the restored English quick-start
documentation, or remove that page from navigation. Apply the same correction to
docs/zh/quick-start.mdx lines 1-7 using restored Chinese content, or remove it
from navigation; both localized pages must no longer expose placeholders.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e374e3a2-4200-4a1b-9a30-1b10c35614ab

📥 Commits

Reviewing files that changed from the base of the PR and between cdaedad and 2875aef.

⛔ Files ignored due to path filters (2)
  • doc/package-lock.json is excluded by !**/package-lock.json
  • docs/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (19)
  • .gitignore
  • docs/.nojekyll
  • docs/clarify-env.d.ts
  • docs/clarify.ts
  • docs/css/buble.css
  • docs/css/dark.css
  • docs/css/fonts.css
  • docs/css/pure.css
  • docs/css/vue.css
  • docs/en/deployment/quick-start-docker.mdx
  • docs/en/deployment/quick-start.mdx
  • docs/en/quick-start.mdx
  • docs/index.html
  • docs/package.json
  • docs/scripts/multiple-language-redirect.js
  • docs/zh/README.mdx
  • docs/zh/deployment/quick-start-docker.mdx
  • docs/zh/deployment/quick-start.mdx
  • docs/zh/quick-start.mdx
💤 Files with no reviewable changes (6)
  • docs/css/pure.css
  • docs/css/vue.css
  • docs/css/buble.css
  • docs/css/dark.css
  • docs/css/fonts.css
  • docs/scripts/multiple-language-redirect.js

Comment thread docs/en/quick-start.mdx Outdated
Comment on lines +1 to +7
# Prepare

Wait for content...

```bash
content for copy
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

Restore or unpublish both placeholder quick-start pages.

Both localized root pages contain unfinished placeholder text rather than documentation.

  • docs/en/quick-start.mdx#L1-L7: restore the English quick-start content or remove the page from navigation.
  • docs/zh/quick-start.mdx#L1-L7: restore the Chinese quick-start content or remove the page from navigation.
📍 Affects 2 files
  • docs/en/quick-start.mdx#L1-L7 (this comment)
  • docs/zh/quick-start.mdx#L1-L7
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/en/quick-start.mdx` around lines 1 - 7, Replace the unfinished
placeholder content in docs/en/quick-start.mdx lines 1-7 with the restored
English quick-start documentation, or remove that page from navigation. Apply
the same correction to docs/zh/quick-start.mdx lines 1-7 using restored Chinese
content, or remove it from navigation; both localized pages must no longer
expose placeholders.

@yinxulai

Copy link
Copy Markdown
Author

#5638

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Jul 25, 2026
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jul 25, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
docs/package.json (1)

8-10: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Make the docs toolchain reproducible.

Please verify that a lockfile is committed for the docs package and used by CI; otherwise the caret range on Line 9 can allow later CLI releases to change the build. If no lockfile is intended, pin the CLI version explicitly. npm recommends committing lockfiles for reproducible CI installs, and npm ci requires one. (docs.npmjs.com)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/package.json` around lines 8 - 10, Make the docs toolchain reproducible
by ensuring the docs package has a committed lockfile that CI uses with npm ci;
if a lockfile is not intended, replace the caret range for `@clarify-labs/cli` in
devDependencies with an exact pinned version.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@docs/package.json`:
- Around line 8-10: Make the docs toolchain reproducible by ensuring the docs
package has a committed lockfile that CI uses with npm ci; if a lockfile is not
intended, replace the caret range for `@clarify-labs/cli` in devDependencies with
an exact pinned version.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f1851b5c-14e5-4dea-85df-fff3f5963744

📥 Commits

Reviewing files that changed from the base of the PR and between 6cd90bf and 34541d5.

📒 Files selected for processing (2)
  • docs/clarify.json
  • docs/package.json

@yinxulai

Copy link
Copy Markdown
Author

@nobodyiam 我提供了一个极小的 PR 来完成了初步的尝试,对文档内容零改动,我提供了一份站点配置(甚至也是可选的,我只是为了让目录看起来更友好),对于 packages.json 来说,也不是必须的,可以通过在 ci 中安装并使用 clarify 来构建项目是一样的,除此之外,有非常大量的关于 docsify 的配置和奇怪的注入类代码都可以删除,使用 clarify 可以让团队只需要关注文档内容。

@yinxulai yinxulai changed the title draft: Switch documentation to the new Clarify site docs: switch documentation to Clarify with minimal configuration Jul 25, 2026
@nobodyiam

nobodyiam commented Aug 1, 2026

Copy link
Copy Markdown
Member

感谢提交这个方案。Clarify 在面向 LLM 的文档体验上做了不少有价值的工作,例如提供 Markdown 视图、复制 Markdown、llms.txt 等能力,这个方向我比较认可。

不过,这些能力同时引入了文档构建和产物部署流程,这也是社区是否采纳时需要重点考虑的因素。Apollo 当前使用 Docsify,Markdown 文件可以直接在浏览器端渲染,仓库中只需维护文档源码,不需要为每次文档更新执行构建。类似这种轻量化模式对社区贡献者和后续维护会更友好一些。部分 LLM 友好能力,例如查看、复制原始 Markdown,也可以在 Docsify 现有模式下通过轻量插件补充。

另外,我目前按照 PR 中提供的步骤在本地执行 build 仍然不成功,因此暂时无法验证迁移后的完整页面效果、静态产物以及后续部署流程。建议先补充可复现的本地构建方式,并进一步说明构建产物如何在 CI 中生成和部署、是否需要提交到代码仓库,再评估完整的迁移成本和收益。

> build
> clarify build --content .

Error: [clarify] config field "navigation" is invalid: Unrecognized key: "links"
    at validateProjectConfig ($APOLLO_REPO_DIR/docs/node_modules/@clarify-labs/cli/output/engine-DJ8vzo23.js:1218:29)
    at validateClarifyConfig ($APOLLO_REPO_DIR/docs/node_modules/@clarify-labs/cli/output/engine-DJ8vzo23.js:1304:24)
    at loadJsonConfig ($APOLLO_REPO_DIR/docs/node_modules/@clarify-labs/cli/output/engine-DJ8vzo23.js:1299:9)
    at loadClarifyConfig ($APOLLO_REPO_DIR/docs/node_modules/@clarify-labs/cli/output/engine-DJ8vzo23.js:1313:43)
    at resolveProjectContext ($APOLLO_REPO_DIR/docs/node_modules/@clarify-labs/cli/output/engine-DJ8vzo23.js:3283:70)
    at $APOLLO_REPO_DIR/docs/node_modules/@clarify-labs/cli/output/engine-DJ8vzo23.js:3918:78
    at runPhase ($APOLLO_REPO_DIR/docs/node_modules/@clarify-labs/cli/output/engine-DJ8vzo23.js:3857:23)
    at async ClarifyEngine.initialize ($APOLLO_REPO_DIR/docs/node_modules/@clarify-labs/cli/output/engine-DJ8vzo23.js:3918:19)
    at async ClarifyEngine.prepare ($APOLLO_REPO_DIR/docs/node_modules/@clarify-labs/cli/output/engine-DJ8vzo23.js:3958:27)
    at async runBuild ($APOLLO_REPO_DIR/docs/node_modules/@clarify-labs/cli/output/cli.js:214:3)

@yinxulai

yinxulai commented Aug 26, 2026

Copy link
Copy Markdown
Author

感谢你非常细致的评审和建议,也感谢你对 Clarify 在 LLM 友好方向上的认可。
你提出的两个关键点我完全认同:一是社区维护模式要尽量轻量,二是迁移方案必须可复现、可验证。

先同步最新状态:之前本地遇到的构建报错(navigation 配置校验问题)已经通过升级到最新版本解决,当前构建流程可以正常执行。

关于方案定位,我想补充 Clarify 在这个 PR 中的使用方式和边界:

  1. 这套方案本质是文档发布层,不是让仓库承担额外复杂的站点工程。
  2. 推荐做法是在 CI(GitHub Actions)中安装并执行 Clarify,把文档目录里的 Markdown 生成静态站点用于部署。
  3. 对仓库贡献者而言,日常工作仍然主要是维护文档内容本身,可以把绝大多数精力放在 md 内容质量上,而不是构建细节。
  4. 构建产物建议由 CI 生成并发布,不需要回写到仓库主分支,从而保持仓库干净、协作成本低。

同时,Clarify 带来的能力不只是页面渲染替换,还包括:

  1. 原生多语言文档组织与路由。
  2. OpenAPI 作为一等内容层,可与指南内容融合,而非割裂在单独区域。
  3. 面向 AI 与工具链的产物支持,例如 llms.txt、搜索或 MCP 索引、可消费的结构化输出。
  4. 开源、源码自有、静态可自托管,仍然保留 Git 工作流下的可审阅和可追溯性。

以 Clarify 的官网内容示例:

内容操作菜单:
image

如果项目有接口文档,那 Clarify 更加适合:

  • 几乎 100% 的 openapi 语义生成文档覆盖
  • 在线的请求测试工具
image image

@yinxulai

Copy link
Copy Markdown
Author

当前这个 PR 只代表一个最小可用体验(minimal experience),用于验证文档内容零改动前提下能否完成接入与构建,不代表 Clarify 的最佳项目实践形态。

在实际生产使用里,Clarify 官方文档目前采用的是 Cloudflare Pages 自动追踪仓库变更并触发文档更新,这是一种免费、稳定且体验很好的发布方案。
如果团队更偏向 GitHub 生态,也可以使用 GitHub Actions 加 GitHub Pages 完成自动构建与发布,这条路径同样成熟易用。

也就是说,Clarify 的接入方式可以根据项目偏好选择,不绑定单一部署方案;无论选择 Cloudflare Pages 还是 GitHub Actions 加 Pages,都可以把仓库重心继续放在 Markdown 内容维护本身。

这一切成立的前提是 Clarify 最终交付的是纯静态 HTML 产物,因此天然适配 CDN 与静态托管链路,同时对搜索引擎抓取和 SEO 也非常友好。

@nobodyiam nobodyiam left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢持续更新这个方案,也感谢为 Apollo 社区投入时间做这次尝试。

我重新体验了 Clarify 的官方文档站点。整体阅读体验确实不错,尤其是 Markdown 视图、原始内容输出、llms.txt、MCP/Search 等面向 Agent 的能力,对未来文档被开发者和 AI 工具共同消费很有价值。Clarify 保持源码在 Git 中、生成可自托管静态产物的方向,也与开源社区的协作方式比较契合。

当前遇到的问题更多是 Apollo 已经基于 Docsify 运行多年,积累了现有链接、锚点、静态资源和 GitHub Pages 发布方式,因此从 Docsify 切换到 Clarify 时还需要补充一层迁移适配,并不代表 Clarify 本身不适合。下面这些点希望能一起探讨可行的解决方案。

我基于最新 head 2977e9a29e5df4856006c7fd7adf3e2ba814643d 重新进行了构建和浏览器验证。之前 navigation.links 导致的配置校验问题已经解决,使用 @clarify-labs/cli 0.11.21 也可以完成构建,这是一个明确的进展。

不过,如果当前 PR 的目标是完成 Apollo 线上文档站点的正式切换,还有以下问题需要进一步处理。

  1. 生成站点还需要与现有 Docsify 入口完成拆分

当前执行 clarify build --content . 时,Clarify 会继续复用已有的 docs/index.html。这个文件包含完整的 Docsify 配置和脚本,并使用 Docsify 的 #app 挂载节点,而 Clarify 需要 #root

因此,虽然 build 命令能够成功结束,但浏览器运行时仍会出现以下情况:

  • Clarify 无法找到 #root 挂载节点;
  • multiple-language-redirect.js 没有进入生成物,加载时返回 404;
  • 页面继续被 Docsify 接管;
  • 访问 /zh/portal/apollo-user-guide/ 等 Clarify clean path 时会显示 404;
  • 仓库中的本地图片没有复制到 docs/output,相关请求会返回 404。

这里可能需要采用 Clarify 推荐的 HTML 入口和 public 静态资源目录,同时将现有 Docsify 专用脚本从 Clarify 构建入口中移除或隔离。

建议后续在 CI 中增加一个简单的浏览器 smoke test,至少验证首页、中英文内容页、页面导航和一张本地图片。这样可以区分“构建命令成功”和“生成站点实际可访问”。

  1. 需要设计现有文档链接的兼容方案

Apollo 现有文档 URL 使用 Docsify 的 /#/... 路由和 ?id= 章节锚点,而 Clarify 使用 clean path 和标准 #anchor。这两套 URL 格式并不会自动保持兼容。

当前仓库中至少存在:

  • 33 处指向 www.apolloconfig.com/#/... 的绝对链接,分布在 README.md、Issue 模板、Portal 页面和 OpenAPI 脚本等位置;
  • 文档正文中 109 处 Docsify 风格的 ?id= 章节链接;
  • 文档正文中 8 处指向 .md 的内部页面链接;
  • 4 处直接写死的 /#/en/.../#/zh/... 链接。

例如:

  • https://www.apolloconfig.com/#/zh/portal/apollo-user-guide
    在 Clarify 中对应 /zh/portal/apollo-user-guide
  • /#/zh/portal/apollo-user-guide?id=_71-安全相关
    需要转换为类似 /zh/portal/apollo-user-guide#71-安全相关 的格式,并以实际生成的 heading ID 为准;
  • zh/design/apollo-design.md?id=...
    如果目标是渲染后的页面,需要改为对应的 clean path 和标准锚点。

仓库内的链接可以逐步更新,但外部网站、搜索结果和用户书签中的旧链接无法一起修改。由于 URL fragment 不会发送到服务器,普通 HTTP 301 也无法直接处理 /#/...

一种可能的方案是在根页面增加轻量的客户端兼容逻辑,将旧的 /#/path?id=anchor 解析并跳转为新的 /path#anchor。也欢迎结合 Clarify 的插件机制提出更合适的实现方式。

建议同时增加自动化链接检查,覆盖页面路径、章节锚点和静态资源,避免迁移过程中出现难以发现的失效链接。

  1. 需要确定并落实实际发布方式

Apollo 当前 GitHub Pages 使用 legacy 模式,直接发布 master:/docs。当前 PR 增加了 Clarify 配置和构建脚本,但:

  • 没有增加 Clarify 构建和部署 workflow;
  • docs/output 被加入 .gitignore
  • 现有 docs/index.html 没有改变;
  • 当前 CI 也不会执行 Clarify build。

因此,合并当前改动后线上站点仍然会继续运行 Docsify。

作者之前提到 Cloudflare Pages 和 GitHub Actions + GitHub Pages,这两个方向都可以继续评估。为了便于社区判断后续维护成本,希望本 PR 或后续迁移方案能够明确:

  • 最终选择哪种托管方式;
  • 依赖安装和构建命令;
  • 生成物如何发布;
  • GitHub Pages 或托管平台需要调整哪些设置;
  • CNAME.nojekyll 和本地图片如何保留;
  • 构建失败时如何避免发布不完整的站点。

如果选择 GitHub Actions + GitHub Pages,建议在 PR 中提供对应 workflow;如果更推荐 Cloudflare Pages,也希望补充 Apollo 仓库侧需要的配置和维护说明,方便社区综合比较。

  1. Quick Start 占位页需要处理

docs/clarify.json 当前把 quick-start 放入 Getting Started 主导航,但:

  • docs/en/quick-start.md 仍是 Wait for content... 占位内容;
  • docs/zh/quick-start.md 不存在;
  • 当前 locale fallback 会在中文站点展示英文占位内容。

这里可以恢复完整的中英文内容,也可以先从导航中移除该页面,继续使用已有的 deployment/quick-startdeployment/quick-start-docker

  1. 建议固定经过验证的 Clarify 版本

docs/package.json 当前使用 "@clarify-labs/cli": "^0.11.21",但没有提交 lockfile。考虑到不同 Clarify 版本之间可能存在配置 schema 和构建行为变化,为了保证社区贡献者和 CI 得到一致结果,建议:

  • 提交 package-lock.json 并在 CI 使用 npm ci;或者
  • 精确锁定当前经过验证的 Clarify CLI 版本。

目前 Java build、code style 和 license 检查已经通过。合并前还需要完成 CLA,并按照仓库要求更新 CHANGES.md

如果当前 PR 的定位只是验证 Clarify 能否读取 Apollo 现有文档,可以考虑先将其标记为 draft/PoC,记录上述迁移问题和后续实施方案,不必要求一次完成所有生产切换工作。

如果 PR 仍以 “switch documentation to Clarify” 并关闭 #5638 为目标,那么在合并前至少需要完成可工作的构建入口、发布链路和旧链接兼容方案。

总体上我认可继续探索 Clarify 的方向,尤其是其 agent-friendly 能力值得关注。希望我们可以一起把 Apollo 现有文档体系的兼容和发布问题梳理清楚,再逐步推进正式迁移。

@yinxulai yinxulai changed the title docs: switch documentation to Clarify with minimal configuration draft(docs): switch documentation to Clarify with minimal configuration Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

是否愿意考虑基于 Clarify 迁移项目文档?

2 participants