Skip to content

docs: add YAML frontmatter to all docs/ markdown files#571

Merged
kcenon merged 2 commits into
mainfrom
docs/issue-562-add-yaml-frontmatter
Apr 3, 2026
Merged

docs: add YAML frontmatter to all docs/ markdown files#571
kcenon merged 2 commits into
mainfrom
docs/issue-562-add-yaml-frontmatter

Conversation

@kcenon

@kcenon kcenon commented Apr 3, 2026

Copy link
Copy Markdown
Owner

Closes #562

Summary

  • Add tools/add_frontmatter.py script that scans docs/ for markdown files and prepends standardized YAML frontmatter
  • Add frontmatter metadata to all 84 markdown files in docs/
  • Each file gets a unique doc_id (COM-{CATEGORY}-{NNN}), title, version, date, status, project, and category

Frontmatter Schema

---
doc_id: "COM-ARCH-001"
doc_title: "Document Title"
doc_version: "1.0.0"
doc_date: "2026-04-04"
doc_status: "Released"
project: "common_system"
category: "ARCH"
---

Category Breakdown (84 files)

Category Count Description
ADR 1 Decision Records
API 5 API Reference
ARCH 6 Architecture
FEAT 2 Features
GUID 27 User Guides
INTR 6 Integration
MIGR 10 Migration
PERF 4 Performance
PROJ 19 Project Info
QUAL 2 Quality
SECU 2 Security

Test Plan

  • Script runs idempotently (re-running skips all files)
  • No duplicate doc_id values
  • Existing document content unchanged (frontmatter prepended only)
  • Dry-run mode verified before actual execution

kcenon added 2 commits April 4, 2026 01:00
Create tools/add_frontmatter.py that scans docs/ for markdown files
and prepends standardized YAML frontmatter with doc_id, title,
version, date, status, project, and category fields. The script
infers category from filename patterns and generates sequential
doc_id values per category. Idempotent — skips files that already
have the standardized frontmatter block.
Add standardized YAML frontmatter metadata to 84 markdown files in
docs/. Each file gets a unique doc_id (COM-{CATEGORY}-{NNN}), title,
version, date, status, project, and category. Categories inferred
from filename patterns: ARCH, API, GUID, PERF, MIGR, PROJ, FEAT,
QUAL, SECU, INTR, ADR.

Closes #562 (common_system portion)
@kcenon kcenon merged commit 33043c0 into main Apr 3, 2026
28 checks passed
@kcenon kcenon deleted the docs/issue-562-add-yaml-frontmatter branch April 3, 2026 16:12
kcenon added a commit that referenced this pull request Apr 13, 2026
* docs(tools): add frontmatter generation script

Create tools/add_frontmatter.py that scans docs/ for markdown files
and prepends standardized YAML frontmatter with doc_id, title,
version, date, status, project, and category fields. The script
infers category from filename patterns and generates sequential
doc_id values per category. Idempotent — skips files that already
have the standardized frontmatter block.

* docs: add YAML frontmatter to all docs/ markdown files

Add standardized YAML frontmatter metadata to 84 markdown files in
docs/. Each file gets a unique doc_id (COM-{CATEGORY}-{NNN}), title,
version, date, status, project, and category. Categories inferred
from filename patterns: ARCH, API, GUID, PERF, MIGR, PROJ, FEAT,
QUAL, SECU, INTR, ADR.

Closes #562 (common_system portion)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: Add YAML frontmatter to all docs/ markdown files

1 participant