wacrm/src/lib
Arnas Donauskas 45fd2a9845
feat(docs): in-app docs viewer at /docs
Renders every file in docs/*.md as a proper documentation site styled
like Stripe / Vercel / Linear docs: sticky header, grouped left sidebar
(Setup / Deploy / Operate), dark prose with inline code pills, syntax
-ready code blocks, responsive table styling, and prev/next pagination.

- src/lib/docs/content.ts — parses md with marked and decorates the
  HTML with Tailwind utility classes via post-processing regex. Also
  rewrites inter-doc `./other.md` links to `/docs/other` and extracts
  an h2/h3 TOC for future use.
- src/app/docs/layout.tsx + src/components/docs/shell.tsx — shared
  frame with docs-scoped header (GitHub, Home, Get started), collapsing
  sidebar on mobile.
- src/app/docs/page.tsx — grouped index cards per section.
- src/app/docs/[slug]/page.tsx — individual doc + prev/next nav.
- Adds "Docs" to landing nav, footer, and a "Read the full
  documentation" CTA under the open-source cards.
- Adds `marked` dependency.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 21:28:36 +03:00
..
automations Merge pull request #41 from ArnasDon/fix/automations-validate-step-config-on-activate 2026-04-17 21:58:46 +03:00
dashboard feat(dashboard): replace placeholder with real analytics 2026-04-17 22:16:00 +03:00
docs feat(docs): in-app docs viewer at /docs 2026-04-19 21:28:36 +03:00
seo feat(seo): full SEO pass (reapply with OG-image build fix) 2026-04-19 12:25:59 +03:00
supabase fix: make Supabase browser client a singleton 2026-04-16 19:39:24 +03:00
whatsapp fix(broadcasts): senior-review hardening pass 2026-04-17 17:38:52 +03:00
broadcast-status.ts fix(broadcasts): per-recipient variables, webhook status sync, rate limit 2026-04-17 11:22:38 +03:00
utils.ts feat: initial commit 2026-04-16 17:53:27 +03:00