Docs: reconcile agent, developer and module docs with the code

- AGENT.md, skills, PROGRAMISTA, vibe, README and module pages checked
  against src/ and package.json; every mismatch fixed (consent/analytics
  loading, revalidation scope, generateStaticParams, construction gating,
  Turnstile fail modes, email/Graph, MCP, i18n, links, slug, hooks, ...)
- New pages: frontend.md, media.md, integrations.md; docs/README.md now
  indexes every page
- Main rule (plugin helps, never limits) at the top of AGENT.md,
  PROGRAMISTA.md, docs/README.md, README and the setup/plugin-gap skills;
  module pages gain a "Wyłączenie, nadpisanie, rozszerzenie" section
- README/PROGRAMISTA: stop telling projects to install packages ipal-kit
  already depends on; peer table; publish flow matches prepublishOnly
- ipal-skills: refuse --dest without a value or pointing at the project
  root (previously could delete ipal-* folders in cwd)
- docsConsistency: option keys, IPAL_* env names, relative links, README
  index, AGENT.md section refs, skill frontmatter, frontend.md helper keys,
  no `pnpm add` of own dependencies

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-22 17:06:52 +02:00
co-authored by Claude Opus 5.5
parent 12fbd424a5
commit 6e0f59c62b
49 changed files with 1736 additions and 605 deletions
+12
View File
@@ -83,3 +83,15 @@ Tokeny ciemnego motywu (`surface`, `fg`…) zostają w `styles.css` projektu.
`BuilderForm` / `RenderForm` → `turnstileTheme` domyślnie `'page'`: widżet bierze motyw strony
(`data-theme`); bez motywu strony — `'auto'` (motyw urządzenia), jak przed 1.11.1. Zmiana motywu
rysuje widżet od nowa (token trzeba zdobyć ponownie). Stały motyw: `turnstileTheme="light"`.
## Wyłączenie, nadpisanie, rozszerzenie
- **Wyłączenie:** bez `SiteProviders theme` / `<ThemeScript>` motyw nie jest ustawiany (bazowy CSS);
`allowThemeToggle` wyłączony = wybór odwiedzającego ignorowany. Zakładka *Theme* w Site Settings jest
obecnie zawsze dodawana.
- **Nadpisanie:** `ThemeScript` przyjmuje `allowToggle` / `defaultTheme` wprost (nie musi czytać z panelu);
`ThemeSwitcher` — `classNames`, `label`, `renderIcon`; `applyTheme(..., { persist, transitionMs })`.
- **Rozszerzenie:** własny przełącznik na `useTheme()`; `themeScript()` jako tekst skryptu do własnego
tagu; `themeConfigFrom(settings)` do odczytu ustawień.
Własne pola w Site Settings (np. dodatkowe tokeny) — `ipalKit({ siteSettingsFields })`, trafiają do
zakładki *Custom*.