Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ English plus thirteen languages (es fr it de nb bg el ko ja vi hi zh-hans ar). A

A translator who builds pages some other way records them with `node scripts/i18n-source.mjs record <page> [lang ...]` after writing them. It fails when the translation does not have one segment per English segment.

## Sales-voice gate

`node scripts/voice-gate.mjs dist` runs every English page through the sales-voice rules in `sales-voice-gate/vale-gate` (Vale, pinned in the script and fetched on first run) as the last step of the build. Each rule is a ratchet against `sales-voice-gate/baseline.json`: a page may go down and never up, and a new page starts at zero. After an edit that lowers a count, `node scripts/voice-gate.mjs dist --write-baseline` records the new floor.

## Writing

Every page lands the plane: what the thing is, why it matters, and what it means for the person reading, with the real numbers and the real incident where there is one. The voice is direct and plain: we, never an unnamed I, no profanity, jokes or insults, no positioning against another vendor's product, and no past failure told for its own sake. The reference tables stay exact. Wording a source repo still carries that breaks this is rewritten by the page rules at the end of `scripts/sales-lens-rules.mjs` until the source is fixed. No em dashes as connectors, Oxford commas, American spelling. The house style is in the [brand standard](https://github.com/HotLoop-io/HotLoop-io/blob/main/brand/BRAND.md).
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"scripts": {
"dev": "astro dev",
"sync": "node scripts/sync-docs.mjs",
"build": "node scripts/i18n-check.mjs && node scripts/i18n-source.mjs && node scripts/og.mjs && astro build && node scripts/sitemap-lastmod.mjs dist && node scripts/seo-audit.mjs dist",
"build": "node scripts/i18n-check.mjs && node scripts/i18n-source.mjs && node scripts/og.mjs && astro build && node scripts/sitemap-lastmod.mjs dist && node scripts/seo-audit.mjs dist && node scripts/voice-gate.mjs dist",
"preview": "astro preview",
"audit": "node scripts/seo-audit.mjs dist",
"audit": "node scripts/seo-audit.mjs dist && node scripts/voice-gate.mjs dist",
"i18n": "node scripts/i18n-check.mjs && node scripts/i18n-source.mjs"
},
"dependencies": {
Expand Down
Loading