Skip to content

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).

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 --> EDGE

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-docs acts as a one-way aggregation hub.

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.
  • 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 translate locally with their preferred engine (antigravity, codex, or claude) to populate Japanese mirrors.

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:

Terminal window
bun --cwd ../github-docs ingest --verify --project=./docs.manifest.json