Docs: fix doc/code drift found against 1.16.3 (docs only)

Verified the IAWL summary's "Doc/code" notes against the code and swept
CLI flags, option names/defaults and env vars. Fixed in the docs:
admin groups (consent-records, cookie-review → Privacy; Form messages
global → Forms), tab labels (More, Spam protection, E-mail sending,
Search engines; Sending method), construction field labels, {field} =
label, globalOverrides instead of "a plugin after ipalKit", enabled:false
keeps globals, pages role labels en+pl, switchLocalePath prefix,
accessibility cookie (necessary), seeding summary() shape, prepublishOnly
chain, doctor --strict --offline in the starter, package files list,
ipal-skills --external in PROGRAMISTA, DATABASE_URI (not _URL),
uploadsCollection exists, SiteProviders nonce, buildLinksField labels,
MCP list_pages limit wording, IPAL_DOCTOR_TOKEN in the env table; shipped
seo-check message "Search engines". Reference skills copy refreshed.

Open questions (not changed): forms over-long text, PAYLOAD_SECRET
length, Site settings update access, doctor seen in CI, bare
`ipal-kit create --external`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-23 23:47:35 +01:00
co-authored by Claude Opus 5.5
parent e603561de4
commit 37592764b5
38 changed files with 91 additions and 82 deletions
+9 -9
View File
@@ -7,19 +7,19 @@ the plugin never calls `getPayload` itself.
## Config
The `site-settings` (`SITE_SETTINGS_SLUG`), `site-integrations` (`SITE_INTEGRATIONS_SLUG`),
`cookie-settings` and `notifications` globals are **currently always added** by the plugin (when
`enabled !== false`) — there is no option to skip them or change their slug.
`cookie-settings` and `notifications` globals are **currently always added** by the plugin (also with
`enabled: false`, which keeps the schema) — there is no option to skip them or change their slug.
| `ipalKit()` option | What it does |
|---|---|
| `siteSettingsFields?: Field[]` | extra SiteSettings fields in a separate **"Custom"** tab (flat data: `settings.myField`) |
| `integrationsFields?: Field[]` | extra SiteIntegrations fields in the "Custom" tab |
| `siteSettingsFields?: Field[]` | extra SiteSettings fields in a separate **"More"** tab (flat data: `settings.myField`) |
| `integrationsFields?: Field[]` | extra SiteIntegrations fields in the "More" tab |
SiteSettings tabs (unnamed — flat data): **General** (`siteName`, `siteDescription`,
`titleOrder`, `titleSeparator`, `logo`, `defaultShareImage`, `sameAs`, `favicon`, …),
**Theme** (`defaultTheme`, `allowThemeToggle`, `themeToggleLabel`), **System pages**
(from `pages` / `content`), **E-mails** (from `forms.emailLayout`), **Maintenance**
(from `pages`), **Custom** (from `siteSettingsFields`).
(from `pages` / `content`), **Search engines** (on by default; `searchSettings: false` removes it, seo.md), **E-mails** (from `forms.emailLayout`),
**Maintenance** (from `pages`), **More** (from `siteSettingsFields`).
**Access:** SiteSettings has `read: () => true` — **the whole global, including fields from
`siteSettingsFields`, is public** over REST/GraphQL (`/api/globals/site-settings`).
@@ -78,7 +78,7 @@ const data = await getGlobal<MyType>(payload, 'my-global', { locale: 'pl', depth
## Turn off, override, extend
- The plugin's globals are currently always added (no option to turn them off / change slugs); `enabled: false` removes the whole plugin, including them.
- Extension: `siteSettingsFields` / `integrationsFields` (the "Custom" tab); the shape of the existing tabs is fixed.
- You can change a global's access, hooks and fields only by overriding it in the config after `ipalKit` (your own plugin mapping `config.globals`, example in hooks.md).
- The plugin's globals are currently always added (no option to turn them off / change slugs); `enabled: false` keeps them (schema unchanged) and only drops the plugin's endpoints, `onInit` work and admin components.
- Extension: `siteSettingsFields` / `integrationsFields` (the "More" tab).
- Change a global's access, hooks, labels or fields with `ipalKit({ globalOverrides: { 'site-settings': … } })` — an object merges `access` / `admin` / `hooks` key by key, a function gets the whole global (hooks.md "Turn off, override, extend").
- `getGlobal(payload, slug, { locale, depth })` works with any project global.