Thank you for your interest in contributing to Embed PDF Viewer! This document provides guidelines and steps for contributing.
By participating in this project, you agree to abide by our Code of Conduct. Please be respectful and constructive in all interactions.
- Check if the bug has already been reported in Issues
- If not, create a new issue with:
- A clear, descriptive title
- Detailed steps to reproduce the bug
- Expected vs actual behavior
- Screenshots if applicable
- Your environment details (browser, OS, etc.)
- Open a new issue describing your proposed enhancement
- Include:
- The use case for the enhancement
- How it would benefit other users
- Any implementation details you have in mind
- Fork the repository
- Create a new branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests if available
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow the existing code style
- Include comments in your code where necessary
- Update documentation if needed
- Add tests for new features
- Ensure all tests pass
- Keep pull requests focused on a single feature/fix
- Clone the repository
- Install dependencies:
pnpm install - Watch for changes and build:
pnpm build:watch - Run an example for example the vanilla example:
pnpm dev --filter @embedpdf/example-vanilla
By contributing, you agree that your contributions will be licensed under the MIT License.