Documentation Architecture & Contribution
Documentation Architecture & Contribution
Section titled “Documentation Architecture & Contribution”This site (github-docs) is the unified public portal aggregating documentation, API specifications, and architecture guides across the ALNEAS ecosystem (eaos-workspace, tools, and web-framework).
How It Works
Section titled “How It Works”flowchart TD subgraph Upstream["Upstream Repositories"] SRC["TypeScript Source Code<br/>(English JSDocs)"] GUIDES["Markdown Guides<br/>(docs/**/*.md)"] MANIFEST["docs.manifest.json"] end
subgraph Pipeline["Ingestion & Translation"] INGEST["scripts/ingest.ts<br/>(Manifest Inporter & Link Rewriter)"] DOCGEN["scripts/docgen.ts<br/>(Swagger-Style Card Generator)"] TRANSLATE["scripts/translate.ts<br/>(AI CLI: agy / codex / claude)"] DICT["src/data/translations/api-ja.json"] end
subgraph PublicSite["Cloudflare Pages (Global Edge)"] EN["English Root Docs (/)"] JA["Japanese Docs (/ja/)"] EDGE["Edge Cache & _redirects"] end
GUIDES --> MANIFEST --> INGEST --> EN SRC --> DOCGEN --> EN DOCGEN --> DICT --> TRANSLATE --> JA EN --> EDGE JA --> EDGEKey Design Principles
Section titled “Key Design Principles”1. Source of Truth (SSOT) Stays in Owning Projects
Section titled “1. Source of Truth (SSOT) Stays in Owning Projects”- We never write or edit technical documentation directly in generated output folders.
- Each owning project maintains its own canonical technical documentation.
github-docsacts as a one-way aggregation hub.
2. Diátaxis Architecture
Section titled “2. Diátaxis Architecture”Every document belongs to one of four archetypes:
- Tutorials: Beginner-focused onboarding from 0 to 1.
- How-To Guides: Practical recipes for accomplishing specific tasks.
- Reference: Machine-precise API specifications and options (Swagger/Card format).
- Explanation: Architectural rationale, design choices, and boundaries.
3. Graceful Bilingual Parity
Section titled “3. Graceful Bilingual Parity”- English First: External contributors can contribute using English alone.
- Zero Broken Builds: Missing Japanese translations gracefully fall back to English without throwing errors.
- AI CLI Translation: Maintainers run
bun run translatelocally with their preferred engine (antigravity,codex, orclaude) to populate Japanese mirrors.
Connecting a Project to github-docs
Section titled “Connecting a Project to github-docs”To register a new package or project, place a docs.manifest.json in your repository root:
{ "$schema": "https://alneas.github.io/schemas/docs-manifest.v1.json", "projectId": "my-project", "displayName": "My New Project", "documents": [ { "title": "Getting Started", "slug": "getting-started", "source": "docs/getting-started.md", "sourceJa": "docs/getting-started.ja.md", "archetype": "how-to" } ]}Verify your manifest locally before pushing:
bun --cwd ../github-docs ingest --verify --project=./docs.manifest.json