Thank you for your interest in contributing to Brasa documentation! This guide will help you get started.
Be respectful, constructive, and professional in all interactions.
If you find errors, broken links, or areas that need improvement:
- Check if an issue already exists
- Open a new issue with:
- Clear description of the problem
- Page URL or file path
- Expected vs actual behavior
- Screenshots if relevant
We welcome suggestions for:
- New documentation pages
- Clarifications to existing content
- Additional examples or use cases
- Better explanations of complex topics
Open an issue with the enhancement label.
-
Fork the repository
-
Clone your fork
git clone https://github.com/YOUR_USERNAME/brasa-docs.git cd brasa-docs -
Create a branch
git checkout -b docs/your-improvement
Branch naming:
docs/for documentation updatesfix/for bug fixesfeat/for new features
-
Install dependencies
pnpm install
-
Make your changes
- Edit MDX files in
/pages - Follow the style guide below
- Test locally with
pnpm dev
- Edit MDX files in
-
Test your changes
pnpm lint # Check for linting errors pnpm typecheck # Check TypeScript types pnpm build # Verify build succeeds
-
Commit your changes
We use Conventional Commits:
git commit -m "docs: improve quickstart guide examples" git commit -m "fix: correct contract address in integration page"
Format:
type(scope): messageTypes:
docs: Documentation changesfix: Bug fixesfeat: New featuresstyle: Code style changesrefactor: Code refactoringchore: Maintenance tasks
-
Push and create PR
git push origin docs/your-improvement
Then open a Pull Request on GitHub.
- Be clear and concise: Use simple language
- Be specific: Provide concrete examples
- Be accurate: Test all code examples
- Be helpful: Anticipate user questions
- Use sentence case for headings: "Getting started" not "Getting Started"
- Use code blocks for commands and code
- Include language identifiers in code blocks
- Add alt text to images
- Link to related pages
- Use "you" to address readers
- Write in active voice
- Be friendly but professional
- Avoid jargon when possible
Every page should have front matter:
---
title: Page Title
description: A brief, SEO-friendly description (120-160 chars)
---Use a single # h1 as the page title, then ## h2 and ### h3 for structure:
# Page Title
## Main Section
### SubsectionAlways specify the language:
```typescript
const example = 'code'
```For terminal commands:
```bash
pnpm install
```Use relative links for internal pages:
See [Getting Started](/getting-started/overview)Use full URLs for external links:
Visit [GitHub](https://github.com/brasa-finance)Use our custom components to enhance content:
Callouts for important information:
<Callout type="warn">Important warning message</Callout>Steps for sequential instructions:
<Steps>
<Step title="First">Do this</Step>
<Step title="Second">Then this</Step>
</Steps>Tabs for alternative approaches:
<Tabs>
<Tab title="Option A">Content A</Tab>
<Tab title="Option B">Content B</Tab>
</Tabs>Contract addresses for on-chain references:
<ContractAddress chain="Fogo" address="0x..." label="Contract Name" />- Place images in
/public/images/ - Use descriptive filenames:
staking-flow.pngnotimage1.png - Optimize images before committing (< 500KB)
- Always include alt text
After submitting a PR:
- Automated checks run (lint, typecheck, build)
- Maintainers review your changes
- Feedback may be provided
- Approval and merge when ready
Please be patient and responsive to feedback.
The dev server hot-reloads on file changes. If it doesn't:
# Restart the dev server
pnpm devIf you encounter build errors:
# Clean and rebuild
rm -rf .next out
pnpm buildFix automatically when possible:
pnpm lint --fixFormat code:
pnpm format- Questions: Open a GitHub Discussion
- Issues: Check existing issues or open a new one
- Chat: Join our Discord
Contributors will be recognized in:
- Git commit history
- Release notes (for significant contributions)
- Special thanks section (coming soon)
Thank you for helping make Brasa documentation better! 🙏