Sample Docusaurus docs site with Encatch page feedback in the footer.
pnpm installCopy .env.example → .env in the app and set your Encatch publishable key and form slugs (see that app’s README for variable names).
Publishable key: admin.encatch.com → Settings → Publishable key.
| App | Command | Docs |
|---|---|---|
| Docusaurus | pnpm dev:docusaurus |
http://localhost:3000/docs |
From the app folder: pnpm preview (locale switcher works). Use pnpm start for English-only hot reload.
Spanish docs: http://localhost:3000/es/docs
The app uses the same pattern as the Fumadocs examples:
.env— publishable key + form slugs (from.env.example).src/lib/encatch.tsx— SDK init, env, and form helpers.src/components/DocsPageFeedback.tsx— footer UI.src/theme/Root.tsx—<EncatchInit locale={...} />.src/theme/DocItem/Footer/index.tsx—<DocsPageFeedback />on each docs page.
Details: apps/docusaurus.