Files
coder/docs/.style/styles/Coder/README.md
T
blinkagent[bot]andblink-so[bot] aaafe2d105 docs(docs/.style): apply one sentence per line (#28776)
The style guide requires one sentence per Markdown source line, but the
pages under `docs/.style` were themselves wrapped to a fixed column
width. This reflows them so the style guide adheres to the style guide.

Requested by @nickvigilante in coder/coder#28764 (review).

## Scope

10 files under `docs/.style`, including `content-guidelines.md`
(previously the second worst offender in the whole docs tree at 126
wrapped continuation lines) and every page under `style-guide/`.

Line breaks only. No wording changes.

## How it was done

A script joined each paragraph, list item, and blockquote into a single
logical unit, then re-split it at sentence boundaries. Code fences,
tables, front matter, HTML blocks, and indented code are untouched.
Abbreviations (`e.g.`, `i.e.`, `q.v.`, `et al.`, and similar) are
matched on word boundaries so they do not trigger a split, and a
fragment that starts lowercase is treated as a continuation rather than
a new sentence.

## Verification

- Text content is byte-identical after normalizing whitespace and
blockquote markers: 10 of 10 files match.
- `markdownlint-cli2` reports the same 2 findings as `main` (both
pre-existing `MD059` hits on the deliberate "Don't" examples in
`accessibility-and-inclusion.md`). No new findings.
- `markdown-table-formatter --check` reports no changes needed.

## Note on the rest of the corpus

This PR is deliberately limited to `docs/.style`. For the wider tree,
237 of 267 files still use fixed-column wrapping (about 5,645
continuation lines), which is worth knowing when deciding whether a rule
can be enforced repo-wide. Per the review discussion, those pages get
converted as PRs touch them rather than in a dedicated refactor.

Created on behalf of @matifali

---------

Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
2026-08-31 13:06:48 -04:00

1.5 KiB

Coder custom Vale rules

Custom Vale rules specific to Coder live here. Each rule is a YAML file that Vale loads through the BasedOnStyles = Coder setting in the repo-root .vale.ini.

Active rules ship as YAML files in this directory. See the matching sections in docs/.style/style-guide/ for the user-facing policy each rule enforces. Follow-up PRs add rules incrementally. Planned coverage:

  • Dev Container terminology
  • Limit we
  • Setup vs set up, Quickstart casing
  • Next steps vs Learn more
  • Vale substitution rule scaffold
  • Weasel words
  • Em-dash and en-dash mirror in Vale
  • Inclusive-language substitutions
  • Product-voice rules

Authoring a new rule

  1. Write a YAML file under this directory. Name it after the rule's intent, for example InclusiveLanguage.yml or ProductVoice.yml.
  2. Each rule's message: should link to the matching section in the appropriate subpage of docs/.style/style-guide/, ideally with a deep-link anchor, so a contributor reading a Vale warning can jump straight to the guidance.
  3. Land at level: warning first. Promote to level: error only after both conditions hold:
    • The rule is objectively correct (typo, brand-name casing, banned substitution).
    • The existing-content violation count for the rule reaches zero.
  4. A follow-up PR adds a parity CI check that verifies every rule here has a matching section in style-guide/. Add the section in the same PR as the rule.

Reference