Zum Inhalt springen

Documentation as Code

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

  • Single Source of Truth: All documentation lives in the repository, version-controlled with code
  • Logical Hierarchy: Organize by domain (operations, coding, deployment, AI collaboration)
  • Consistent Naming: Use kebab-case for files and directories
  • Metadata Standardization: Include frontmatter or structured metadata for searchability
  • Action-Oriented Titles: Use verb-first naming (e.g., “Install Zensical”, “Validate Availability”)
  • Step-by-Step Procedures: Numbered lists for sequential operations
  • Code Examples: Provide executable, non-interactive examples with clear input/output
  • Error Handling: Document expected errors and resolution steps
  • Tag-Based Classification: Use consistent tags for cross-referencing
  • Cross-Links: Reference related procedures and concepts
  • Provenance Tracking: Include author, date, and update history
  • Status Indicators: Mark content as active, deferred, or deprecated
  • Non-Interactive Scripts: All executable procedures must work without user input
  • Structured Output: Return JSON or parseable stdout with exit codes
  • Idempotency: Scripts must be safe to re-run without side effects
  • Toolset Alignment: Document required tools and dependencies
  • Git-Backed: Full version history, searchability, reproducibility
  • Branch Strategy: Feature branches for documentation updates
  • Pull Requests: All changes reviewed and tested
  • Commit Messages: Clear, descriptive, and actionable
  • CI/CD Integration: Automated testing and validation of documentation
  • Linting: Ensure consistent formatting and style
  • Link Checking: Validate internal and external links
  • Build Verification: Ensure the documentation site builds successfully