mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-20 15:20:39 -07:00
Add initial setup for Fumadocs documentation migration
- Created new directory structure for documentation under `/docs2`. - Added `.gitignore` to exclude build artifacts and dependencies. - Introduced `package.json`, `next.config.mjs`, and `postcss.config.mjs` for project configuration. - Implemented MDX components in `mdx-components.tsx` for rendering documentation. - Migrated existing documentation content and created new files for auto-updater and other features. - Established compatibility layer for Mintlify components in `mintlify-compat.tsx`. - Set up OpenAPI documentation in `openapi.json`. - Updated README and migration guide to reflect new structure and usage instructions. - Ensured all components and pages are ready for development and deployment with Fumadocs.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import defaultMdxComponents from 'fumadocs-ui/mdx';
|
||||
import type { MDXComponents } from 'mdx/types';
|
||||
import {
|
||||
Frame,
|
||||
CardGroup,
|
||||
MintlifyCard,
|
||||
Steps,
|
||||
Step,
|
||||
Tip,
|
||||
Note,
|
||||
Warning,
|
||||
Info,
|
||||
Danger,
|
||||
AccordionGroup,
|
||||
Accordion,
|
||||
} from '@/components/mintlify-compat';
|
||||
import { APIPage } from '@/components/api-page';
|
||||
|
||||
export function getMDXComponents(components?: MDXComponents): MDXComponents {
|
||||
return {
|
||||
...defaultMdxComponents,
|
||||
// Mintlify compatibility components
|
||||
Frame,
|
||||
CardGroup,
|
||||
Card: MintlifyCard,
|
||||
Steps,
|
||||
Step,
|
||||
Tip,
|
||||
Note,
|
||||
Warning,
|
||||
Info,
|
||||
Danger,
|
||||
AccordionGroup,
|
||||
Accordion,
|
||||
// OpenAPI component
|
||||
APIPage,
|
||||
...components,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user