Skip to content

Commit 44e7534

Browse files
dvdksnclaude
andcommitted
vale: drop above/below swaps, ignore shortcodes in links, fill vocab gaps
The above/below substitutions fired on idioms ("above and beyond"), numeric comparisons ("above the 90th percentile"), and version references ("macOS Ventura and above"), where "previous"/"following" makes no sense. Drop them — the canonical "see the example above" case is mild enough that human review can catch it. Extend TokenIgnores so shortcodes followed by path segments (``{{% param "x" %}}/dists/``) and shortcodes nested inside markdown link text are both treated as opaque. Fixes spurious URL/term hits across the engine/install pages. Add vocab entries for legitimate technical terms previously flagged by Vale.Spelling (bootloader, crypto, Kubuntu/Lubuntu/Xubuntu, lockfile, multimodal, multithreading, NLP, oldoldstable, parallelizable, pnpm, superset, tokenization, WebGL). Also wrap the `println` heading in formatting.md in backticks — it's a Go template function, not prose. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 4d0b3c1 commit 44e7534

4 files changed

Lines changed: 17 additions & 4 deletions

File tree

.vale.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ Vale.Terms = NO
3232

3333
[*.md]
3434
BasedOnStyles = Docker, Vale
35-
TokenIgnores = ({{[%<][^}]+[%>]}})
35+
TokenIgnores = ({{[%<][^}]+[%>]}}\S*), (\[[^\]]*{{[%<][^}]+[%>]}}[^\]]*\]\([^)]*\))
3636
BlockIgnores = (?m)^[ \t]*({{[%<][^}]+[%>]}})[ \t]*$

_vale/Docker/RecommendedWords.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ swap:
1212
(?:drop down|dropdown): drop-down
1313
\blog out\b: sign out
1414
\b(?:sign on|log on|log in)\b: sign in
15-
above: previous
1615
adaptor: adapter
1716
administrate: administer
1817
afterwards: afterward
@@ -25,7 +24,6 @@ swap:
2524
anti-virus: antivirus
2625
appendixes: appendices
2726
assembler: assembly
28-
below: following
2927
check box: checkbox
3028
check boxes: checkboxes
3129
click: select

_vale/config/vocabularies/Docker/accept.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,24 @@ OpenSSL
410410
[Ss]tringified
411411
SwarmKit
412412
[Uu]ncomment
413+
bootloader
413414
Buildkite
415+
crypto
414416
Graylog
417+
Kubuntu
415418
Libnetwork
419+
lockfile
420+
Lubuntu
421+
multimodal
422+
multithreading
423+
NLP
416424
Nodemon
425+
oldoldstable
426+
parallelizable
417427
PHPUnit
428+
pnpm
418429
PyTorch
430+
superset
431+
tokenization
432+
WebGL
433+
Xubuntu

content/manuals/engine/cli/formatting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ $ docker image list --format '{{truncate .Repository 15}}'
110110

111111
This example displays the image repository name, truncating it to the first 15 characters if it's longer.
112112

113-
## println
113+
## `println`
114114

115115
`println` prints each value on a new line.
116116

0 commit comments

Comments
 (0)