|
| 1 | +# 🙌 Contributing to JavaFX Markdown Preview |
| 2 | + |
| 3 | +First off, thanks for taking the time to contribute! 🎉 |
| 4 | +Contributions are what make the open-source community such an amazing place to learn, inspire, and create. |
| 5 | + |
| 6 | +Whether it's fixing a bug, adding a new feature, improving documentation, or suggesting enhancements—your help is appreciated! |
| 7 | + |
| 8 | +--- |
| 9 | + |
| 10 | +## 🚀 How to Contribute |
| 11 | + |
| 12 | +### 1. Fork the Repository |
| 13 | + |
| 14 | +Click the **Fork** button at the top-right corner of this page to create your own copy. |
| 15 | + |
| 16 | +### 2. Clone Your Fork |
| 17 | + |
| 18 | +```bash |
| 19 | +git clone https://github.com/your-username/javafx-markdown-preview.git |
| 20 | + |
| 21 | +cd javafx-markdown-preview |
| 22 | +``` |
| 23 | + |
| 24 | +### 3. Create a New Branch |
| 25 | +```bash |
| 26 | +git checkout -b your-feature-name |
| 27 | +``` |
| 28 | +- 💡 Tip: Use descriptive branch names like `fix-live-refresh`, `add-theme-support`, etc. |
| 29 | + |
| 30 | +### 4. Make Your Changes |
| 31 | +- Make your edits to the code, documentation, or tests. |
| 32 | + |
| 33 | +### 5. Commit and Push |
| 34 | +```bash |
| 35 | +git add . |
| 36 | + |
| 37 | +git commit -m "✨ Add new feature: ..." |
| 38 | + |
| 39 | +git push origin your-feature-name |
| 40 | +``` |
| 41 | + |
| 42 | +### 6. Open a Pull Request |
| 43 | + |
| 44 | +- Go to the Pull Requests tab in the GitHub repo. |
| 45 | + |
| 46 | +- Click "New pull request". |
| 47 | + |
| 48 | +- Set the base branch to main and compare it with your feature branch. |
| 49 | + |
| 50 | +- Add a meaningful title and description. |
| 51 | + |
| 52 | +--- |
| 53 | + |
| 54 | +## ✅ Code Guidelines |
| 55 | +- Follow standard Java code formatting. |
| 56 | + |
| 57 | +- Use clear commit messages. |
| 58 | + |
| 59 | +- Add JavaDoc comments where necessary. |
| 60 | + |
| 61 | +- Include example usage if you're adding a new public method. |
| 62 | + |
| 63 | +- Ensure your code doesn't break existing examples. |
| 64 | + |
| 65 | +--- |
| 66 | + |
| 67 | +## 🧪 Running Examples |
| 68 | +- Test your changes using the sample files under the `examples/` folder. |
| 69 | +- If adding a new feature, please consider adding a demo for it too. |
| 70 | + |
| 71 | +--- |
| 72 | + |
| 73 | +## 🛠️ Reporting Issues |
| 74 | +- Found a bug or have a feature suggestion? |
| 75 | + |
| 76 | +1. Go to the Issues section. |
| 77 | + |
| 78 | +2. Click New Issue. |
| 79 | + |
| 80 | +3. Fill out the issue template with steps to reproduce or describe your suggestion clearly. |
| 81 | + |
| 82 | +4. Add screenshots if applicable. |
| 83 | + |
| 84 | +--- |
| 85 | + |
| 86 | +## 🙏 Thank You |
| 87 | +Thanks again for your interest and support in making JavaFX Markdown Preview better! |
| 88 | +Let’s build something awesome together. |
| 89 | + |
| 90 | +— @raghul-tech |
| 91 | +--- |
| 92 | + |
0 commit comments