Welcome, and thank you for considering contributing to Dev-Blogs! 🙌 We're excited to have you collaborate with us to build and improve this open-source project. Below are the guidelines to help you get started.
We welcome contributions of all kinds, including but not limited to:
- Adding Blog Posts: Submit a technical blog post related to development, technology, or open-source.
- Fixing Bugs: Find and fix bugs or issues within the project.
- Suggesting New Features: Have a new feature in mind? Propose it or help implement it.
- Improving Documentation: Help us maintain up-to-date and accurate documentation.
To make contributions, you'll first need to fork the repository:
- Navigate to the Dev-Blogs repository.
- Click the Fork button at the top-right corner to create a copy of the repository under your GitHub account.
Once you've forked the repository, clone it to your local machine using the following command:
git clone https://github.com/Snakes-n-Networks/Dev-blogs
This will create a local copy of the project on your machine.
Always work on a separate branch for your changes:
git checkout -b my-feature-branch
Name your branch appropriately based on the changes you're making, e.g., add-blog-post
, fix-bug
, improve-docs
.
-
For Blog Posts:
- Add your blog in the appropriate directory (e.g.,
/content/blogs/
). - Blog posts should follow our markdown structure and guidelines outlined in the Blogging Guidelines.
- Include images or links if needed and ensure your blog post is formatted correctly.
- Add your blog in the appropriate directory (e.g.,
-
For Code Contributions:
- Make sure you follow the project’s coding standards.
- Ensure your changes are functional and, if possible, write tests to accompany your code.
Before submitting, test your changes locally to ensure they work as expected. For blog posts, you can preview the website:
npm install
npm run dev
This will start the local development server.
After verifying your changes, stage the modified files and commit them:
git add .
git commit -m "Add: Description of changes"
- Use concise and descriptive commit messages (e.g.,
Fix: Bug in navigation menu
orAdd: New blog post on JavaScript basics
).
Push your changes to your forked repository on GitHub:
git push origin my-feature-branch
Once your changes are pushed, go to the original Dev-Blogs repository and submit a pull request (PR):
- Go to the Pull Requests tab.
- Click New Pull Request.
- Choose the branch with your changes and submit the PR.
- In the PR description, clearly explain the changes you’ve made and why they are beneficial.
Your pull request will then be reviewed by maintainers, and feedback may be provided.