DocsGPT/CONTRIBUTING.md

55 lines
2.9 KiB
Markdown
Raw Normal View History

2023-10-05 20:10:03 +00:00
# Welcome to DocsGPT Contributing Guidelines
2023-02-14 14:55:41 +00:00
2023-10-08 19:51:36 +00:00
Thank you for choosing to contribute to DocsGPT! We are all very grateful!
2023-02-14 14:55:41 +00:00
2023-10-02 14:14:19 +00:00
### [🎉 Join the Hacktoberfest with DocsGPT and Earn a Free T-shirt! 🎉](https://github.com/arc53/DocsGPT/blob/main/HACKTOBERFEST.md)
2023-02-14 14:55:41 +00:00
# We accept different types of contributions
2023-10-08 21:56:20 +00:00
📣 **Discussions** - Engage in conversations, start new topics, or help answer questions.
2023-02-14 14:55:41 +00:00
2023-10-08 21:56:20 +00:00
🐞 **Issues** - This is where we keep track of tasks. It could be bugs,fixes or suggestions for new features.
2023-02-14 14:55:41 +00:00
2023-10-08 21:56:20 +00:00
🛠️ **Pull requests** - Suggest changes to our repository, either by working on existing issues or adding new features.
2023-02-14 14:55:41 +00:00
2023-10-08 21:56:20 +00:00
📚 **Wiki** - This is where our documentation resides.
2023-02-14 14:55:41 +00:00
## 🐞 Issues and Pull requests
We value contributions in the form of discussions or suggestions. We recommend taking a look at existing issues and our [roadmap](https://github.com/orgs/arc53/projects/2).
2023-02-14 14:55:41 +00:00
If you're interested in contributing code, here are some important things to know:
2023-10-05 20:10:03 +00:00
We have a frontend built with React (Vite) and a backend in Python.
2023-10-05 20:10:03 +00:00
### If you are looking to contribute to frontend (⚛React, Vite):
- The current frontend is being migrated from [`/application`](https://github.com/arc53/DocsGPT/tree/main/application) to [`/frontend`](https://github.com/arc53/DocsGPT/tree/main/frontend) with a new design, so please contribute to the new one.
2023-10-05 20:10:03 +00:00
- Check out this [milestone](https://github.com/arc53/DocsGPT/milestone/1) and its issues.
- The Figma design can be found [here](https://www.figma.com/file/OXLtrl1EAy885to6S69554/DocsGPT?node-id=0%3A1&t=hjWVuxRg9yi5YkJ9-1).
2023-02-14 14:55:41 +00:00
Please try to follow the guidelines.
2023-02-14 14:55:41 +00:00
2023-10-05 20:10:03 +00:00
### If you are looking to contribute to Backend (🐍 Python):
2023-02-14 14:55:41 +00:00
2023-10-08 21:56:20 +00:00
- Review our issues and contribute to [`/application`](https://github.com/arc53/DocsGPT/tree/main/application) or [`/scripts`](https://github.com/arc53/DocsGPT/tree/main/scripts) (please disregard old [`ingest_rst.py`](https://github.com/arc53/DocsGPT/blob/main/scripts/old/ingest_rst.py) [`ingest_rst_sphinx.py`](https://github.com/arc53/DocsGPT/blob/main/scripts/old/ingest_rst_sphinx.py) files; they will be deprecated soon).
2023-10-05 20:10:03 +00:00
- All new code should be covered with unit tests ([pytest](https://github.com/pytest-dev/pytest)). Please find tests under [`/tests`](https://github.com/arc53/DocsGPT/tree/main/tests) folder.
- Before submitting your Pull Request, ensure it can be queried after ingesting some test data.
### Testing
2023-10-05 20:10:03 +00:00
To run unit tests from the root of the repository, execute:
```
python -m pytest
```
2023-10-10 06:42:25 +00:00
### Workflow📈 :
- Fork the repository <br>
- Make the required changes on your forked version <br>
- Commit those changes and submit those as a pull request so that it reflects on thr main repository.<br>
2023-02-14 14:55:41 +00:00
## Questions/collaboration
Feel free to join our [Discord](https://discord.gg/n5BX8dh8rU). We're very friendly and welcoming to new contributors, so don't hesitate to reach out.
2023-08-18 15:43:17 +00:00
# Thank you so much for considering contributing to DocsGPT!🙏