Skip to content

Align YAML header convention across templates, editor-manual, and DOCS/#39

Closed
MatMatt wants to merge 2 commits into
mainfrom
fix/yaml-header-convention
Closed

Align YAML header convention across templates, editor-manual, and DOCS/#39
MatMatt wants to merge 2 commits into
mainfrom
fix/yaml-header-convention

Conversation

@MatMatt

@MatMatt MatMatt commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Problem

The YAML header convention was inconsistent across three sources:

  • Templates (_meta/templates/) used double quotes, product-name, a format: block, placeholder version text
  • Editor-manual forbade version in YAML, required product-name, omitted category/toc/toc-depth/toc-title
  • Actual DOCS/ on main use no quotes, category first, toc group, version present

Changes

editor-manual_v1.qmd

  • YAML example updated to match actual convention
  • version moved from forbidden to required
  • category, toc, toc-depth, toc-title documented
  • product-name removed
  • Contradictory versioning paragraph fixed

Templates (PUM + ATBD)

  • Stripped double quotes, added category/toc/version, removed product-name

No DOCS/ content files touched — all 25 existing documents already follow this convention.

Resolve conflicts between three sources that defined different YAML
header formats. Standardize on the convention actually used by all 25
DOCS/ files on main: no double quotes, category first, toc group present,
version in YAML (not forbidden).

- editor-manual: update YAML example, move version from forbidden to
  required, add category/toc fields, remove product-name
- PUM/ATBD templates: strip double quotes, add missing fields, remove
  product-name, clean up placeholder text
@MatMatt
MatMatt requested a review from mckeea as a code owner July 5, 2026 18:50
@MatMatt MatMatt closed this Jul 5, 2026
@MatMatt
MatMatt deleted the fix/yaml-header-convention branch July 5, 2026 18:53
@MatMatt
MatMatt restored the fix/yaml-header-convention branch July 5, 2026 18:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3c77788312

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +84 to +87
toc: true
toc-depth: 3
toc-title: Content
version: 1.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep ignored fields out of required YAML

For documents created from this guide/template, these fields won't behave as required author metadata: I checked the publish path and .github/scripts/build/build-docs.sh runs strip_unknown_frontmatter.py, whose allowlist/comment says toc/toc-depth/toc-title are stripped, and then fill_version.py rewrites version from .llm_cache/versions.json or {major}.0.0 from the _vN.qmd name; the PR validator also explicitly does not check these fields. An editor following this will think changing toc-title or version controls the published document, but the build ignores/overwrites those values, leaving source metadata stale and the guide contradicted by the workflow.

Useful? React with 👍 / 👎.

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.

1 participant