1.0.2 • Published 11 months ago
@mdxui/docs v1.0.2
@mdxui/docs
Documentation site layouts and components for MDXUI, designed for creating beautiful and functional documentation with MDX and YAML-LD frontmatter.
Installation
pnpm add @mdxui/docsFeatures
- Documentation-specific layouts
- Sidebar navigation
- API reference components
- Code blocks with syntax highlighting
- Search integration
- Versioning support
- Multi-language support
- Light/dark mode
Usage
import {
DocsLayout,
APIReference,
CodeBlock
} from '@mdxui/docs'
// In your MDX file
---
$type: DocumentationPage
title: API Reference
version: 1.0.0
---
export default function APIDoc({ children }) {
return (
<DocsLayout>
<APIReference>
{children}
</APIReference>
</DocsLayout>
)
}
// Example usage in MDX
<CodeBlock language="typescript">
const example = "Hello World";
</CodeBlock>Components
DocsLayout- Main documentation layout with navigationAPIReference- API documentation componentCodeBlock- Syntax highlighted code blocksVersionSelector- Documentation version switcherLanguageSelector- Documentation language switcherSearchBar- Documentation searchSidebar- Documentation navigation sidebar
Related Packages
@mdxui/types- TypeScript type definitions@mdxui/shared- Shared components and utilities@mdxui/widgets- Interactive components like search
License
MIT © 2024 Drivly