This document defines documentation standards for the t-ruby project.
User-facing documentation for software users.
- Purpose: Installation guides, usage tutorials, API references
- Location: Project root (
README.md, etc.) - Primary language: English (translations must maintain parity)
Contributor-facing documentation for project development.
- Purpose: Architecture specs, coding standards, internal APIs
- Location:
.claude/directory - Primary language: English (translations must maintain parity)
English is the project's standard language.
All documents must be maintained in three languages:
| Language | Suffix | Example |
|---|---|---|
| English | (none) | README.md |
| Japanese | .ja |
README.ja.md |
| Korean | .ko |
README.ko.md |
Each document must include links to its translations at the top:
**Translations:** [日本語](./README.ja.md) | [한국어](./README.ko.md)All development documents must be under 200 lines.
Every development document must declare compliance at the top:
<!-- Follows Document Simplification Principle: max 200 lines -->When a document exceeds 200 lines:
- Create a folder with the same name as the document
- Move heavy sections to separate files in order of size
- Keep the main file as an overview with links to split sections
- All split files must maintain the 200-line limit
Example:
Before:
.claude/
└── spec.md (350 lines)
After:
.claude/spec/
├── README.md (overview, ~80 lines)
├── syntax.md (split section)
├── type-system.md (split section)
└── ast.md (split section)
README.md # English (primary)
README.ja.md # Japanese
README.ko.md # Korean
.claude/docs/DOCUMENTATION.md # This guide
.claude/spec/README.md # Language specification
When splitting into a folder, use README.md as the main entry point:
.claude/{topic}/
├── README.md # Overview + table of contents
├── section-a.md # Split section
└── section-b.md # Split section
- Sync translations: When updating any document, update all translations
- Check line counts: Verify documents stay under 200 lines
- Update links: Ensure cross-references remain valid after changes
- Review declarations: All development documents must have the simplification declaration