Skip to content

Principle 6: Documentation structure uniformity

Consistency in structure helps readers navigate confidently and maintainers scale without confusion.

File Naming

Use lowercase with hyphens only.

DO:

  • layer-1-docker.md
  • bump-api.md
  • environment-variables-guide.md

DON'T:

  • Layer1Docker.md
  • BumpApi.md
  • Environment_Variables.md

Folder Structure

Every folder with 2 or more docs needs an index.md as a navigation hub. Single-document folders should flatten to the parent directory.

index.md should:

  • List all documents in the folder with one-line descriptions
  • Be the entry point for readers discovering the folder
  • Use consistent naming (index.md, not README.md)

Document Structure

Every document must:

  • Start with # Title matching the navigation label in zensical.toml
  • Begin with a sentence establishing context and relationship to the system
  • Use standard sections in this order:
  • Purpose or Overview
  • How It Works
  • Steps or Configuration
  • Key Concepts
  • Examples (optional)
  • Permissions or Requirements
  • Next Steps or Related Documents

Documentation Domains

Developer Experience (docs/dev/)

  • Tools, local setup, branching workflows, development guides

Platform and Infrastructure (docs/platform/)

  • Cloud architecture, CI/CD pipelines, GitOps machinery, deployment workflows

Service Specifications (docs/services/)

  • Service workloads, endpoints, API contracts, deployment specifications

Thinking and Journey (docs/thinking/)

  • Narratives, decision records, post-mortems, architectural decisions