Contribution Guide
Thank you for contributing to TextGO. This guide explains how to get involved.
Ways to Contribute
- 🐛 Report Bugs: Submit an issue when you find a problem
- 💡 Suggest Features: Share your ideas and feature requests
- 📝 Improve Documentation: Refine guides and examples
- 🔧 Fix Issues: Submit pull requests that fix bugs
- ✨ Add Features: Develop new features
- 🌍 Help Translate: Translate the interface and documentation
- 📚 Share Scripts: Share custom scripts and regular expressions
Submit an Issue
Search existing issues before submitting to avoid duplicates. When creating an issue, choose the appropriate template and provide the requested information.
Submit a Pull Request
1. Prepare Development Environment
Required tools: Node.js, pnpm, Rust, Git
bash
# After forking the project, clone your repository
git clone https://github.com/YOUR_USERNAME/TextGO.git
cd TextGO
git remote add upstream https://github.com/C5H12O5/TextGO.git
# Install dependencies
pnpm install2. Development and Testing
bash
# Start development server
pnpm tauri dev
# Enable debug logs (macOS/Linux)
RUST_LOG=debug pnpm tauri dev
# Enable debug logs (Windows PowerShell)
$env:RUST_LOG="debug"; pnpm tauri dev
# Build production version
pnpm tauri build3. Create Branch and Develop
bash
# Update and create feature branch
git checkout main
git pull upstream main
git checkout -b feature/my-new-feature # or fix/bug-descriptionCode standards:
- Frontend: Run
pnpm checkandpnpm lint - Rust: Run
cargo fmt --manifest-path ./src-tauri/Cargo.tomlandcargo clippy --manifest-path ./src-tauri/Cargo.toml -- -D warnings
4. Commit Changes
Follow the Conventional Commits specification:
bash
git add .
git commit -m "feat: add keyboard shortcut customization"
# or fix/docs/refactor/perf/test/chore, etc.5. Submit Pull Request
bash
# Push to your repository
git push origin feature/my-new-featureCreate a pull request on GitHub. Describe what changed and why, and reference related issues.
Documentation Contribution
The documentation is maintained in the TextGO Hub repository. Fork and clone that repository before making the changes below.
Improve Existing Documentation
- Find errors or unclear parts
- Edit the corresponding
.mdfile - Submit a pull request
Translate Documentation to Other Languages
- Copy the English documentation to a new language directory
- Translate content
- Keep structure consistent
- Submit a pull request