You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Pagefind** (optional, for client-side search indexing)
46
+
```sh
47
+
npm install -g pagefind
48
+
```
49
+
50
+
**Go 1.22+** is only needed if you install from source.
28
51
29
52
## Installation
30
53
31
-
Install from source:
54
+
### Homebrew (macOS and Linux)
55
+
56
+
```sh
57
+
brew install armstrongl/tap/rulebound
58
+
```
59
+
60
+
### Pre-built binaries
61
+
62
+
Download a binary for your platform from the [latest release](https://github.com/armstrongl/rulebound/releases/latest), extract it, and add it to your `PATH`.
@@ -221,6 +256,30 @@ Write with clarity and confidence. Avoid jargon.
221
256
222
257
Guidelines appear in a dedicated sidebar section and have their own index page at `/guidelines/`. rulebound skips files without a `title` in frontmatter, files with malformed YAML, and files with non-`.md` extensions. rulebound ignores subdirectories inside `guidelines/`.
223
258
259
+
## Companion documentation
260
+
261
+
Any Vale rule can have a companion Markdown file with the same base name. When present, rulebound uses the companion file's content as the rule's documentation page body instead of the auto-generated description.
262
+
263
+
```
264
+
my-vale-package/
265
+
├── Avoid.yml
266
+
├── Avoid.md <-- companion doc for the Avoid rule
267
+
├── Terms.yml
268
+
└── Terms.md <-- companion doc for the Terms rule
269
+
```
270
+
271
+
Companion files use standard Markdown with no required frontmatter:
272
+
273
+
```markdown
274
+
## Why we avoid these words
275
+
276
+
These terms are exclusionary or unclear. Use the suggested alternatives instead.
277
+
278
+
**Example:** Instead of "whitelist," write "allowlist."
279
+
```
280
+
281
+
Rules without companion files display an auto-generated description based on the rule's YAML fields (message, severity, type, and sample patterns).
0 commit comments