Contributing to the Documentation
Thank you for your interest in contributing to the HyperCore One Meta documentation! This guide will walk you through the process of proposing changes and submitting them for review.
Prerequisites
Before you begin, make sure you have:
- A GitHub account
- Git installed on your local machine
- Node.js and npm installed (for testing changes locally)
Step 1: Fork the Repository
- Navigate to the HyperCore One Meta repository
- Click the Fork button in the upper right corner
- This creates a copy of the repository under your GitHub account
Step 2: Clone Your Fork
Clone your forked repository to your local machine:
git clone https://github.com/YOUR_USERNAME/meta.git
cd metaStep 3: Create a New Branch
Create a new branch for your changes:
git checkout -b feature/your-feature-nameUse descriptive branch names like:
docs/add-governance-guidelinesfix/typo-in-principlesfeature/new-sig-charter
Step 4: Make Your Changes
Adding New Documentation
Create your new markdown file in the appropriate directory:
- Governance documents:
governance/ - ADRs:
adrs/ - SIG charters:
sigs/
- Governance documents:
Write your content using Markdown syntax
Updating Navigation
If you're adding a new page, you'll need to update the VitePress configuration:
- Open
.vitepress/config.mts - Add your new page to the appropriate section:
sidebar: [
{
text: 'Documentation',
items: [
{ text: 'Your New Page', link: '/your-new-page' },
// ... other items
]
}
]Step 5: Test Your Changes Locally
Before submitting, test your changes locally:
npm install
npm run docs:devVisit http://localhost:5173 to preview your changes.
Step 6: Commit Your Changes
git add .
git commit -m "Add clear, descriptive commit message"Good examples:
Add governance guidelines for proposal processFix broken link in contributing guideUpdate SIG charter template with new sections
Step 7: Push to Your Fork
git push origin feature/your-feature-nameStep 8: Create a Pull Request
- Go to your fork on GitHub
- Click Pull requests → New pull request
- Ensure the base repository is
hypercore-one/metaand base branch ismaster - Click Create pull request
- Fill out the PR template:
- Title: Clear description of changes
- Description: Explain what you changed and why
- Related Issues: Link any related issues with
#issue-number
PR Description Template
## Summary
Brief description of what this PR does
## Changes
- Added X documentation
- Updated Y section
- Fixed Z issue
## Checklist
- [ ] Tested changes locally
- [ ] Updated config.mts if needed
- [ ] Checked for broken links
- [ ] Reviewed for typos and formattingReview Process
After submitting your PR:
- Maintainers will review your changes
- They may request modifications or clarifications
- Make requested changes in your branch and push updates
- Once approved, your PR will be merged
Best Practices
Content Guidelines
- Be Clear and Concise: Use simple language and avoid jargon
- Use Examples: Include practical examples where appropriate
- Stay Consistent: Follow existing formatting and style patterns
- Add Context: Explain the "why" not just the "what"
Technical Guidelines
- Check Links: Ensure all links work correctly
- Use Relative Paths: For internal links, use relative paths
- Optimize Images: If adding images, keep file sizes reasonable
- Test Locally: Always preview your changes before submitting
Common Issues to Avoid
- Don't commit
node_modules/or build artifacts - Don't modify unrelated files
- Don't include personal or sensitive information
- Don't make massive changes in a single PR - break them up
Getting Help
If you need assistance:
- Check existing documentation for examples
- Open an issue for clarification
- Ask questions in your PR description
- Review recent merged PRs for patterns
Thank You!
Your contributions help make HyperCore One documentation better for everyone. We appreciate your time and effort in improving our community resources!