First off, thank you for considering contributing to Roadmap Personal Blog! It's people like you that make it a great tool for everyone.
By participating in this project, you are expected to uphold our Code of Conduct:
- Use welcoming and inclusive language
- Be respectful of differing viewpoints and experiences
- Gracefully accept constructive criticism
- Focus on what is best for the community
- Show empathy towards other community members
Before creating bug reports, please check the existing issues as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible:
- Use a clear and descriptive title for the issue
- Describe the exact steps to reproduce the problem
- Provide specific examples to demonstrate the steps
- Describe the behavior you observed after following the steps
- Explain which behavior you expected to see instead and why
- Include screenshots or animated GIFs if possible
- Include your environment details (OS, Python version, etc.)
Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion, please include:
- Use a clear and descriptive title for the issue
- Provide a step-by-step description of the suggested enhancement
- Provide specific examples to demonstrate the steps
- Describe the current behavior and explain which behavior you expected to see instead
- Explain why this enhancement would be useful
- List some other applications where this enhancement exists, if applicable
- Fork the repository and create your branch from
main
- If you've added code that should be tested, add tests
- If you've changed APIs, update the documentation
- Ensure the test suite passes
- Make sure your code follows the existing style
- Issue that pull request!
-
Clone the repository:
git clone https://github.com/P-Nelly/roadmap-personal-blog.git cd roadmap-personal-blog
-
Create a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt
-
Create a branch for your feature:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git add . git commit -m "Add your commit message"
-
Push to your fork:
git push origin feature/your-feature-name
- Follow PEP 8
- Use meaningful variable names
- Add docstrings to functions and classes
- Keep functions focused and small
- Use type hints where appropriate
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally after the first line
- Write unit tests for new features
- Ensure all tests pass before submitting a pull request
- Aim for high test coverage
- Run tests using:
python -m pytest
When adding new features, please maintain the existing project structure:
roadmap-personal-blog/
├── app/ # Application package
│ ├── articles/ # Article storage
│ ├── static/ # Static files (CSS, JS)
│ ├── templates/ # HTML templates
│ ├── __init__.py # App initialization
│ ├── auth.py # Authentication logic
│ └── routes.py # Route handlers
├── tests/ # Test suite
└── requirements.txt # Project dependencies
- Update the README.md if you change functionality
- Comment your code where necessary
- Update docstrings for any modified functions
- Add new sections to documentation for new features
Feel free to open an issue with the tag "question" if you have any questions about contributing.
By contributing, you agree that your contributions will be licensed under the MIT License.