|
1 | | -# How to Contribute |
| 1 | +# Contributing to Solo Documentation |
2 | 2 |
|
3 | | -We'd love to accept your patches and contributions to this project. There are |
4 | | -just a few small guidelines you need to follow. |
| 3 | +We welcome contributions to improve the Solo documentation! This guide covers everything you need to know to contribute effectively, from fixing typos to adding new content and making technical improvements. |
5 | 4 |
|
6 | | -## Contributor License Agreement |
| 5 | +## Ways to Contribute |
7 | 6 |
|
8 | | -Contributions to this project must be accompanied by a Contributor License |
9 | | -Agreement. You (or your employer) retain the copyright to your contribution; |
10 | | -this simply gives us permission to use and redistribute your contributions as |
11 | | -part of the project. Head over to <https://cla.developers.google.com/> to see |
12 | | -your current agreements on file or to sign a new one. |
| 7 | +### Content Contributions |
| 8 | +- **Fix typos and improve clarity** in existing documentation. |
| 9 | +- **Add new guides or examples** for common use cases. |
| 10 | +- **Update content** for new Solo features or changes. |
| 11 | +- **Improve navigation** and information architecture. |
| 12 | +- **Translate content** to additional languages. |
13 | 13 |
|
14 | | -You generally only need to submit a CLA once, so if you've already submitted one |
15 | | -(even if it was for a different project), you probably don't need to do it |
16 | | -again. |
| 14 | +### Technical Contributions |
| 15 | +- **Improve the documentation site** (Hugo, Docsy, styling). |
| 16 | +- **Fix build issues** or CI/CD problems. |
| 17 | +- **Add new features** to the documentation platform. |
| 18 | +- **Update dependencies** and maintain infrastructure. |
17 | 19 |
|
18 | | -## Code reviews |
| 20 | +## Quick Start for Content Contributors |
19 | 21 |
|
20 | | -All submissions, including submissions by project members, require review. We |
21 | | -use GitHub pull requests for this purpose. Consult |
22 | | -[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more |
23 | | -information on using pull requests. |
| 22 | +### Prerequisites |
| 23 | +- Git |
| 24 | +- A GitHub account |
| 25 | +- Basic knowledge of Markdown |
24 | 26 |
|
25 | | -## Community Guidelines |
| 27 | +### Making Your First Contribution |
26 | 28 |
|
27 | | -This project follows |
28 | | -[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). |
| 29 | +1. **Find something to improve**: Browse the documentation at [solo.hiero.org](https://solo.hiero.org/) or check open [issues](https://github.com/hiero-ledger/solo-docs/issues). |
29 | 30 |
|
30 | | -## Maintainer notes |
| 31 | +2. **Fork the repository**: Click the "Fork" button on [GitHub](https://github.com/hiero-ledger/solo-docs). |
31 | 32 |
|
32 | | -### Upgrade Docsy |
| 33 | +3. **Clone your fork**: |
| 34 | + ```bash |
| 35 | + git clone https://github.com/YOUR_USERNAME/solo-docs.git |
| 36 | + cd solo-docs |
| 37 | + ``` |
33 | 38 |
|
34 | | -Update Docsy to the latest tagged release: |
| 39 | +4. **Create a branch** for your changes: |
| 40 | + ```bash |
| 41 | + git checkout -b docs/fix-typo-in-setup-guide |
| 42 | + ``` |
35 | 43 |
|
36 | | -```bash |
37 | | -npm run update:docsy:mod |
| 44 | +5. **Make your changes**: Edit the relevant `.md` files in `content/en/docs/` |
| 45 | + |
| 46 | +6. **Preview your changes** (optional): |
| 47 | + ```bash |
| 48 | + npm install |
| 49 | + hugo server -D --baseURL http://localhost:1313/ |
| 50 | + ``` |
| 51 | + |
| 52 | +7. **Commit and push**: |
| 53 | + ```bash |
| 54 | + git add . |
| 55 | + git commit -m "docs(setup-guide): fix typo in dependencies section" |
| 56 | + git push origin docs/fix-typo-in-setup-guide |
| 57 | + ``` |
| 58 | + |
| 59 | +8. **Create a Pull Request**: Go to GitHub and click "Compare & pull request" |
| 60 | + |
| 61 | +## Git Commit Conventions |
| 62 | + |
| 63 | +This repository uses **scoped semantic conventional commits** to maintain a clear and organized git history. All commit messages must follow the [Conventional Commits](https://conventionalcommits.org/) format with appropriate scopes. |
| 64 | + |
| 65 | +### Commit Message Format |
| 66 | +``` |
| 67 | +type(scope): description |
| 68 | +
|
| 69 | +[optional body] |
| 70 | +
|
| 71 | +[optional footer] |
| 72 | +``` |
| 73 | + |
| 74 | +### Types |
| 75 | +- `feat`: A new feature |
| 76 | +- `fix`: A bug fix |
| 77 | +- `docs`: Documentation changes |
| 78 | +- `style`: Code style changes (formatting, semicolons, etc.) |
| 79 | +- `refactor`: Code refactoring |
| 80 | +- `test`: Adding or updating tests |
| 81 | +- `chore`: Maintenance tasks (build, dependencies, etc.) |
| 82 | + |
| 83 | +### Scopes |
| 84 | +Use specific scopes to categorize your changes: |
| 85 | +- `docs`: General documentation changes |
| 86 | +- `content`: Content updates (guides, examples) |
| 87 | +- `style`: Styling and theming changes |
| 88 | +- `build`: Build system and CI/CD changes |
| 89 | +- `deps`: Dependency updates |
| 90 | +- `config`: Configuration files |
| 91 | +- `layout`: Hugo layout changes |
| 92 | + |
| 93 | +### Examples |
| 94 | +``` |
| 95 | +docs(installation): update installation prerequisites |
| 96 | +fix(content): correct typo in troubleshooting guide |
| 97 | +feat(style): add dark mode support |
| 98 | +chore(deps): update Hugo to latest version |
| 99 | +refactor(layout): simplify header component |
38 | 100 | ``` |
39 | 101 |
|
40 | | -Or update to the latest commit on the main branch: |
| 102 | +### Commit Guidelines |
| 103 | +- Use present tense ("add" not "added") |
| 104 | +- Keep the description under 72 characters |
| 105 | +- Use scopes consistently and appropriately |
| 106 | +- Reference issues when relevant (e.g., `fix(#123): resolve dependency mapping`) |
| 107 | + |
| 108 | +## Content Guidelines |
| 109 | + |
| 110 | +### Writing Style |
| 111 | +- Use clear, concise language. |
| 112 | +- Write in active voice when possible. |
| 113 | +- Use second person ("you") to address the reader. |
| 114 | +- Keep sentences and paragraphs short. |
| 115 | +- Use headings and subheadings for structure. |
| 116 | + |
| 117 | +### Markdown Best Practices |
| 118 | +- Use proper heading hierarchy (H1 → H2 → H3). |
| 119 | +- Include alt text for images |
| 120 | +- Use code blocks with language specification |
| 121 | +- Link to related documentation sections |
| 122 | +- Use tables for structured data |
| 123 | + |
| 124 | +### Front Matter |
| 125 | +Each content file should include proper front matter: |
| 126 | + |
| 127 | +```yaml |
| 128 | +--- |
| 129 | +title: "Your Page Title" |
| 130 | +weight: 10 |
| 131 | +description: > |
| 132 | + Brief description for SEO and navigation |
| 133 | +categories: ["Category"] |
| 134 | +tags: ["tag1", "tag2"] |
| 135 | +type: docs |
| 136 | +--- |
| 137 | +``` |
| 138 | + |
| 139 | +## Development Setup (For Technical Contributors) |
| 140 | + |
| 141 | +### Prerequisites |
| 142 | +- Node.js 22+ |
| 143 | +- Go 1.18+ (for Hugo extended) |
| 144 | +- Hugo extended 0.145.0+ |
| 145 | +- Git |
| 146 | + |
| 147 | +### Local Development |
| 148 | + |
| 149 | +1. **Clone the repository**: |
| 150 | + ```bash |
| 151 | + git clone https://github.com/hiero-ledger/solo-docs.git |
| 152 | + cd solo-docs |
| 153 | + ``` |
| 154 | + |
| 155 | +2. **Install dependencies**: |
| 156 | + ```bash |
| 157 | + npm install |
| 158 | + ``` |
| 159 | + |
| 160 | +3. **Start the development server**: |
| 161 | + ```bash |
| 162 | + hugo server -D --baseURL http://localhost:1313/ --cleanDestinationDir |
| 163 | + ``` |
| 164 | + |
| 165 | + Open `http://localhost:1313/` in your browser. |
| 166 | + |
| 167 | +### Available Commands |
41 | 168 |
|
42 | 169 | ```bash |
43 | | -npm run update:docsy:main |
| 170 | +# Build the site |
| 171 | +npm run build |
| 172 | + |
| 173 | +# Start development server |
| 174 | +npm run serve |
| 175 | + |
| 176 | +# Clean build artifacts |
| 177 | +npm run clean |
| 178 | + |
| 179 | +# Format code |
| 180 | +npm run fix:format |
| 181 | + |
| 182 | +# Run tests (link checking) |
| 183 | +npm run test |
44 | 184 | ``` |
45 | 185 |
|
46 | | -<!-- cSpell:ignore hugo docsy --> |
| 186 | +## Content Structure |
| 187 | + |
| 188 | +### Directory Layout |
| 189 | +``` |
| 190 | +content/en/docs/ |
| 191 | +├── _index.md # Documentation home page |
| 192 | +├── simple-solo-setup/ # Getting started guides |
| 193 | +├── advanced-solo-setup/ # Complex configurations |
| 194 | +├── using-solo/ # Usage and operations |
| 195 | +├── troubleshooting.md # Common issues |
| 196 | +└── community-contributions.md # Community info |
| 197 | +``` |
| 198 | + |
| 199 | +## Pull Request Process |
| 200 | + |
| 201 | +### Before Submitting |
| 202 | +- [ ] Test your changes locally |
| 203 | +- [ ] Check that links work correctly |
| 204 | +- [ ] Ensure proper formatting and spelling |
| 205 | +- [ ] Follow the content guidelines above |
| 206 | +- [ ] Update any related documentation |
| 207 | + |
| 208 | +### PR Template |
| 209 | +When creating a pull request, include: |
| 210 | +- **Description**: What changes and why |
| 211 | +- **Testing**: How you tested the changes |
| 212 | +- **Screenshots**: For UI or layout changes |
| 213 | +- **Related Issues**: Link to any related issues |
| 214 | + |
| 215 | +### Review Process |
| 216 | +1. Automated checks will run (formatting, link checking) |
| 217 | +2. A maintainer will review your changes |
| 218 | +3. Address any feedback or requested changes |
| 219 | +4. Once approved, your PR will be merged |
| 220 | + |
| 221 | +## Code Review Guidelines |
| 222 | + |
| 223 | +### For Reviewers |
| 224 | +- Be constructive and respectful |
| 225 | +- Focus on the content and user experience |
| 226 | +- Check for technical accuracy |
| 227 | +- Verify adherence to style guidelines |
| 228 | +- Test changes when possible |
| 229 | + |
| 230 | +### For Contributors |
| 231 | +- Be open to feedback |
| 232 | +- Explain your reasoning when requested |
| 233 | +- Make requested changes promptly |
| 234 | +- Ask questions if anything is unclear |
| 235 | + |
| 236 | +## Issue Reporting |
| 237 | + |
| 238 | +### Bug Reports |
| 239 | +- Use the bug report template |
| 240 | +- Include steps to reproduce |
| 241 | +- Provide environment details |
| 242 | +- Add screenshots if relevant |
| 243 | + |
| 244 | +### Feature Requests |
| 245 | +- Describe the problem you're trying to solve |
| 246 | +- Explain your proposed solution |
| 247 | +- Consider alternative approaches |
| 248 | + |
| 249 | +### Content Improvements |
| 250 | +- Be specific about what needs improvement |
| 251 | +- Suggest concrete changes when possible |
| 252 | +- Provide examples from other documentation |
| 253 | + |
| 254 | +## Community and Support |
| 255 | + |
| 256 | +- **Discussions**: Use [GitHub Discussions](https://github.com/hiero-ledger/solo-docs/discussions) for questions |
| 257 | +- **Issues**: Report bugs and request features on [GitHub Issues](https://github.com/hiero-ledger/solo-docs/issues) |
| 258 | +- **Solo Tool**: For questions about Solo itself, visit the [Solo repository](https://github.com/hiero-ledger/solo) |
| 259 | + |
| 260 | +## Recognition |
| 261 | + |
| 262 | +Contributors are recognized in several ways: |
| 263 | +- Your name in the contributor list |
| 264 | +- Attribution in release notes |
| 265 | +- Recognition in community discussions |
| 266 | + |
| 267 | +Thank you for contributing to Solo documentation! 🎉 |
0 commit comments