This directory contains the Docusaurus documentation site for Trinity.
cd docs
yarn install
yarn startVisit http://localhost:3000 to view the documentation locally.
yarn buildStatic files are generated in build/.
IMPORTANT: Website and docs share ONE gh-pages branch. ALWAYS deploy BOTH together.
See /Users/playra/.claude/projects/-Users-playra-trinity-w1/memory/MEMORY.md for the deployment protocol.
# From docs/ directory
USE_SSH=true yarn deploy- Config:
docusaurus.config.ts - Sidebars:
sidebars.ts - baseUrl:
/trinity/docs/(NEVER change - breaks all asset paths) - routeBasePath:
/(Docs at root of /trinity/docs/)
docs/
├── docs/ # Actual documentation content
│ ├── intro.md # Introduction
│ ├── getting-started/ # Quick start guides
│ ├── api/ # API reference
│ ├── architecture/ # System architecture
│ ├── benchmarks/ # Performance benchmarks
│ ├── research/ # Research papers and reports
│ ├── depin/ # DePIN network documentation
│ ├── development/ # Development workflow
│ ├── fpga/ # FPGA documentation
│ └── internal/ # Internal documentation
├── src/ # Docusaurus source files
├── static/ # Static assets
├── sidebars.ts # Sidebar navigation
└── docusaurus.config.ts # Site configuration
| File | Purpose |
|---|---|
brain-architecture.md |
Brain module architecture |
SOUL.md |
Agent mission template |
BRAIN_ARCHITECTURE.md |
Complete brain architecture overview |
TRINITY_TAMAGOTCHI_*.md |
Queen daemon growth stages |
docs/concepts/phi-distance-formats.md (+ native-f16, positioning) |
Format/stack analysis (Docusaurus Explanations); no duplicate copies at docs/ root |
- Create
.mdfile in appropriatedocs/docs/subdirectory - Add entry to
sidebars.tsin correct category - Test locally with
yarn start - Build with
yarn build - Deploy following the shared deployment protocol
Documentation supports KaTeX for mathematical formulas.
Inline: $E = mc^2$
Block:
$$
\phi^2 + \frac{1}{\phi^2} = 3
$$Documentation supports Mermaid diagrams.
```mermaid graph TD A[Start] --> B[End] ```