Thank you for your interest in contributing to PrintGenius! We aim to make code and documentation sharing easier through beautiful PDF exports, and we welcome contributions from the community.
By participating in this project, you agree to maintain a respectful and inclusive environment for everyone. Please:
- Use welcoming and inclusive language
- Be respectful of differing viewpoints and experiences
- Accept constructive criticism gracefully
- Focus on what's best for the community
- Check Existing Issues: Before creating a new issue, please search existing ones to avoid duplicates
- Create a Clear Report: When creating a new issue, include:
- A clear, descriptive title
- Steps to reproduce the issue
- Expected behavior
- Actual behavior
- VS Code version
- PrintGenius version
- Sample code or markdown file (if relevant)
- Use the Feature Request Template: When suggesting new features, include:
- Clear use case and motivation
- Proposed solution
- Alternative solutions considered
- Additional context or screenshots
-
Fork the Repository: Create your own fork of the project
-
Create a Branch: Make your changes in a new branch
git checkout -b feature/your-feature-name
-
Follow Code Style:
- Use TypeScript for new code
- Follow existing code formatting
- Add comments for complex logic
- Update documentation as needed
-
Test Your Changes:
- Run existing tests:
npm test
- Add new tests for new features
- Test with different file types (code, markdown)
- Verify PDF output quality
- Run existing tests:
-
Commit Guidelines:
- Use clear, descriptive commit messages
- Follow conventional commits format:
feat: Add new template option fix: Resolve PDF generation error docs: Update installation instructions
-
Submit Pull Request:
- Provide a clear description of changes
- Link related issues
- Include screenshots for UI changes
- Ensure all tests pass
-
Prerequisites:
- Node.js (Latest LTS version)
- VS Code
- Git
-
Installation:
git clone https://github.com/alpha912/printgenius.git cd printgenius npm install
-
Running Locally:
- Press F5 in VS Code to start debugging
- Use "Extension Development Host" to test changes
src/
: TypeScript source filesextension.ts
: Main extension code
resources/
: Templates and stylestemplate.html
: PDF generation templatehljsStyles.hbs
: Syntax highlighting styles
test/
: Test filesdocs/
: Documentation
- Questions: Open a Discussion
- Documentation: Check our Wiki
- Issues: Search existing issues
By contributing to PrintGenius, you agree that your contributions will be licensed under the MIT License.