Docs in English (part 1), seeding guide, Coolify deployment
- Translate to English every doc the code branches did not touch: AGENT.md, developer guide, vibe, CHANGELOG, docs index, module pages, all skills except ipal-seo-check (14 pages follow after the security/SEO merge). Placeholder marker is now [TO FILL: …]; skill resources renamed to section-code.md / nav-code.md. AGENT.md and the ipal-skills pointer block say the docs are in English. - docs/seeding.md: create-only, natural keys, never delete, no users or secrets, empty-field globals, fallbackLocale: false, dry run, backup and restore, production update guard, seeds vs migrations, Coolify Terminal. Seed templates gain --dry-run, the SEED_UPDATE production guard (IPAL_SEED_ALLOW_PROD_UPDATE), skip of edited records and a summary. "Seeding on production" rule block in AGENT.md. - Coolify is the single deployment path (deployment, env, developer guide, ipal-setup): build vs runtime env, migrations on container start (prodMigrations), health check and rolling updates, rollback, backups and restore, DNS/Let's Encrypt/CAA. R2: custom domain needs a Cloudflare zone; default is media served by the app (R2_PUBLIC_URL empty). - docsConsistency: no Polish prose outside code/quoted data (pending pages listed); IPAL_* names may also be read by shipped skill templates. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6e3979bae6
commit
2d9f3e15d4
@@ -119,7 +119,9 @@ describe('docs ↔ code', () => {
|
||||
})
|
||||
|
||||
test('every IPAL_* env var named in the docs is read by the code', () => {
|
||||
const code = srcFiles().map(read).join('\n')
|
||||
// The plugin, or a script/template shipped in the skills (e.g. IPAL_SEED_ALLOW_PROD_UPDATE).
|
||||
const shipped = docs.filter((f) => f.startsWith('docs/agent/skills/') && /\.(?:mjs|ts|tsx)$/.test(f))
|
||||
const code = [...srcFiles(), ...shipped].map(read).join('\n')
|
||||
const named = new Set([...docs, 'README.md'].flatMap((f) => [...read(f).matchAll(/\bIPAL_[A-Z0-9_]+/g)].map((m) => m[0])))
|
||||
expect([...named].filter((name) => !code.includes(name))).toEqual([])
|
||||
})
|
||||
@@ -180,6 +182,35 @@ describe('docs ↔ code', () => {
|
||||
})
|
||||
})
|
||||
|
||||
/**
|
||||
* The docs are written in English. Polish may stay only as sample data: inside code
|
||||
* blocks, inline code or quoted strings (e.g. a 'pl' seed value, a slug, a file name).
|
||||
*/
|
||||
describe('docs are in English', () => {
|
||||
// Translated after the code branches that edit them are merged — remove from this list then.
|
||||
const pending = new Set([
|
||||
'docs/access.md', 'docs/agent/skills/ipal-seo-check/SKILL.md', 'docs/analytics.md', 'docs/consent.md', 'docs/construction.md',
|
||||
'docs/content.md', 'docs/forms.md', 'docs/hooks.md', 'docs/mcp.md', 'docs/notifications.md',
|
||||
'docs/richtext.md', 'docs/security.md', 'docs/seo.md', 'docs/stats.md', 'docs/turnstile.md',
|
||||
])
|
||||
|
||||
test('no Polish prose outside code and quoted sample data', () => {
|
||||
// Diacritics, or common Polish words for text written without them.
|
||||
const polish = /[ąćęłńóśźż]|\b(?:albo|czy|dla|gdy|jest|lub|nie|oraz|przez|tylko)\b/i
|
||||
const offending: string[] = []
|
||||
for (const file of [...docs, 'README.md'].filter((f) => f.endsWith('.md') && !pending.has(f))) {
|
||||
const prose = read(file)
|
||||
.replace(/```[\s\S]*?```/g, '')
|
||||
.replace(/`[^`\n]*`/g, '')
|
||||
.replace(/"[^"\n]*"|'[^'\n]*'|„[^”\n]*”/g, '')
|
||||
prose.split('\n').forEach((line) => {
|
||||
if (polish.test(line)) {offending.push(`${file}: ${line.trim().slice(0, 80)}`)}
|
||||
})
|
||||
}
|
||||
expect(offending).toEqual([])
|
||||
})
|
||||
})
|
||||
|
||||
/**
|
||||
* The agent guide (AGENT.md + the ipal-* skills copied into projects) is all an agent in a
|
||||
* consumer project reads. Every export, option and env var must be findable there, or the
|
||||
|
||||
Reference in New Issue
Block a user