Skip to content

ci(docs): adopt the Hanalyx documentation style check - #756

Open
remyluslosius wants to merge 1 commit into
mainfrom
docs/adopt-style-check
Open

ci(docs): adopt the Hanalyx documentation style check#756
remyluslosius wants to merge 1 commit into
mainfrom
docs/adopt-style-check

Conversation

@remyluslosius

Copy link
Copy Markdown
Contributor

Adopts the org documentation style guide (Context Plane dev/DEVELOPER_DOCUMENTATION_STYLE_GUIDE) and installs the shared CI checker (dev/tools/doc-style-check) in this repo.

What lands

File Change
scripts/check-doc-style.py The shared checker, copied verbatim. Single-file python3, no dependencies, so it runs the same in this mixed Go/Node repo.
.github/workflows/go-ci.yml New Doc Style job.
Makefile make docs-style target, wired into ci-local.
AGENTS.md Records the standard. Em dashes removed.
.claude/skills/write-doc.md Generated docs must satisfy the guide. Em dashes removed; a dead doc reference repointed.

Why a separate job, not a step in gates

The existing Quality + security gates job short-circuits to success on doc-only
changes, by design, so it stays green on every PR. A doc-style step inside it
would be skipped exactly when documentation is what changed. The check therefore
runs as its own job, matching the shared reference in dev/tools/doc-style-check.

Verification

Checker behavior confirmed locally before pushing:

Case Result
Em dash in prose fails, exit 1
Emoji in prose fails, exit 1
AI speak (robust) fails, exit 1
Term inside a fenced code block passes (exempt)
Line carrying <!-- doc-style: allow --> passes (escape honored)
The two Markdown files this PR changes clean

Baseline and follow-up

A whole-tree sweep (make docs-style DOC_STYLE_ARGS=--all) reports 385
findings across the tracked tree: 361 em dashes, 24 emojis, and zero AI speak
.
The gate gates changed files, so it lands green now and the backlog clears
incrementally. Heaviest files are CHANGELOG.md (76), docs/guides/INSTALLATION.md
(27), and `.github/pull_request_template.md" (23).

Action needed from a maintainer

Doc Style is a new check and is not yet a required status check. Until it
is added to branch protection for main, a failing run will not block a merge.
I have not modified branch protection.

Adds the shared doc-style gate from the Context Plane
(dev/tools/doc-style-check) and adopts the style guide
(dev/DEVELOPER_DOCUMENTATION_STYLE_GUIDE) for this repo.

- scripts/check-doc-style.py: single-file python3 checker, no deps.
- .github/workflows/go-ci.yml: new "Doc Style" job. It is a separate
  job on purpose: the existing "gates" job short-circuits to success on
  doc-only changes, so a step inside it would be skipped exactly when
  documentation is what changed.
- Makefile: docs-style target, wired into ci-local.
- AGENTS.md: records the standard; em dashes removed. The prior
  no-em-dash rule was scoped to UI copy and said docs were unaffected,
  which the new guide reverses.
- .claude/skills/write-doc.md: generated docs must satisfy the guide;
  em dashes removed; the archived BACKEND_FUNCTIONALITY.md reference
  repointed at ARCHITECTURE.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant