We’re excited that you’re interested in contributing to the PNG to PPT Converter project! Your contributions help make this project better for everyone. This document provides guidelines and best practices for contributing.
- Navigate to the repository on GitHub.
- Click the "Fork" button in the upper right corner of the page to create a copy of the repository under your GitHub account.
git clone https://github.com/theprolifical/ppt-to-png.git
cd ppt-to-png
Before making any changes, create a new branch for your feature or bugfix:
git checkout -b my-new-feature
Make your changes or additions in your new branch. Be sure to:
- Follow the code style of the project.
- Write or update tests as necessary.
- Document any new features or changes in the
README.md
.
Make sure your changes work as expected. If you’re working on the website version or standalone version, run the respective scripts to verify functionality.
- Web Version:
python web_version.py # Access the web interface at http://localhost:8080 and test functionality
- Standalone Version:
python standalone.py # Verify that the PNG files in the 'files' folder are correctly converted to PPT files in the root directory
Use descriptive and concise commit messages. For example:
git add .
git commit -m "Add support for batch processing of PNG files"
Push your changes to your forked repository:
git push origin my-new-feature
Go to the original repository on GitHub and submit a Pull Request (PR) from your branch. Fill out the PR template, providing as much detail as possible.
Please ensure that your code follows the project’s code style guidelines:
- Python Version: Ensure your code is compatible with Python 3.x.
- Linting: Run a linter (e.g.,
flake8
,black
) before submitting. - Comments: Comment your code where necessary to explain complex logic.
Writing tests is an important part of contributing to this project:
- Include tests for any new features or significant changes.
- Run all existing tests to ensure your changes don't cause any regressions.
- Use the
unittest
framework, or another suitable testing framework, to write tests.
-
Web Version:
- Upload PNG files via the web interface.
- Ensure the converted PPT files are saved in the
outputs
folder. - Test multiple scenarios to verify robustness.
-
Standalone Version:
- Place PNG files in the
files
folder. - Run
standalone.py
and ensure the converted PPT files are saved in the root directory. - Test with different numbers of PNG files to verify batch processing.
- Place PNG files in the
Please update the README.md
or any other relevant documentation for any changes or new features you introduce. Well-documented code is easier to maintain and understand!
If you are submitting a bug fix or feature that addresses a security issue, please make sure you have read and followed the guidelines in the Security Policy.
Please note that this project is governed by a Code of Conduct. By participating, you are expected to uphold this code.
If you need any help or have questions about contributing, feel free to open an issue or contact the maintainers at [itsahson1978@gmail.com].
Thank you for contributing! 🚀