Skip to main content

Docs Guide Structure Policy

Defines what belongs in docs-guide/, how it is organised, and what rules apply to each content type.

Scope


Canonical Structure

No other subdirectories are permitted at this level without an explicit policy update.

Rules

  1. Canonical sections only — new top-level subdirectories under docs-guide/ require a policy update to this document before they can be created.
  2. No 0-byte stubs — placeholder files with no content (e.g. source-of-truth.md stubs) are not permitted. A file at a nav path must contain real content or must not exist.
  3. Generated files must not be manually edited — all files in docs-guide/catalog/ are auto-generated. They carry a generated-file-banner:v1 comment block identifying their generator script. Manual edits will be overwritten on the next run.
  4. Generated files must stay current — if a generator’s source input changes (workflows, templates, docs.json, v2/index.mdx), the corresponding catalog must be regenerated before the PR merges. The check-docs-guide-catalogs.yml CI workflow enforces this.
  5. Naming conventions — follow the suffix pattern for each section:
    • catalog/ files: <subject>-catalog.mdx
    • policies/ files: <subject>-policy.mdx or <subject>-governance.mdx
    • frameworks/ files: <subject>-framework.mdx
    • features/ files: <subject>.mdx (no suffix required)
    • tooling/ files: <subject>.mdx or <subject>-reference.mdx
    • repoOps/ files: <subject>-map.mdx for maps; <subject>-secrets.mdx for secrets; <subject>-config.mdx for config references
  6. No -index.mdx naming — the -index.mdx suffix is retired. Use -catalog.mdx for generated inventories and descriptive names for hand-maintained pages.
  7. Archive before delete — files being removed from navigation must move to _workspace/archive/ with a 90-day TTL before permanent deletion, unless they are empty stubs (0-byte files may be deleted immediately).
  8. _workspace/ is not a nav path — docs-guide/_workspace/ must never appear in docs.json. It is covered by .mintignore.

Enforcement


Exceptions

  • docs-guide/_workspace/ — exempt from nav and naming rules; governed by workspace-lifecycle-policy.mdx.
  • docs-guide/catalog/ai-tools.mdx — migrated to docs-guide/tooling/ai-tools.mdx; this exception is now resolved.
  • Legacy files in _workspace/archive/ during their 90-day TTL window are not subject to naming enforcement.

Last modified on April 7, 2026