Skip to content

Merge pull request #130 from blanketops/feat/contract-docs-generation feat: generate per-package contract docs, aligned with docs/code/ convention - #131

Merged
blanketops-environments[bot] merged 3 commits into
mainfrom
develop
Aug 23, 2026
Merged

blanketops-environments[bot] merged 3 commits into
mainfrom
develop

Conversation

@ntlaletsi70

Copy link
Copy Markdown
Collaborator

What

Why

Domain

  • environments
  • events
  • sources
  • networks
  • common
  • CI / tooling / docs

API impact

  • No API surface change
  • v1alpha1 — free to change
  • v1beta1 — backwards-compatible only, deprecations allowed
  • v1 — breaking change (requires version bump + changelog entry + migration note)

Checklist

  • mage verify passes locally
  • buf lint clean
  • buf breaking reviewed (failures justified above if pre-v1)
  • Generated code (buf generate) reflects the change — all targets (Go / C# / Java / TS)
  • BlanketOps labels present where required (environments.blanketops.dev/*)
  • Docs / ESP-0001 updated if the contract semantics changed
  • Commit messages follow Conventional Commits

Notes for reviewer

actions-user and others added 3 commits August 21, 2026 04:31
…vention

Adds `mage docs`, which generates Markdown documentation from .proto
comments via protoc-gen-doc, driven by buf -- one file per proto
package directory (docs/code/blanketops/<path>.md), matching exactly
the docs/code/ layout gomarkdoc produces in the sibling environments
and environments-controller repos.

Wired into finalize-release.yml only, right after the existing Go/TS
codegen step -- this repo already generates and commits its Go/TS
contracts exclusively at release time (no async on-push-to-main job),
which is the correct, race-free pattern the sibling repos' docs
generation had to be retrofitted into after hitting a real drift bug.
Docs generation follows that same already-correct shape from the
start.

Cleaned up banner-divider comments (`// ====...====`) in 11 .proto
files first -- protoc-gen-doc attaches a message/service's leading
comment block the same way Go's doc tooling does (no blank line before
the declaration), so an attached banner would have rendered as literal
ASCII dashes in the generated docs, same failure mode already fixed
across the Go repos. Verified with `buf lint` and `buf build` that the
comment-only edits didn't break anything, and spot-checked the
generated output renders clean.

Includes the initial generated docs/ output so docs exist immediately
rather than waiting for the next release cut.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
feat: generate per-package contract docs, aligned with docs/code/ convention
@blanketops-environments
blanketops-environments Bot merged commit 9056a7e into main Aug 23, 2026
6 checks passed
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.

2 participants