Thank you for your interest in contributing to DevDoc! This document provides guidelines and instructions for contributing.
- Code of Conduct
- Getting Started
- How to Contribute
- Development Setup
- Pull Request Process
- Style Guidelines
Please be respectful and constructive in all interactions. We're all here to build something great together.
- Fork the repository - Click the "Fork" button on GitHub
- Clone your fork -
git clone https://github.com/YOUR_USERNAME/devdoc.git - Create a branch -
git checkout -b feature/your-feature-name
Documentation lives in the /docs directory. To contribute:
- Edit or add
.mdxfiles in/docs - Update
docs.jsonif adding new pages - Test locally with
cd docs && npx devdoc dev - Submit a pull request
Templates live in /templates. To create a new template:
- Copy an existing template as a starting point
- Modify the content and configuration
- Ensure it includes:
docs.json- Configurationtheme.json- Theme settingsindex.mdx- Home pagequickstart.mdx- Getting started guideassets/- Static assets (favicon, logo, images)README.md- Template documentation
- Test thoroughly with
npx devdoc dev - Submit a pull request
Themes live in /themes. To create a new theme:
- Create a new directory under
/themes - Add required files:
theme.json- Theme configurationcustom.css- Custom stylesREADME.md- Theme documentation
- Test with an existing template
- Submit a pull request
- Check existing issues to avoid duplicates
- Create an issue describing the bug
- Fork and create a fix
- Submit a pull request referencing the issue
- Node.js 18+
- npm or yarn
# Clone the repository
git clone https://github.com/brainfish-ai/devdoc.git
cd devdoc
# Test a template
cd templates/basic
npm install
npx devdoc dev
# Test documentation
cd docs
npm install
npx devdoc dev- Create a descriptive PR title - e.g., "Add dark mode toggle to minimal theme"
- Fill out the PR template - Describe what changes you made and why
- Link related issues - Use "Fixes #123" or "Relates to #456"
- Wait for review - A maintainer will review your PR
- Address feedback - Make requested changes if any
- Merge! - Once approved, your PR will be merged
- Code follows project style guidelines
- Documentation is updated if needed
- All tests pass (if applicable)
- Commit messages are clear and descriptive
- Use clear, concise language
- Include code examples where helpful
- Use proper heading hierarchy (h1 → h2 → h3)
- Add alt text to images
- Use 2-space indentation
- Use meaningful variable names
- Add comments for complex logic
- Follow existing patterns in the codebase
Follow conventional commits:
feat: add new feature
fix: resolve bug
docs: update documentation
style: format code
refactor: restructure code
test: add tests
chore: maintenance tasks
- Open an issue for bugs or feature requests
- Start a discussion for general questions
- Check existing issues and discussions first
Thank you for contributing! 🎉