This is a Next.js application that uses the Fumadocs library.
Run development server:
npm run dev
# or
pnpm dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.
Welcome to our contribution guide! This comprehensive document will walk you through everything you need to know about contributing to our documentation, from setup to submission.
Note: Before starting your contribution journey, please familiarize yourself with our code of conduct and contribution guidelines available in the repository.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR-USERNAME/lagdocs.git - Create a new branch:
git checkout -b feature/your-feature-name - Make your changes following our documentation guidelines
- Test your changes locally
- Submit a pull request with a clear description of your changes
Choose your preferred package manager to set up the development environment:
# Install dependencies
npm install
# Start development server
npm run dev
# Build documentation
npm run build# Install dependencies
pnpm install
# Start development server
pnpm dev
# Build documentation
pnpm build# Install dependencies
yarn
# Start development server
yarn dev
# Build documentation
yarn buildAccordion Component
The Accordion component helps organize content into collapsible sections:
import { Accordions, Accordion } from '@/components/ui/accordion'
<Accordions>
<Accordion title="Section 1" id="section-1">
Content for section 1
</Accordion>
<Accordion title="Section 2" id="section-2">
Content for section 2
</Accordion>
</Accordions>Auto-Type Table
Automatically generate type documentation tables:
import { AutoTypeTable } from '@/components/ui/auto-type-table'
<AutoTypeTable type="MyInterface" />Dynamic Code Blocks
Create interactive code examples:
import { DynamicCodeBlock } from '@/components/ui/dynamic-code-block'
<DynamicCodeBlock
code="console.log('Hello World')"
language="javascript"
live={true}
/>Image Zoom
Enable zoomable images in your documentation:
import { ImageZoom } from '@/components/ui/image-zoom'
<ImageZoom src="/path/to/image.png" alt="Description" />Inline Table of Contents
Add a table of contents within your content:
import { InlineTOC } from '@/components/ui/inline-toc'
<InlineTOC />Step-by-Step Guides
Create guided tutorials:
import { Steps, Step } from 'fumadocs-ui/components/steps'
<Steps>
<Step>
First step description
</Step>
<Step>
Second step description
</Step>
<Step>
Third step description
</Step>
</Steps>Callouts
Highlight important information:
<Callout type="info" title="Note">
Important information goes here.
</Callout>
<Callout type="warn">
Warning message goes here.
</Callout>
<Callout type="error">
Error message goes here.
</Callout>Cards
Display content in card format:
<Cards>
<Card
title="Getting Started"
href="/using-the-panel"
icon={<BookOpenIcon />}
>
Learn the basics of our platform!
</Card>
</Cards>Code Blocks
Add syntax-highlighted code examples:
```typescript title="example.ts" {1,3-4}
interface User {
id: string;
name: string;
email: string;
}
```content/
├── docs/
│ ├── meta.json
│ ├── index.mdx
│ ├── getting-started/
│ │ ├── meta.json
│ │ ├── installation.mdx
│ │ └── configuration.mdx
│ └── components/
│ ├── meta.json
│ ├── buttons.mdx
│ └── forms.mdx
Each directory should contain a meta.json file to define the section structure:
{
"title": "Billing & Payments",
"icon": "CreditCard",
"index": "index"
} - Use ATX-style headers (
#for h1,##for h2, etc.) - Include a single space after header markers
- Use backticks for inline code and triple backticks for code blocks
- Use reference-style links for better maintainability
- Include alt text for all images
-
Headings
- Use sentence case for titles
- Include descriptive slugs
- Keep hierarchy logical (don't skip levels)
-
Code Blocks
- Always specify the language
- Use line highlighting when helpful
- Include copy buttons for longer snippets
-
Callouts
- Use appropriate types (info, warning, error)
- Keep content concise
- Include titles when beneficial
-
Preparation
- Update your fork to the latest upstream changes
- Run tests locally
- Ensure all links work
- Check for spelling and grammar
-
Submission
- Fill out the pull request template completely
- Include screenshots for visual changes
- Link to related issues
- Add labels as appropriate
-
Review Process
- Respond to reviewer feedback promptly
- Make requested changes in new commits
- Squash commits before final merge
Note: All pull requests automatically generate a preview deployment. Check the PR comments for the preview URL.
- Use active voice
- Keep sentences concise
- Break up long paragraphs
- Use consistent terminology
- Include examples for complex concepts
- Follow our coding standards
- Include comments for clarity
- Show both basic and advanced usage
- Provide working examples
- Include error handling
Note: For the latest updates and detailed documentation, always refer to the official Fumadocs documentation.