Thanks for your interest in contributing to Berachain Guides! This document provides guidelines and standards for adding new guides or improving existing ones.
Each guide should be placed in the apps/ directory and follow this structure:
apps/your-guide-name/
├── README.md # Setup and quick start
├── WALKTHROUGH.md # Detailed process explanation
├── contracts/ # Smart contracts (if applicable)
├── scripts/ # Deployment/interaction scripts
├── .env.example # Example environment variables
└── package.json # Dependencies and scripts
- Clear prerequisites
- Step-by-step setup instructions
- Project structure
- Common issues and solutions
- Network details
- Links to additional resources
- Detailed process explanation
- Code snippets with context
- Example outputs
- Troubleshooting guide
- Next steps
-
Dependencies
- Use
@branch/rpc-configfor network configuration - Keep dependencies up to date
- Document any special requirements
- Use
-
Scripts
- Include clear error handling
- Add helpful console output
- Document all environment variables
-
Contracts
- Include NatSpec comments
- Follow Solidity style guide
- Add test cases where applicable
- Create a new branch from
main - Follow the PR template
- Ensure all tests pass
- Update documentation as needed
- Get at least one review before merging
- Create a new directory in
apps/ - Follow the guide structure above
- Use existing guides as templates
- Test the guide end-to-end
- Submit a PR with the template
Feel free to open an issue or reach out to the team!