|
| 1 | +# 🙌 Contributing to SwingFX-Markdown-Preview |
| 2 | + |
| 3 | +Thank you for your interest in contributing to **SwingFX-Markdown-Preview**! 🎉 |
| 4 | +We welcome all kinds of contributions — from bug fixes and documentation improvements to new features and performance enhancements. |
| 5 | + |
| 6 | +--- |
| 7 | + |
| 8 | +## 💡 How to Contribute |
| 9 | + |
| 10 | +### 1️⃣ Fork the Repository |
| 11 | +Click the **"Fork"** button at the top right of the [SwingFX-Markdown-Preview repository](https://github.com/raghul-tech/SwingFX-Markdown-Preview) to create your own copy. |
| 12 | + |
| 13 | +--- |
| 14 | + |
| 15 | +### 2️⃣ Clone Your Fork |
| 16 | +Clone your forked repository to your local machine: |
| 17 | + |
| 18 | +```bash |
| 19 | +git clone https://github.com/YOUR_USERNAME/SwingFX-Markdown-Preview.git |
| 20 | +cd SwingFX-Markdown-Preview |
| 21 | +``` |
| 22 | + |
| 23 | +*(Replace `YOUR_USERNAME` with your GitHub username.)* |
| 24 | + |
| 25 | +--- |
| 26 | + |
| 27 | +### 3️⃣ Create a Branch |
| 28 | +Create a new branch for your changes: |
| 29 | + |
| 30 | +```bash |
| 31 | +git checkout -b fix/live-reload-improvements |
| 32 | +``` |
| 33 | + |
| 34 | +Use a **descriptive branch name** that explains what you’re working on. |
| 35 | + |
| 36 | +--- |
| 37 | + |
| 38 | +### 4️⃣ Make Your Changes |
| 39 | +- Update code. |
| 40 | +- Add or improve tests. |
| 41 | +- Write or update documentation. |
| 42 | +- Verify your changes work as expected. |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +### 5️⃣ Commit and Push |
| 47 | +Commit your changes with a clear message: |
| 48 | + |
| 49 | +```bash |
| 50 | +git add . |
| 51 | +git commit -m "Feat: improve live preview reload when file changes" |
| 52 | +git push origin fix/live-reload-improvements |
| 53 | +``` |
| 54 | + |
| 55 | +--- |
| 56 | + |
| 57 | +### 6️⃣ Open a Pull Request |
| 58 | +1. Go to your forked repository on GitHub. |
| 59 | +2. Click **“Compare & pull request.”** |
| 60 | +3. Provide a clear description of your changes. |
| 61 | +4. Click **“Create pull request.”** |
| 62 | + |
| 63 | +We’ll review your contribution as soon as possible! |
| 64 | + |
| 65 | +--- |
| 66 | + |
| 67 | +## 🧪 Adding Examples |
| 68 | +If you’d like to contribute example usage: |
| 69 | + |
| 70 | +- Place examples in the `examples/` directory. |
| 71 | +- Keep examples **simple and focused**, showing one concept at a time. |
| 72 | + |
| 73 | +--- |
| 74 | + |
| 75 | +## ✅ Code Style Guidelines |
| 76 | +- Use clear, descriptive names. |
| 77 | +- Keep methods small and focused. |
| 78 | +- Prefer `StandardCharsets.UTF_8` over string literals. |
| 79 | +- Use `try-catch` responsibly and avoid swallowing exceptions silently. |
| 80 | +- Follow existing formatting and indentation patterns. |
| 81 | + |
| 82 | +--- |
| 83 | + |
| 84 | +## 🧹 Running Tests |
| 85 | +Before opening your pull request, please run: |
| 86 | + |
| 87 | +```bash |
| 88 | +mvn clean verify |
| 89 | +``` |
| 90 | + |
| 91 | +This ensures your changes pass all checks. |
| 92 | + |
| 93 | +--- |
| 94 | + |
| 95 | +## 📜 License |
| 96 | +By contributing, you agree that your contributions will be licensed under the [MIT License](LICENSE). |
| 97 | + |
| 98 | +--- |
| 99 | + |
| 100 | +## ❤️ Thank You |
| 101 | +Your help makes **SwingFX-Markdown-Preview** better for everyone. |
| 102 | +Thank you for contributing! |
0 commit comments