Thank you for your interest in contributing to Dodo Payments documentation! We appreciate your help in making our documentation more comprehensive, accurate, and user-friendly.
- Code of Conduct
- Getting Started
- Types of Contributions
- Development Process
- Style Guide
- Submitting Changes
- Review Process
- Recognition
We are committed to providing a friendly, safe, and welcoming environment for all contributors, regardless of experience level, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
- Be respectful and inclusive
- Welcome newcomers and help them get started
- Focus on what is best for the community
- Show empathy towards other community members
- Use welcoming and inclusive language
- Harassment, discrimination, or offensive comments
- Personal attacks or trolling
- Publishing others' private information
- Any conduct which would be considered inappropriate in a professional setting
-
Fork the Repository
# Navigate to https://github.com/dodopayments/dodo-docs # Click the "Fork" button in the top right
-
Clone Your Fork
git clone https://github.com/YOUR_USERNAME/dodo-docs.git cd dodo-docs -
Set Up Development Environment
# Install Mintlify CLI npm i -g mintlify # Run local development server mintlify dev
-
Create a Branch
git checkout -b feature/your-feature-name
- Content Updates: Fix typos, improve clarity, update outdated information
- New Guides: Create tutorials for common use cases
- Code Examples: Add or improve code snippets
- Diagrams: Create visual aids to explain complex concepts
- API Documentation: Update endpoint descriptions, parameters, and responses
- Integration Guides: Document new framework adaptors or third-party integrations
- Troubleshooting: Add solutions for common issues
dodo-docs/
├── api-reference/ # API endpoint documentation
├── changelog/ # Version history and updates
├── developer-resources/# Integration guides and SDKs
├── features/ # Platform feature documentation
├── images/ # Screenshots and diagrams
├── integrations/ # Third-party integration guides
└── miscellaneous/ # FAQs, guides, and other resources
-
Create/Edit MDX Files
- Use
.mdxextension for all documentation files - Place files in appropriate directories
- Follow kebab-case naming:
payment-methods.mdx
- Use
-
Add Frontmatter
--- title: "Your Page Title" description: "A brief description of the page content" icon: "credit-card" ---
-
Update Navigation
- Edit
docs.jsonto include your new page (if you have created one) - Maintain logical grouping and hierarchy
- Edit
- Be Clear and Concise: Use simple language and short sentences
- Use Active Voice: "Click the button" instead of "The button should be clicked"
- Be Consistent: Use the same terminology throughout
- Include Examples: Show, don't just tell
```javascript
// Use language-specific syntax highlighting
const apiKey = process.env.DODO_API_KEY;
```Use expandable after the language tag, such as javascript expandable, if the code block exceeds 4 lines.
<Frame>
<img src="/images/feature-name/step-1.png" alt="Descriptive alt text" />
</Frame>Dodo Payments uses Mintlify to maintain its documentation page. Please check the Mintlify Documentation for all available components.
<Card title="Feature Title" icon="icon-name" href="/link">
Brief description of the feature
</Card><Note>
Important information that users should know
</Note>
<Warning>
Critical information about potential issues
</Warning>
<Info>
Additional helpful context
</Info><AccordionGroup>
<Accordion title="Question 1">
Answer to question 1
</Accordion>
<Accordion title="Question 2">
Answer to question 2
</Accordion>
</AccordionGroup>- Test your changes locally with
mintlify dev - Check for broken links and images with
mintlify broken-links - Verify code examples work correctly if you made any changes
- Update relevant navigation in
docs.json - Follow the style guide
- Write a clear commit message
By contributing to this repository, you agree that your contributions will be licensed under the GNU General Public License v3.0 (GPL-3.0), consistent with the repository's LICENSE. Ensure that any content you submit is compatible with GPL-3.0 and that you have the right to contribute it.
Follow conventional commits format:
type(scope): description
[optional body]
[optional footer]
Types:
docs: Documentation changesfix: Corrections to existing contentfeat: New documentation or featuresstyle: Formatting changesrefactor: Documentation restructuring
Examples:
docs(api): add webhook payload examples
fix(guide): correct authentication flow steps
feat(integration): add Stripe integration guide-
Create Pull Request
- Use a clear, descriptive title
- Fill out the PR template
- Link related issues
-
PR Description Template
## Description Brief description of changes ## Type of Change - [ ] Bug fix (non-breaking change) - [ ] New documentation - [ ] Documentation update - [ ] Style/formatting update ## Testing - [ ] Tested locally with `mintlify dev` - [ ] Verified all links work - [ ] Checked responsive design ## Screenshots (if applicable) Add screenshots of visual changes ## Related Issues Closes #123
- Accuracy: Information is correct and up-to-date
- Clarity: Content is easy to understand
- Completeness: All necessary information is included
- Consistency: Follows existing patterns and style
- Quality: Well-written with proper grammar
- Initial Review: Within 2-3 business days
- Feedback Response: Please respond within 7 days
- Merge Decision: After all feedback is addressed
- Your changes will be automatically deployed
- You'll be added to our contributors list
- Consider joining our Discord to stay connected
We value all contributions and recognize our contributors through:
- Contributors List: Added to our README
- Exclusive Merch: Exceptional contributors may receive Dodo Payments merchandise as a token of our appreciation
If you need assistance:
- Discord: Join our Discord server
- GitHub Issues: Open an issue for bugs or suggestions
- Email: support@dodopayments.com for direct support
Thank you for contributing to Dodo Payments documentation! Your efforts help developers worldwide integrate payments more effectively.