Documentation
Guide for contributing to Jindong documentation
Contributing to Documentation
Thank you for your interest in improving Jindong's documentation!
Getting Started
Prerequisites
- Node.js 20+
- Yarn v1 (Classic)
Local Development
- Clone the repository:
- Install dependencies:
- Start the development server:
- Open the URL shown in terminal (usually http://localhost:3000)
Project Structure
Writing Documentation
File Format
Documentation is written in MDX (Markdown + JSX):
Frontmatter
Every documentation file requires frontmatter:
| Field | Required | Description |
|---|---|---|
title | Yes | Page title |
description | Yes | Brief description |
Code Blocks
Use fenced code blocks with language specification:
Links
Use relative paths for internal links:
Callouts
Use Fumadocs callouts for important information:
Navigation
Adding Pages
- Create the MDX file in the appropriate directory
- Update the
meta.jsonfile in that directory:
Section Structure
- Guide: Conceptual and tutorial content
- API Reference: Technical API documentation
- Contributing: Contribution guidelines
Style Guide
Writing Style
- Use clear, concise language
- Use present tense
- Avoid jargon unless necessary
Code Examples
- Keep examples minimal and focused
- Use realistic but simple scenarios
- Include comments for complex logic
- Show imports when relevant
Headings
- Use sentence case for headings
- Use H1 (
#) only for page title - Use H2 (
##) for main sections - Use H3 (
###) for subsections
Building
Test the production build locally:
This generates a static export in the out/ directory.
Pull Request Process
- Fork the repository
- Create a feature branch
- Make your changes
- Test locally with
yarn devandyarn build - Submit a pull request
Questions?
If you have questions about contributing, please open an issue on GitHub.