Skip to content

docs: adopt the Hanalyx documentation style guide and CI check - #364

Merged
remyluslosius merged 1 commit into
mainfrom
docs/adopt-doc-style-check
Jul 26, 2026
Merged

docs: adopt the Hanalyx documentation style guide and CI check#364
remyluslosius merged 1 commit into
mainfrom
docs/adopt-doc-style-check

Conversation

@remyluslosius

Copy link
Copy Markdown
Contributor

Adopts the Hanalyx developer documentation style guide as the source of truth for
this repo's developer docs, and installs the shared CI check that enforces its
three hard rules: no em dashes, no emojis, no AI speak.

What lands

  • scripts/check-doc-style.py, copied verbatim from the shared tool. A single-file
    python3 script with no dependencies, so the same checker runs identically in this
    Go repo and in the Node and mixed repos.
  • A Doc style CI job with fetch-depth: 0, running make docs-style. This
    pipeline has no summary job to depend on, so it is wired as a peer of
    docs-consistency, the same way every other required check is.
  • make docs-style and make docs-style-all for local runs.

Scope of the doc cleanup

The checker scans whole changed files, not diff hunks, so any file this PR touches
had to be cleared. That is BACKLOG.md (80 em dashes) and the two new
context-plane skill files (19). Em dashes were rewritten as periods, commas, or
colons depending on the clause, not substituted mechanically.

BACKLOG.md also carries a new Security process entry for the vulnerability
reporting key defect. That edit is what pulled the file into scope for the
cleanup, so the two travel together.

Backlog left deliberately

make docs-style-all reports 356 findings across 20 files: 350 em dashes,
concentrated in CHANGELOG.md (172), CONTRIBUTING.md (24), VERSIONING_PLAN.md
(16), and the guide chapters. Gating on changed files lets the check land now and
drains the backlog as files are touched. CHANGELOG.md is the one to watch, since
every release edits it.

The remaining 6 findings are a false positive on harness, which is a technical
noun here (kensa-fuzz is a failure-injection harness). Filed against the tool's
owner as a Context Plane bug report; not suppressed in this repo.

Verification

  • Clean changed files: passes, exit 0.
  • Injected em dash, emoji, and a banned term: 3 findings, exit 2, build fails.
  • Maintainer escape hatch on a cleared line: suppressed, exit 0.
  • make docs-check still passes; ci.yml parses.

The style guide in the Context Plane is the source of truth for developer
docs across every Hanalyx repo. Its three hard rules (no em dashes, no
emojis, no AI speak) are gates, not preferences, so they need a check that
fails the build rather than a convention people remember.

Adds scripts/check-doc-style.py, the shared single-file python3 checker, so
the same tool runs identically here and in the Node and mixed repos. Wires a
Doc style CI job that scans only Markdown changed against origin/main: the
repo carries roughly 350 pre-existing findings, and gating changed files lets
the check land now instead of waiting for that backlog to clear.

BACKLOG.md and the two new context-plane skill files are cleaned to comply,
since the checker scans whole changed files rather than diff hunks.

make docs-style runs the same command locally.
EM_DASH = re.compile("—")
# python3's re has no \p{Extended_Pictographic}; approximate with the common emoji blocks.
EMOJI = re.compile(
"[\U0001F000-\U0001FAFF\U00002600-\U000027BF\U00002B00-\U00002BFF"
@remyluslosius
remyluslosius merged commit bab7b0f into main Jul 26, 2026
21 checks passed
@remyluslosius
remyluslosius deleted the docs/adopt-doc-style-check branch July 26, 2026 03:15
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