Contributing to FiveM Docs
Thank you for contributing to FiveM Docs! This document provides guidelines for contributing.
Getting Started
- Fork the repository
- Clone your fork
- Install dependencies:
pnpm install - Create a branch:
git checkout -b my-feature - Make your changes
- Test locally:
pnpm dev - Commit your changes
- Push to your fork
- Open a Pull Request
Writing Guidelines
Page Structure
Every page should include:
- Title: Clear, task-oriented title
- Description: Brief description in frontmatter
- Prerequisites: What’s needed before starting
- Steps: Clear, numbered steps
- Validation: How to verify success
- Rollback: How to undo changes
- Links: Related pages (minimum 3)
Code Blocks
- All code blocks must have copy buttons (automatic with Nextra)
- Include expected output where relevant
- Use appropriate language tags
- Test all commands on clean systems
OS-Aware Content
Use the OsPicker component for OS-specific instructions:
<OsPicker>
<OsPicker.Linux>Linux-specific content</OsPicker.Linux>
<OsPicker.Windows>Windows-specific content</OsPicker.Windows>
</OsPicker>Code Quality
- Run
pnpm type-checkbefore committing - Run
pnpm lintand fix any issues - Run
pnpm buildto verify build succeeds - All files must be under 300 LOC
Pull Request Process
- Update documentation if needed
- Add tests if applicable
- Ensure all checks pass
- Request review from maintainers
- Address feedback
- Merge after approval
Questions?
Open an issue or contact maintainers.