From faf90196c552ad868df17a20566ddc6af4796a38 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Sun, 15 Mar 2026 23:45:17 +0800 Subject: [PATCH] docs: add bilingual docs structure --- docs/DOC_COVERAGE.md | 14 ++++++++++++++ docs/README.md | 33 ++++++++++++++++++++++++++++++++ docs/en/README.md | 25 ++++++++++++++++++++++++ docs/en/architecture.md | 24 +++++++++++++++++++++++ docs/en/deployment.md | 24 +++++++++++++++++++++++ docs/en/design.md | 24 +++++++++++++++++++++++ docs/en/developer-guide.md | 24 +++++++++++++++++++++++ docs/en/user-guide.md | 24 +++++++++++++++++++++++ docs/en/vibe-coding-reference.md | 24 +++++++++++++++++++++++ docs/zh/README.md | 25 ++++++++++++++++++++++++ docs/zh/architecture.md | 24 +++++++++++++++++++++++ docs/zh/deployment.md | 24 +++++++++++++++++++++++ docs/zh/design.md | 24 +++++++++++++++++++++++ docs/zh/developer-guide.md | 24 +++++++++++++++++++++++ docs/zh/user-guide.md | 24 +++++++++++++++++++++++ docs/zh/vibe-coding-reference.md | 24 +++++++++++++++++++++++ 16 files changed, 385 insertions(+) create mode 100644 docs/DOC_COVERAGE.md create mode 100644 docs/README.md create mode 100644 docs/en/README.md create mode 100644 docs/en/architecture.md create mode 100644 docs/en/deployment.md create mode 100644 docs/en/design.md create mode 100644 docs/en/developer-guide.md create mode 100644 docs/en/user-guide.md create mode 100644 docs/en/vibe-coding-reference.md create mode 100644 docs/zh/README.md create mode 100644 docs/zh/architecture.md create mode 100644 docs/zh/deployment.md create mode 100644 docs/zh/design.md create mode 100644 docs/zh/developer-guide.md create mode 100644 docs/zh/user-guide.md create mode 100644 docs/zh/vibe-coding-reference.md diff --git a/docs/DOC_COVERAGE.md b/docs/DOC_COVERAGE.md new file mode 100644 index 0000000..0b39ad4 --- /dev/null +++ b/docs/DOC_COVERAGE.md @@ -0,0 +1,14 @@ +# Documentation Coverage Matrix + +This matrix tracks the bilingual canonical documentation set for `gitops` and maps it back to the current codebase and older docs. + +该矩阵用于跟踪 `gitops` 的双语规范文档,并将其与当前代码状态和历史文档对应起来。 + +| Category | EN | ZH | Current status | Existing references | Next check | +| --- | --- | --- | --- | --- | --- | +| Architecture | Yes | Yes | Seeded from current codebase and existing docs. | `repo-structure.md` | Keep diagrams and ownership notes synchronized with actual directories, services, and integration dependencies. | +| Design | Yes | Yes | Seeded from current codebase and existing docs. | `stackflow/README.md` | Promote one-off implementation notes into reusable design records when behavior, APIs, or deployment contracts change. | +| Deployment | Yes | Yes | Seeded from current codebase; deeper legacy consolidation is still needed. | None yet; use the new canonical page as the starting point. | Verify deployment steps against current scripts, manifests, CI/CD flow, and environment contracts before each release. | +| User Guide | Yes | Yes | Seeded from current codebase; deeper legacy consolidation is still needed. | None yet; use the new canonical page as the starting point. | Prefer workflow-oriented examples and keep screenshots or terminal snippets aligned with the latest UI or CLI behavior. | +| Developer Guide | Yes | Yes | Seeded from current codebase; deeper legacy consolidation is still needed. | None yet; use the new canonical page as the starting point. | Keep setup and test commands tied to actual package scripts, Make targets, or language toolchains in this repository. | +| Vibe Coding Reference | Yes | Yes | Seeded from current codebase; deeper legacy consolidation is still needed. | None yet; use the new canonical page as the starting point. | Review prompt templates and repo rules whenever the project adds new subsystems, protected areas, or mandatory verification steps. | diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..86a685e --- /dev/null +++ b/docs/README.md @@ -0,0 +1,33 @@ +# GitOps Repository / GitOps 运维仓库 + +This `docs/` directory now has a bilingual canonical layer for the current repository state. + +本 `docs/` 目录现已补齐双语规范层,用于承接当前仓库状态下的核心文档。 + +## Quick Entry / 快速入口 + +- Coverage checklist / 覆盖检查矩阵: `docs/DOC_COVERAGE.md` +- English index / 英文入口: `docs/en/README.md` +- 中文入口 / Chinese index: `docs/zh/README.md` + +## Canonical Bilingual Pages / 双语规范页 + +- `docs/en/architecture.md` / `docs/zh/architecture.md` +- `docs/en/design.md` / `docs/zh/design.md` +- `docs/en/deployment.md` / `docs/zh/deployment.md` +- `docs/en/user-guide.md` / `docs/zh/user-guide.md` +- `docs/en/developer-guide.md` / `docs/zh/developer-guide.md` +- `docs/en/vibe-coding-reference.md` / `docs/zh/vibe-coding-reference.md` + +## Current Repo Context / 当前仓库背景 + +- Root README: `ansible-playbook` +- Previous docs index: `Documentation` +- Manifest evidence / 构建清单: repository structure and scripts only +- Active code and ops directories / 当前主要目录: `scripts/`, `StackFlow/`, `config/` + +## Existing Docs To Reconcile / 需要继续归并的现有文档 + +- `gpu-k8s-role.md` +- `repo-structure.md` +- `stackflow/README.md` diff --git a/docs/en/README.md b/docs/en/README.md new file mode 100644 index 0000000..0c42527 --- /dev/null +++ b/docs/en/README.md @@ -0,0 +1,25 @@ +# GitOps Repository Documentation + +This repository organizes GitOps assets, playbooks, and operational roles for infrastructure delivery. + +## Current state snapshot + +- Root README title: `ansible-playbook` +- Build/runtime evidence: repository structure and scripts only +- Primary directories detected: `scripts/`, `StackFlow/`, `config/` +- Existing docs count: 3 + +## Canonical pages + +- [Architecture](architecture.md) +- [Design](design.md) +- [Deployment](deployment.md) +- [User Guide](user-guide.md) +- [Developer Guide](developer-guide.md) +- [Vibe Coding Reference](vibe-coding-reference.md) + +## Legacy docs to fold in + +- `gpu-k8s-role.md` +- `repo-structure.md` +- `stackflow/README.md` diff --git a/docs/en/architecture.md b/docs/en/architecture.md new file mode 100644 index 0000000..8ad2ace --- /dev/null +++ b/docs/en/architecture.md @@ -0,0 +1,24 @@ +# Architecture + +This repository organizes GitOps assets, playbooks, and operational roles for infrastructure delivery. + +Use this page as the canonical bilingual overview of system boundaries, major components, and repo ownership. + +## Current code-aligned notes + +- Documentation target: `gitops` +- Repo kind: `infra-repo` +- Manifest and build evidence: repository structure and scripts only +- Primary implementation and ops directories: `scripts/`, `StackFlow/`, `config/` +- Package scripts snapshot: No package.json scripts were detected. + +## Existing docs to reconcile + +- `repo-structure.md` + +## What this page should cover next + +- Describe the current implementation rather than an aspirational future-only design. +- Keep terminology aligned with the repository root README, manifests, and actual directories. +- Link deeper runbooks, specs, or subsystem notes from the legacy docs listed above. +- Keep diagrams and ownership notes synchronized with actual directories, services, and integration dependencies. diff --git a/docs/en/deployment.md b/docs/en/deployment.md new file mode 100644 index 0000000..c36d318 --- /dev/null +++ b/docs/en/deployment.md @@ -0,0 +1,24 @@ +# Deployment + +This repository organizes GitOps assets, playbooks, and operational roles for infrastructure delivery. + +Use this page to standardize deployment prerequisites, supported topologies, operational checks, and rollback notes. + +## Current code-aligned notes + +- Documentation target: `gitops` +- Repo kind: `infra-repo` +- Manifest and build evidence: repository structure and scripts only +- Primary implementation and ops directories: `scripts/`, `StackFlow/`, `config/` +- Package scripts snapshot: No package.json scripts were detected. + +## Existing docs to reconcile + +- No directly matching legacy docs were detected; this page is currently the canonical seed. + +## What this page should cover next + +- Describe the current implementation rather than an aspirational future-only design. +- Keep terminology aligned with the repository root README, manifests, and actual directories. +- Link deeper runbooks, specs, or subsystem notes from the legacy docs listed above. +- Verify deployment steps against current scripts, manifests, CI/CD flow, and environment contracts before each release. diff --git a/docs/en/design.md b/docs/en/design.md new file mode 100644 index 0000000..ea398f3 --- /dev/null +++ b/docs/en/design.md @@ -0,0 +1,24 @@ +# Design + +This repository organizes GitOps assets, playbooks, and operational roles for infrastructure delivery. + +Use this page to consolidate design decisions, ADR-style tradeoffs, and roadmap-sensitive implementation notes. + +## Current code-aligned notes + +- Documentation target: `gitops` +- Repo kind: `infra-repo` +- Manifest and build evidence: repository structure and scripts only +- Primary implementation and ops directories: `scripts/`, `StackFlow/`, `config/` +- Package scripts snapshot: No package.json scripts were detected. + +## Existing docs to reconcile + +- `stackflow/README.md` + +## What this page should cover next + +- Describe the current implementation rather than an aspirational future-only design. +- Keep terminology aligned with the repository root README, manifests, and actual directories. +- Link deeper runbooks, specs, or subsystem notes from the legacy docs listed above. +- Promote one-off implementation notes into reusable design records when behavior, APIs, or deployment contracts change. diff --git a/docs/en/developer-guide.md b/docs/en/developer-guide.md new file mode 100644 index 0000000..6064394 --- /dev/null +++ b/docs/en/developer-guide.md @@ -0,0 +1,24 @@ +# Developer Guide + +This repository organizes GitOps assets, playbooks, and operational roles for infrastructure delivery. + +Use this page to document local setup, project structure, test surfaces, and contribution conventions tied to the current codebase. + +## Current code-aligned notes + +- Documentation target: `gitops` +- Repo kind: `infra-repo` +- Manifest and build evidence: repository structure and scripts only +- Primary implementation and ops directories: `scripts/`, `StackFlow/`, `config/` +- Package scripts snapshot: No package.json scripts were detected. + +## Existing docs to reconcile + +- No directly matching legacy docs were detected; this page is currently the canonical seed. + +## What this page should cover next + +- Describe the current implementation rather than an aspirational future-only design. +- Keep terminology aligned with the repository root README, manifests, and actual directories. +- Link deeper runbooks, specs, or subsystem notes from the legacy docs listed above. +- Keep setup and test commands tied to actual package scripts, Make targets, or language toolchains in this repository. diff --git a/docs/en/user-guide.md b/docs/en/user-guide.md new file mode 100644 index 0000000..d940bac --- /dev/null +++ b/docs/en/user-guide.md @@ -0,0 +1,24 @@ +# User Guide + +This repository organizes GitOps assets, playbooks, and operational roles for infrastructure delivery. + +Use this page to document primary user/operator tasks, everyday workflows, and navigation to existing how-to material. + +## Current code-aligned notes + +- Documentation target: `gitops` +- Repo kind: `infra-repo` +- Manifest and build evidence: repository structure and scripts only +- Primary implementation and ops directories: `scripts/`, `StackFlow/`, `config/` +- Package scripts snapshot: No package.json scripts were detected. + +## Existing docs to reconcile + +- No directly matching legacy docs were detected; this page is currently the canonical seed. + +## What this page should cover next + +- Describe the current implementation rather than an aspirational future-only design. +- Keep terminology aligned with the repository root README, manifests, and actual directories. +- Link deeper runbooks, specs, or subsystem notes from the legacy docs listed above. +- Prefer workflow-oriented examples and keep screenshots or terminal snippets aligned with the latest UI or CLI behavior. diff --git a/docs/en/vibe-coding-reference.md b/docs/en/vibe-coding-reference.md new file mode 100644 index 0000000..acf5caf --- /dev/null +++ b/docs/en/vibe-coding-reference.md @@ -0,0 +1,24 @@ +# Vibe Coding Reference + +This repository organizes GitOps assets, playbooks, and operational roles for infrastructure delivery. + +Use this page to align AI-assisted coding prompts, repo boundaries, safe edit rules, and documentation update expectations. + +## Current code-aligned notes + +- Documentation target: `gitops` +- Repo kind: `infra-repo` +- Manifest and build evidence: repository structure and scripts only +- Primary implementation and ops directories: `scripts/`, `StackFlow/`, `config/` +- Package scripts snapshot: No package.json scripts were detected. + +## Existing docs to reconcile + +- No directly matching legacy docs were detected; this page is currently the canonical seed. + +## What this page should cover next + +- Describe the current implementation rather than an aspirational future-only design. +- Keep terminology aligned with the repository root README, manifests, and actual directories. +- Link deeper runbooks, specs, or subsystem notes from the legacy docs listed above. +- Review prompt templates and repo rules whenever the project adds new subsystems, protected areas, or mandatory verification steps. diff --git a/docs/zh/README.md b/docs/zh/README.md new file mode 100644 index 0000000..d440457 --- /dev/null +++ b/docs/zh/README.md @@ -0,0 +1,25 @@ +# GitOps 运维仓库 文档 + +该仓库组织 GitOps 资产、Playbook 与基础设施交付所需的运维角色。 + +## 当前状态快照 + +- 根 README 标题: `ansible-playbook` +- 构建与运行时证据: repository structure and scripts only +- 自动识别的主要目录: `scripts/`, `StackFlow/`, `config/` +- 现有文档数量: 3 + +## 核心双语文档 + +- [架构](architecture.md) +- [设计](design.md) +- [部署](deployment.md) +- [使用手册](user-guide.md) +- [开发手册](developer-guide.md) +- [Vibe Coding 参考](vibe-coding-reference.md) + +## 待归并的历史文档 + +- `gpu-k8s-role.md` +- `repo-structure.md` +- `stackflow/README.md` diff --git a/docs/zh/architecture.md b/docs/zh/architecture.md new file mode 100644 index 0000000..3325ae5 --- /dev/null +++ b/docs/zh/architecture.md @@ -0,0 +1,24 @@ +# 架构 + +该仓库组织 GitOps 资产、Playbook 与基础设施交付所需的运维角色。 + +本页作为系统边界、核心组件与仓库职责的双语总览入口。 + +## 与当前代码对齐的说明 + +- 文档目标仓库: `gitops` +- 仓库类型: `infra-repo` +- 构建与运行依据: repository structure and scripts only +- 主要实现与运维目录: `scripts/`, `StackFlow/`, `config/` +- `package.json` 脚本快照: No package.json scripts were detected. + +## 需要继续归并的现有文档 + +- `repo-structure.md` + +## 本页下一步应补充的内容 + +- 先描述当前已落地实现,再补充未来规划,避免只写愿景不写现状。 +- 术语需要与仓库根 README、构建清单和实际目录保持一致。 +- 将上方列出的历史 runbook、spec、子系统说明逐步链接并归并到本页。 +- 随着目录结构、服务关系和集成依赖变化,持续同步图示与职责说明。 diff --git a/docs/zh/deployment.md b/docs/zh/deployment.md new file mode 100644 index 0000000..4170f84 --- /dev/null +++ b/docs/zh/deployment.md @@ -0,0 +1,24 @@ +# 部署 + +该仓库组织 GitOps 资产、Playbook 与基础设施交付所需的运维角色。 + +本页用于统一部署前提、支持的拓扑、运维检查项与回滚注意事项。 + +## 与当前代码对齐的说明 + +- 文档目标仓库: `gitops` +- 仓库类型: `infra-repo` +- 构建与运行依据: repository structure and scripts only +- 主要实现与运维目录: `scripts/`, `StackFlow/`, `config/` +- `package.json` 脚本快照: No package.json scripts were detected. + +## 需要继续归并的现有文档 + +- 尚未发现直接对应的历史文档,本页目前就是该类别的规范起点。 + +## 本页下一步应补充的内容 + +- 先描述当前已落地实现,再补充未来规划,避免只写愿景不写现状。 +- 术语需要与仓库根 README、构建清单和实际目录保持一致。 +- 将上方列出的历史 runbook、spec、子系统说明逐步链接并归并到本页。 +- 每次发布前,依据当前脚本、清单、CI/CD 流程和环境契约重新核对部署步骤。 diff --git a/docs/zh/design.md b/docs/zh/design.md new file mode 100644 index 0000000..70238ad --- /dev/null +++ b/docs/zh/design.md @@ -0,0 +1,24 @@ +# 设计 + +该仓库组织 GitOps 资产、Playbook 与基础设施交付所需的运维角色。 + +本页用于汇总设计决策、类似 ADR 的权衡记录,以及与路线图相关的实现说明。 + +## 与当前代码对齐的说明 + +- 文档目标仓库: `gitops` +- 仓库类型: `infra-repo` +- 构建与运行依据: repository structure and scripts only +- 主要实现与运维目录: `scripts/`, `StackFlow/`, `config/` +- `package.json` 脚本快照: No package.json scripts were detected. + +## 需要继续归并的现有文档 + +- `stackflow/README.md` + +## 本页下一步应补充的内容 + +- 先描述当前已落地实现,再补充未来规划,避免只写愿景不写现状。 +- 术语需要与仓库根 README、构建清单和实际目录保持一致。 +- 将上方列出的历史 runbook、spec、子系统说明逐步链接并归并到本页。 +- 当行为、API 或部署契约发生变化时,把一次性实现笔记提升为可复用设计记录。 diff --git a/docs/zh/developer-guide.md b/docs/zh/developer-guide.md new file mode 100644 index 0000000..1eae4e3 --- /dev/null +++ b/docs/zh/developer-guide.md @@ -0,0 +1,24 @@ +# 开发手册 + +该仓库组织 GitOps 资产、Playbook 与基础设施交付所需的运维角色。 + +本页用于记录本地开发环境、项目结构、测试面与贴合当前代码库的贡献约定。 + +## 与当前代码对齐的说明 + +- 文档目标仓库: `gitops` +- 仓库类型: `infra-repo` +- 构建与运行依据: repository structure and scripts only +- 主要实现与运维目录: `scripts/`, `StackFlow/`, `config/` +- `package.json` 脚本快照: No package.json scripts were detected. + +## 需要继续归并的现有文档 + +- 尚未发现直接对应的历史文档,本页目前就是该类别的规范起点。 + +## 本页下一步应补充的内容 + +- 先描述当前已落地实现,再补充未来规划,避免只写愿景不写现状。 +- 术语需要与仓库根 README、构建清单和实际目录保持一致。 +- 将上方列出的历史 runbook、spec、子系统说明逐步链接并归并到本页。 +- 持续让环境搭建与测试命令对应真实存在的脚本、Make 目标或语言工具链。 diff --git a/docs/zh/user-guide.md b/docs/zh/user-guide.md new file mode 100644 index 0000000..7e72a44 --- /dev/null +++ b/docs/zh/user-guide.md @@ -0,0 +1,24 @@ +# 使用手册 + +该仓库组织 GitOps 资产、Playbook 与基础设施交付所需的运维角色。 + +本页用于记录主要用户或运维角色的日常任务、常见流程,以及现有操作文档入口。 + +## 与当前代码对齐的说明 + +- 文档目标仓库: `gitops` +- 仓库类型: `infra-repo` +- 构建与运行依据: repository structure and scripts only +- 主要实现与运维目录: `scripts/`, `StackFlow/`, `config/` +- `package.json` 脚本快照: No package.json scripts were detected. + +## 需要继续归并的现有文档 + +- 尚未发现直接对应的历史文档,本页目前就是该类别的规范起点。 + +## 本页下一步应补充的内容 + +- 先描述当前已落地实现,再补充未来规划,避免只写愿景不写现状。 +- 术语需要与仓库根 README、构建清单和实际目录保持一致。 +- 将上方列出的历史 runbook、spec、子系统说明逐步链接并归并到本页。 +- 优先提供面向流程的示例,并确保截图或终端片段与最新 UI/CLI 行为一致。 diff --git a/docs/zh/vibe-coding-reference.md b/docs/zh/vibe-coding-reference.md new file mode 100644 index 0000000..a45bc1b --- /dev/null +++ b/docs/zh/vibe-coding-reference.md @@ -0,0 +1,24 @@ +# Vibe Coding 参考 + +该仓库组织 GitOps 资产、Playbook 与基础设施交付所需的运维角色。 + +本页用于统一 AI 辅助开发提示词、仓库边界、安全编辑规则与文档同步要求。 + +## 与当前代码对齐的说明 + +- 文档目标仓库: `gitops` +- 仓库类型: `infra-repo` +- 构建与运行依据: repository structure and scripts only +- 主要实现与运维目录: `scripts/`, `StackFlow/`, `config/` +- `package.json` 脚本快照: No package.json scripts were detected. + +## 需要继续归并的现有文档 + +- 尚未发现直接对应的历史文档,本页目前就是该类别的规范起点。 + +## 本页下一步应补充的内容 + +- 先描述当前已落地实现,再补充未来规划,避免只写愿景不写现状。 +- 术语需要与仓库根 README、构建清单和实际目录保持一致。 +- 将上方列出的历史 runbook、spec、子系统说明逐步链接并归并到本页。 +- 当项目新增子系统、受保护目录或强制验证步骤时,同步更新提示模板与仓库规则。