diff --git a/CONTENT_SYNC.md b/CONTENT_SYNC.md index 6c6b2c8..c767c21 100644 --- a/CONTENT_SYNC.md +++ b/CONTENT_SYNC.md @@ -1,44 +1,25 @@ -# Content synchronization baseline +# Documentation maintenance -## User-first, released-capability reconstruction — 2026-09-30 +Keep public documentation centered on user tasks. A project should have one clear first-use tutorial with its prerequisites, actions, expected results and stopping/recovery steps together. Follow-up guides explain a specific task; reference pages answer a specific lookup. Do not repeat the same directory of links across the homepage, project overview and guide index. -The public site now starts with choosing a project, a first working setup, daily tasks and troubleshooting. ZBoard is presented as a minimal panel for personal use and sharing, with optional plugins. Contributor sections stay short; detailed configuration and public interface contracts remain available as lookup references rather than prerequisite reading. Existing routes and heading anchors are retained. +## Verify facts without narrating the audit -### Published evidence +- Check behavior against publicly released source and artifacts, including the actual UI labels, configuration schema and platform requirements. +- Record the checked releases, commits, evidence and validation limits in the pull request description. Audit dates, branch comparisons, implementation progress and commit baselines do not belong in ordinary user guides. +- Keep version details in migration, breaking-change and compatibility notes only when they change what the reader must do. Protocol identifiers and data-format versions remain part of their technical contracts. +- State real feature/build/platform requirements at the point of use. Removing a historical version label must not imply that every old package includes a feature. +- Release links should help the reader download or upgrade; source links should help a contributor inspect the relevant contract. Neither should substitute for the actual instructions. -| Project / channel | Published tag | Source commit | -| --- | --- | --- | -| Core RC (general tutorials and API reference) | `v0.0.2-rc.202609290540` | `2d7526596e91ea1259c3692501a02672ca826cfd` | -| Core dev (explicitly experimental WireGuard section only) | `v0.0.3-dev.202609281319` | `e0c078f3786e2ed60ace43613c47d3b98ae3f5c8` | -| ZNet Sink RC | `v0.0.2-rc.202609291414` | `3aa5c7fe36b3cc0966e417482fa13813119b31f9` | -| ZBoard RC | `v0.0.2-rc.202609291405` | `cf6f2cf0838880615063e94d7f5af3113ea03d9f` | +## Maintain a coherent reading path -GitHub release metadata was checked on 2026-09-30. All three latest non-prerelease releases remain `v0.0.1`; the tags above are prereleases. The automatic client download chooser still reads the non-prerelease channel, and the download page now explicitly links the audited RC. Matching product numbers are not a compatibility contract. +- Link the project chooser and overview directly to the complete first-use tutorial. +- Put task guides before reference and contribution material. Avoid making the reader visit several indexes before reaching an action. +- Keep essential setup and verification on the tutorial page. Link to detailed platform or configuration help only for optional cases. +- Preserve published routes and anchors when consolidating content, and make the destination of each old entry clear. +- Keep developer guidance focused on project conventions and contribution requirements; do not copy internal implementation records into public tutorials. -Core `main` matches the RC commit above. Unreleased develop `4ad1b09ab5a59b5b673d1c28b05faf9a7a9735e4` was compared but is not the tutorial baseline: its URLTest and strict-route recovery fixes must not be attributed to earlier artifacts. The RC has no WireGuard feature. Sink's audited develop `080a635df3549449694038e7ce6e531ce376fb15` has exactly the RC tree `7b16a6a2d83c1e20b00aecae3ab952f5fb57821c`; public source links use the released commit. ZBoard `main`, `develop` and the RC tag all resolve to the listed commit. +## Check changes -### Material corrections +Run `pnpm check:build` and `git diff --check`. Review links and anchors in rendered output as well as source Markdown. Validate changed configuration and command examples when possible, and distinguish syntax checks from actual runtime or platform validation in the pull request. -- Core: download-first installation, runnable local Mixed-proxy example, explicit TUN permission and recovery limits, accurate published VLESS/VMess capabilities, RC URLTest isolation semantics, and experimental dev-only WireGuard. HTTP/IPC/event contracts were cross-checked against the RC implementation, not just copied from an earlier source document. -- Sink: a concrete first connection using professional mode and system proxy; Lite's power button actually requests both system proxy and TUN. Current RC settings use per-configuration local changes; portable export is v3 and does not back up configuration-bound overrides or subscriptions. Linux system proxy targets GNOME. Plugin installation, permission approval, updates and destructive uninstall effects are explained as user tasks. -- ZBoard: installation is pinned to the released RC; first delivery includes a user, protocol, access group, product/specification, zero-amount assignment, explicit confirmation and client verification. Forwarding-only authorization now issues the parent credential with only the authorized entry address. External forwarding, proxy pools, released plugin business interfaces and migration/rollback constraints replace stale claims. -- Navigation: guides lead, advanced references are collapsed, contribution guidance is separated. The shared project chooser may link into each project's start page; its old false classification as a project named `index.md` is fixed in the documentation checker. The checker now rejects missing navigation targets and anchors; a pre-existing community sidebar anchor mismatch is repaired without removing the old anchor. - -### Relationship to existing work - -This change starts from docs `develop` / `main` commit `dcae2357323c1352aa6554fd0e5162921aef9bce`. Existing PR #36 remains separate and unmodified. Its module-ownership proposal overlaps navigation and ZBoard reference entry points; the user-facing subscription/forwarding explanations here follow the now-published RC rather than the proposal's earlier “unreleased” wording. Review that overlap before integrating both PRs. - -### Verification scope - -- `pnpm check:build` passes all 86 Markdown pages and production output (Node 24.19.0, pnpm 11.19.0; CI uses Node 22 and pnpm 11.9.0). -- A separate rendered-output check resolves 5,662 local links/assets across 87 HTML files. All 568 previous anchors in changed pages are retained; all 36 new pinned product-source targets resolve. -- The navigation checker rejects injected missing-page and missing-anchor cases, then passes with the real navigation restored. `git diff --check` passes. -- Thirty complete/assembled Core configuration examples pass `zero validate` with the existing audit binary reporting `c71a7c22`, not the exact RC binary. Two Python examples parse, two JavaScript examples pass syntax checks, and 23 ZBoard shell examples pass syntax checks. - -Product code and release artifacts were inspected; this work does not deploy ZBoard, modify system proxy/TUN/firewall settings, send payments or operate live nodes. Local browser preview is unavailable in this environment (`ERR_BLOCKED_BY_CLIENT` for localhost), so no visual or installed-platform acceptance is claimed. Earlier audits are historical records, not the current public feature baseline. - -## Historical provenance - -The [September 9–10 audit and ZBoard migration record](https://github.com/zerodenet/docs/blob/dcae2357323c1352aa6554fd0e5162921aef9bce/CONTENT_SYNC.md) remains available in Git history. `zboard-document-migration.json` records the original migration sources and digests; it is provenance, not a claim that today's guide still matches those old files verbatim. - -Public ZBoard documentation is maintained here. Do not copy these guides back into the product's ignored local documentation directory; its release packaging keeps its own release-note artifact under `.github/release-notes/`. +ZBoard public guides live in this repository. Its product repository retains source contracts and release-packaging material. `zboard-document-migration.json` is historical migration provenance, not the current feature baseline. diff --git a/README.md b/README.md index 3f65ffb..169e697 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Internal design notes, temporary investigations, development plans, test records Organize the reading path around user tasks: choose a project, install it, complete the first working setup, operate it, and troubleshoot it. Guides state prerequisites, actions, the expected result, and the next step if something fails. Implementation inventories do not replace instructions. Keep contributor guidance focused on project conventions and contribution requirements; configuration and public API references are optional lookups. -Distinguish released artifacts, release candidates, and source-only changes. Matching version numbers do not imply matching capabilities across projects or builds. Record the evidence and verification scope in [CONTENT_SYNC.md](./CONTENT_SYNC.md). +Distinguish released artifacts, release candidates, and source-only changes. Matching version numbers do not imply matching capabilities across projects or builds. Record evidence and verification scope in the pull request; follow the [documentation maintenance principles](./CONTENT_SYNC.md). ## Repository Structure diff --git a/README.zh-CN.md b/README.zh-CN.md index 0fe8c0b..0490d7a 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -36,7 +36,7 @@ ZeroDeNet 官方文档仓库,统一维护旗下开源项目的使用指南、 阅读顺序以使用者的任务为主:选择项目 → 安装 → 完成第一次使用 → 日常操作 → 故障排查。每篇指南说明前提、操作、成功结果和失败时的下一步,不用实现进度或模块清单代替使用步骤。开发者入口只保留项目规范与贡献指南;配置字段和公开接口按需查询,不作为新用户的必读章节。 -功能说明必须区分正式发布、候选版和源码实现。相同版本数字不代表三个项目或不同构建具有相同能力;来源与核对记录维护在 [CONTENT_SYNC.md](./CONTENT_SYNC.md)。 +功能说明必须区分正式发布、候选版和源码实现。相同版本数字不代表三个项目或不同构建具有相同能力;实现来源和验证范围写入对应 Pull Request;[文档维护原则](./CONTENT_SYNC.md)说明如何持续维护。 ## 内容组织 diff --git a/docs/.vitepress/navigation.ts b/docs/.vitepress/navigation.ts index 82f7175..b6b568f 100644 --- a/docs/.vitepress/navigation.ts +++ b/docs/.vitepress/navigation.ts @@ -10,52 +10,27 @@ const group = ( export const nav: DefaultTheme.NavItem[] = [ { text: '开始使用', link: '/projects/' }, - { text: '下载客户端', link: '/download' }, - { - text: '项目', - items: [ - { text: '全部项目', link: '/projects/' }, - { text: '版本与使用限制', link: '/progress' }, - { - text: '客户端', - items: [ - { text: 'ZNet Sink', link: '/projects/znet-sink/', activeMatch: '^/projects/znet-sink/' }, - ], - }, - { - text: '内核', - items: [ - { text: 'Zero Core', link: '/projects/core/', activeMatch: '^/projects/core/' }, - ], - }, - { - text: '自用与分享', - items: [ - { text: 'ZBoard', link: '/projects/zboard/', activeMatch: '^/projects/zboard/' }, - ], - }, - ], - }, - { text: '按任务开始', link: '/solutions/' }, { - text: '社区', + text: '项目文档', items: [ - { text: '社区首页', link: '/community/' }, - { text: 'GitHub Discussions', link: 'https://github.com/orgs/zerodenet/discussions' }, - { text: 'Telegram', link: 'https://t.me/zerodenet' }, + { text: 'ZNet Sink', link: '/projects/znet-sink/', activeMatch: '^/projects/znet-sink/' }, + { text: 'Zero Core', link: '/projects/core/', activeMatch: '^/projects/core/' }, + { text: 'ZBoard', link: '/projects/zboard/', activeMatch: '^/projects/zboard/' }, ], }, + { text: '下载客户端', link: '/download' }, + { text: '社区', link: '/community/' }, ] -const solutionSidebar: DefaultTheme.SidebarItem[] = [ - page('按任务开始', '/solutions/'), - page('版本与使用限制', '/progress'), - group('项目', [ - page('全部项目', '/projects/'), +const projectSidebar: DefaultTheme.SidebarItem[] = [ + page('选择项目', '/projects/'), + page('项目如何配合', '/solutions/'), + group('项目文档', [ page('ZNet Sink', '/projects/znet-sink/'), page('Zero Core', '/projects/core/'), page('ZBoard', '/projects/zboard/'), ], false), + page('升级与兼容', '/progress'), ] const communitySidebar: DefaultTheme.SidebarItem[] = [ @@ -65,113 +40,113 @@ const communitySidebar: DefaultTheme.SidebarItem[] = [ ] const coreSidebar: DefaultTheme.SidebarItem[] = [ - page('Zero Core 使用手册', '/projects/core/'), + page('Zero Core', '/projects/core/'), group('开始使用', [ - page('使用指南', '/projects/core/guides/'), - page('安装 Zero Core', '/projects/core/guides/installation'), - page('运行第一个本地代理', '/projects/core/guides/quickstart'), - page('配置基础', '/projects/core/guides/configuration-basics'), - page('运行 TUN 与 DNS', '/projects/core/guides/tun-and-dns'), - ], false), - group('日常管理', [ - page('运行与观测', '/projects/core/guides/operations'), - page('HTTP / Mixed 与 URLTest', '/projects/core/guides/proxy-and-urltest'), - page('安全热更新配置', '/projects/core/guides/hot-reload'), - page('使用控制 API', '/projects/core/guides/control-api'), - page('保护控制接口', '/projects/core/guides/control-security'), + page('运行第一个代理', '/projects/core/guides/quickstart'), + page('接入远程节点', '/projects/core/guides/configuration-basics'), + page('日常操作', '/projects/core/guides/operations'), page('故障排查', '/projects/core/guides/troubleshooting'), - page('配置错误示例', '/projects/core/guides/config-failure-examples'), ], false), - group('协议配置', [ + group('按需配置', [ + page('TUN 与 DNS', '/projects/core/guides/tun-and-dns'), + page('应用代理与节点测速', '/projects/core/guides/proxy-and-urltest'), + page('热更新配置', '/projects/core/guides/hot-reload'), page('选择协议', '/projects/core/protocols/'), - page('配置示例', '/projects/core/protocols/configuration'), - page('能力与限制', '/projects/core/reference/protocol-capabilities'), + page('协议配置示例', '/projects/core/protocols/configuration'), + page('运行模式与出站组', '/projects/core/configuration/modes-and-groups'), + page('DNS 与 Fake-IP 参数', '/projects/core/configuration/dns'), ]), - group('配置与命令速查', [ - page('参考入口', '/projects/core/reference/'), - page('能力与端口速查', '/projects/core/reference/technical-specifications'), + group('配置与维护参考', [ page('配置字段', '/projects/core/configuration/'), - page('DNS 与 Fake-IP 参数', '/projects/core/configuration/dns'), - page('运行模式与出站组', '/projects/core/configuration/modes-and-groups'), - page('构建特性', '/projects/core/configuration/features'), + page('配置错误示例', '/projects/core/guides/config-failure-examples'), page('CLI 命令', '/projects/core/control-plane/cli'), + page('升级与自定义构建', '/projects/core/guides/installation'), + page('构建特性', '/projects/core/configuration/features'), + page('协议能力与限制', '/projects/core/reference/protocol-capabilities'), + page('能力与端口速查', '/projects/core/reference/technical-specifications'), ]), - group('高级接口参考(按需查阅)', [ - page('控制接口总览', '/projects/core/control-plane/'), + group('外部程序接入', [ + page('控制 API 使用', '/projects/core/guides/control-api'), + page('控制接口安全', '/projects/core/guides/control-security'), page('GUI 接入', '/projects/core/guides/gui-integration'), page('Connector Webhook', '/projects/core/guides/connector-integration'), - page('HTTP API', '/projects/core/control-plane/http-api'), - page('本地 IPC', '/projects/core/control-plane/ipc-protocol'), - page('Connector 投递约定', '/projects/core/control-plane/connector'), - page('事件目录', '/projects/core/control-plane/events'), - page('配置模型', '/projects/core/control-plane/configuration'), - page('通用契约', '/projects/core/control-plane/contract'), - page('兼容性约定', '/projects/core/control-plane/breaking-changes'), - group('规则格式', [ + group('接口与格式参考', [ + page('控制接口总览', '/projects/core/control-plane/'), + page('HTTP API', '/projects/core/control-plane/http-api'), + page('本地 IPC', '/projects/core/control-plane/ipc-protocol'), + page('Connector 投递约定', '/projects/core/control-plane/connector'), + page('事件目录', '/projects/core/control-plane/events'), + page('配置模型', '/projects/core/control-plane/configuration'), + page('通用契约', '/projects/core/control-plane/contract'), + page('兼容性约定', '/projects/core/control-plane/breaking-changes'), page('Zero Rule IR v1', '/projects/core/reference/zero-rule-ir-v1'), page('ZRS 0.1', '/projects/core/reference/zrs-0.1'), page('ZRS Golden Vector', '/projects/core/reference/zrs-0.1-golden'), ]), ]), - group('参与项目', [page('规范与贡献指南', '/projects/core/contributing/')]), + group('阅读与贡献', [ + page('阅读说明', '/projects/core/guides/'), + page('参考索引', '/projects/core/reference/'), + page('规范与贡献指南', '/projects/core/contributing/'), + ]), ] const sinkSidebar: DefaultTheme.SidebarItem[] = [ - page('ZNet Sink 文档', '/projects/znet-sink/'), + page('ZNet Sink', '/projects/znet-sink/'), group('开始使用', [ - page('用户指南入口', '/projects/znet-sink/guides/'), - page('安装与首次启动', '/projects/znet-sink/guides/installation'), - page('完成第一次连接', '/projects/znet-sink/guides/first-connection'), + page('从安装到第一次连接', '/projects/znet-sink/guides/first-connection'), + page('管理订阅', '/projects/znet-sink/guides/subscriptions'), + page('切换节点与应用代理', '/projects/znet-sink/guides/proxy-and-probes'), + page('故障排查', '/projects/znet-sink/guides/troubleshooting'), ], false), - group('功能说明', [ - page('功能总览', '/projects/znet-sink/guides/features'), - page('订阅管理', '/projects/znet-sink/guides/subscriptions'), + group('按需设置', [ + page('TUN 接管', '/projects/znet-sink/guides/tun'), page('DNS 与 Fake-IP', '/projects/znet-sink/guides/dns'), - page('TUN 接管与网络切换', '/projects/znet-sink/guides/tun'), + page('安装与管理插件', '/projects/znet-sink/guides/plugins'), + ]), + group('维护与帮助', [ + page('平台安装详情', '/projects/znet-sink/guides/installation'), page('迁移设置与管理内核', '/projects/znet-sink/guides/settings-transfer'), - page('本地代理与节点测速', '/projects/znet-sink/guides/proxy-and-probes'), - page('安装与使用插件', '/projects/znet-sink/guides/plugins'), - ], false), - group('帮助与诊断', [ - page('故障排查', '/projects/znet-sink/guides/troubleshooting'), page('数据与诊断', '/projects/znet-sink/guides/data-and-diagnostics'), + page('操作入口速查', '/projects/znet-sink/guides/features'), + page('阅读说明', '/projects/znet-sink/guides/'), ]), - group('参与项目', [ - page('参与 ZNet Sink', '/projects/znet-sink/contributing/'), - ]), + group('参与项目', [page('规范与贡献指南', '/projects/znet-sink/contributing/')]), ] const zboardSidebar: DefaultTheme.SidebarItem[] = [ - page('ZBoard 自用与分享', '/projects/zboard/'), + page('ZBoard', '/projects/zboard/'), group('开始使用', [ - page('用户指南', '/projects/zboard/guides/'), - page('安装与部署', '/projects/zboard/guides/installation'), - page('首次初始化与交付', '/projects/zboard/guides/first-setup'), - page('日常管理', '/projects/zboard/guides/daily-operations'), - page('数据存储与备份', '/projects/zboard/guides/storage-and-backups'), + page('从部署到第一条线路', '/projects/zboard/guides/'), + page('日常使用与分享', '/projects/zboard/guides/daily-operations'), + page('订阅配置与用量', '/projects/zboard/guides/subscriptions-and-traffic'), + page('故障排查', '/projects/zboard/guides/troubleshooting'), ], false), - group('按需管理', [ + group('节点与订阅管理', [ page('节点管理', '/projects/zboard/guides/node-management'), page('协议服务', '/projects/zboard/guides/protocol-services'), - page('网络前置与共享代理池', '/projects/zboard/guides/network-fronting'), - page('套餐与订单', '/projects/zboard/guides/plans-and-orders'), - page('订阅与流量', '/projects/zboard/guides/subscriptions-and-traffic'), + page('前置入口与共享代理池', '/projects/zboard/guides/network-fronting'), + page('分配订阅与订单', '/projects/zboard/guides/plans-and-orders'), page('订阅筛选', '/projects/zboard/guides/subscription-filtering'), + ]), + group('站点维护', [ + page('部署选项', '/projects/zboard/guides/installation'), + page('初始化设置', '/projects/zboard/guides/first-setup'), + page('数据存储与备份', '/projects/zboard/guides/storage-and-backups'), + page('升级与数据库维护', '/projects/zboard/guides/maintenance'), + page('节点清理', '/projects/zboard/guides/node-cleanup'), page('公告与邮件', '/projects/zboard/guides/announcements-and-email'), page('DNS 与证书', '/projects/zboard/guides/dns-and-certificates'), - page('系统维护', '/projects/zboard/guides/maintenance'), - page('节点清理', '/projects/zboard/guides/node-cleanup'), - page('故障排查', '/projects/zboard/guides/troubleshooting'), ]), group('插件扩展', [ - page('插件能力与边界', '/projects/zboard/plugins/'), + page('插件使用说明', '/projects/zboard/plugins/'), page('配置市场与安装插件', '/projects/zboard/plugins/marketplace'), - page('启用第三方登录', '/projects/zboard/plugins/login'), + page('第三方登录', '/projects/zboard/plugins/login'), page('安装安全与信任', '/projects/zboard/plugins/trust'), ]), - group('参考(按需查阅)', [ + group('技术参考', [ page('配置与运行参考', '/projects/zboard/reference/'), - page('核心模块与交付边界', '/projects/zboard/reference/core-modules'), + page('资源与访问权限', '/projects/zboard/reference/core-modules'), page('节点配置交付', '/projects/zboard/reference/node-config-delivery'), page('规则兼容性', '/projects/zboard/reference/managed-rule-compatibility'), group('插件接口', [ @@ -187,17 +162,11 @@ const zboardSidebar: DefaultTheme.SidebarItem[] = [ ] export const sidebar: DefaultTheme.Sidebar = { - '/progress': solutionSidebar, - '/solutions/': solutionSidebar, + '/progress': projectSidebar, + '/solutions/': projectSidebar, '/community/': communitySidebar, '/projects/core/': coreSidebar, '/projects/znet-sink/': sinkSidebar, '/projects/zboard/': zboardSidebar, - '/projects/': [ - page('项目目录', '/projects/'), - page('版本与使用限制', '/progress'), - group('应用', [page('ZNet Sink', '/projects/znet-sink/')]), - group('内核', [page('Zero Core', '/projects/core/')]), - group('基础面板', [page('ZBoard', '/projects/zboard/')]), - ], + '/projects/': projectSidebar, } diff --git a/docs/.vitepress/projects.json b/docs/.vitepress/projects.json index 45b9571..7470ea4 100644 --- a/docs/.vitepress/projects.json +++ b/docs/.vitepress/projects.json @@ -8,7 +8,7 @@ "status": "active", "repository": "https://github.com/zerodenet/znet-sink", "docsRoot": "/projects/znet-sink/", - "quickStart": "/projects/znet-sink/guides/installation", + "quickStart": "/projects/znet-sink/guides/first-connection", "download": "https://github.com/zerodenet/znet-sink/releases/latest", "downloadPage": "/download", "platforms": ["Windows", "macOS", "Linux"], @@ -37,7 +37,7 @@ "status": "active", "repository": "https://github.com/zerodenet/zboard", "docsRoot": "/projects/zboard/", - "quickStart": "/projects/zboard/guides/installation", + "quickStart": "/projects/zboard/guides/", "audiences": ["operator", "contributor"] } ] diff --git a/docs/.vitepress/theme/components/ProjectCatalog.vue b/docs/.vitepress/theme/components/ProjectCatalog.vue index 3dea670..530676a 100644 --- a/docs/.vitepress/theme/components/ProjectCatalog.vue +++ b/docs/.vitepress/theme/components/ProjectCatalog.vue @@ -5,7 +5,6 @@ import { projectKindLabels, projectStatusLabels, projects } from '../../projects defineProps<{ compact?: boolean }>() const displayAddress = (url: string) => url.replace(/^https?:\/\//, '') -const quickStartLabel = (kind: string) => kind === 'application' ? '安装与使用' : '快速开始' const downloadHref = (project: (typeof projects)[number]) => ( project.downloadPage ? withBase(project.downloadPage) : project.download ) @@ -47,8 +46,8 @@ const downloadHref = (project: (typeof projects)[number]) => (