Anydocs Documents
Core Concepts

Project Structure

Understand the directory layout of a standard Anydocs docs project.

Anydocs separates the docs project from the framework source repository. Day-to-day authoring targets the docs project root with pages, navigation, and config, not Anydocs's own `packages/` source tree.

Typical Layout

my-docs/
├── anydocs.config.json
├── anydocs.workflow.json
├── pages/
│   ├── zh/
│   └── en/
├── navigation/
│   ├── zh.json
│   └── en.json
├── imports/
├── dist/
└── skill.md

Required Content

For an enabled language to work correctly, you need at least the language page directory and navigation file.

  • `pages/<lang>/`: page JSON files for that language
  • `navigation/<lang>.json`: navigation tree for that language
  • `anydocs.config.json`: project-level configuration

Common Optional Content

These directories or files appear in specific workflows.

  • `imports/`: staging area for imported legacy docs
  • `dist/`: build output directory
  • `skill.md`: project-level AI guidance, generated only in certain initialization flows
  • `anydocs.workflow.json`: workflow configuration