feat: developer site#33
Merged
Merged
Conversation
Adds package.json (nextra, typedoc, tsx deps), next.config.mjs, theme.config.tsx, tsconfig.json, and the root _app.tsx entry. Updates turbo.json to include .next/** in build outputs.
- index.mdx: landing page with integration cards and steps overview - quickstart.mdx: tabbed guide for React, Vanilla JS, and CDN paths - api-reference/: overview + seeded reference pages for core, react, and elements (overwritten on each generate:api-docs run)
Config panel (publishableKey, mode, listingId, gatewayUrl, toggles) plus a live preview area that calls pacto.mount() via dynamic import. Snippet panel shows React / Vanilla JS / CDN tabs with one-click copy. Component is SSR-disabled since it registers browser-only custom elements.
generate-api-docs.mts runs TypeDoc + typedoc-plugin-markdown against all three package entry points and writes MDX to pages/api-reference/. Binary resolution walks up from apps/docs to handle npm workspace hoisting. api-docs.yml triggers on changes to packages/*/src/**, builds packages, regenerates docs, and fails PRs if committed files are out of date. Auto-commits refreshed docs on pushes to main.
- Pin next@^14.2.18 in root devDependencies to prevent npm from installing next@16 as a peer dep of next-seo, which broke the build (next@16 removed dist/server/future/ used by next-seo@6.x) - Remove next override (redundant now that root has a direct dep) - Escape bare custom-element tags like <pacto-checkout> outside code blocks in the API docs generator so MDX doesn't parse them as JSX - Add next-seo as explicit dep in apps/docs for clarity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this pr implements, closes #20
Implements the developer site for Pacto Connect (#20 ) — a Nextra 2 / Next.js 14 app under
apps/docswith four things a developer needs to go from zero to a working integration:@pacto-connect/core,/react, and/elements, generated directly from the TypeScript sources via TypeDoc.pacto.mount()call, and copy the generated snippet in React, Vanilla JS, or CDN flavour.