Thank you for considering contributing to Floki! Your ideas and efforts mean a lot to us, and together, we can make this project even better. This guide will walk you through everything you need to know to get started and make an impact.
By contributing, you agree to abide by our Code of Conduct. Please take a moment to read it before starting.
If you encounter a bug or have an idea for a new feature:
- Check the issue tracker to see if it’s already reported.
- If not, open a new issue with:
- A clear title and description.
- Steps to reproduce (for bugs).
- Why the feature would be useful (for feature requests).
Follow these steps to get started with the project:
- Fork the Repository: Click the
Fork
button on the top-right of the GitHub page to create your own copy of the repository. - Clone Your Fork:
git clone https://github.com/your-username/your-repo.git
cd your-repo
- Set Up a Virtual Environment (optional but recommended):
python -m venv .venv
source .venv/bin/activate # On Windows: .\venv\Scripts\activate
- Install the Project in Editable Mode:
pip install -e .
- Check the installed package version to confirm:
pip list | grep floki-ai
Always create a new branch for your changes to keep things organized:
git checkout -b feature/your-feature-name
Follow these branch naming conventions:
- feature/short-description for new features.
- bugfix/short-description for bug fixes.
- hotfix/short-description for urgent fixes.
- Focus on a single feature or fix per branch.
- Add tests if your change involves functionality.
- Update documentation if necessary.
Write clear, meaningful commit messages:
git add .
git commit -m "feat: add user authentication feature"
Push your changes to your forked repository:
git push origin feature/your-feature-name
- Go to your forked repository on GitHub and click
New Pull Request.
- Ensure your branch is being merged into the main branch.
- Include a clear title and description of your changes.
- Add any related issue numbers (e.g., Closes #123).
To contribute to Floki's documentation, you can preview the docs locally using Docker. Follow these steps:
- Ensure you have Docker installed and running on your system. If not, download Docker here.
- Navigate to the project's root directory where the documentation files are located.
- Run the following command to start a local documentation server:
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
- Open your browser and go to the following URL to view the docs:
http://0.0.0.0:8000/floki/
- Any changes you make to the Markdown files under the /docs folder will automatically reflect in the preview.
- Be responsive to feedback.
- Make any requested changes promptly.
- Once approved, a maintainer will merge your pull request.
Once your Pull Request (PR) has been merged or closed, it’s a good practice to clean up your local and remote branches. This helps keep your development environment and fork organized.
git branch -D feature/your-feature-name
git push origin --delete feature/your-feature-name
If you have any questions, open an issue with the question label.
Thank you for contributing! 🎉