Artifacts

Git2Docs works with several key artifacts that flow through the system, from code analysis to published documentation.

Product Brief

The product brief is a structured representation of your product extracted from analyzing the codebase. It serves as the foundation for all documentation generation.

{
  "productName": "Git2Docs",
  "oneLiner": "AI-powered documentation from code",
  "targetAudience": "Software development teams",
  "audienceLevel": "intermediate",
  "deploymentModel": "saas",
  "primaryWorkflows": [
    "Connect GitHub repository",
    "Generate documentation",
    "Review and edit content",
    "Publish to custom domain"
  ],
  "keyConcepts": [
    "Documentation spaces",
    "Doc nodes and sections",
    "Ownership states",
    "Confidence tiers"
  ],
  "components": [
    "Worker (documentation engine)",
    "Web app (portal and dashboard)",
    "Database (content storage)"
  ]
}

The brief is stored in the database and can be edited by humans to correct any misunderstandings the AI may have had.

Documentation Space

A space is a collection of related documentation pages. Each repository can have multiple spaces, such as:

  • Getting Started - Onboarding and quickstart guides
  • User Guide - In-depth usage documentation
  • API Reference - Technical API documentation
  • Architecture - System design and concepts

Spaces appear as cards on the documentation portal home page, allowing users to navigate to the documentation they need.

FieldDescription
nameDisplay name of the space
slugURL-safe identifier
descriptionBrief description shown on cards
iconEmoji or icon identifier
orderingDisplay order on the portal

Doc Node

A doc node represents an individual documentation page. Nodes can be organized hierarchically with parent-child relationships.

FieldDescription
titlePage title
slugURL path segment
descriptionPage summary
doc_typeType of documentation (see below)
source_typeai_synthesized or api_reference
parent_idParent node for hierarchy
source_hintsFile globs and references for synthesis

Doc Types

Each page has a doc type that determines its structure and sections:

  • guide - Step-by-step instructions for tasks
  • tutorial - Learning-oriented walkthroughs
  • concept - Explanations of key ideas
  • architecture - System design documentation
  • cli_reference - Command-line interface reference
  • api_reference - API endpoint or function reference
  • runbook - Operational procedures
  • changelog - Version history and release notes

Doc Section

Each doc node contains multiple sections. Sections are the granular units of content that can be individually edited and tracked.

FieldDescription
section_typeType of section (overview, steps, etc.)
ownership_stateai_owned or human_owned
orderingDisplay order within the page

Ownership States

  • ai_owned - Content generated by AI. Will be updated on regeneration.
  • human_owned - Content edited by a human. Protected from AI overwrites.
  • contested - AI wants to update human-owned content. Requires resolution.

Section Version

Each section maintains a version history. This enables tracking changes over time and understanding where content came from.

FieldDescription
contentThe actual markdown content
confidence_tierhigh, medium, or low
author_typeai or human
provenanceJSON tracking source artifacts
is_currentWhether this is the active version

Code Artifact

For API reference documentation, Git2Docs extracts code artifacts from your source files using tree-sitter parsing.

  • Functions and methods
  • Classes and interfaces
  • Type definitions
  • Constants and exports

Each artifact is tracked with dual hashes for smart change detection between versions.