Thank you for considering contributing to devoss.tech! This guide will provide you with the necessary information and instructions to make the contribution process smooth and effective.
devoss.tech is an open-source project that aims to provide a collection of project guides, blogs, and documentation on various tech paradigms. By contributing to devoss.tech, you can help improve existing guides, add new project ideas, enhance documentation, and engage in the open-source community, fostering a better generation of programmers and tech geeks.
You can contribute to devoss.tech in the following ways:
- Documentation/Blog: Submit blogs and documentations to help learners and share your knowledge.
- Code: Submit bug fixes, implement new features, or improve existing functionality.
- Bug Reports: Report bugs by creating detailed issue reports with clear steps to reproduce.
To contribute to devoss.tech, you will need the following:
- Github Account
- Git
- Node
- NPM
To contribute to devoss.tech, follow the steps below:
- Fork the devoss repository to your GitHub account.
-
Clone (or download) your forked repo to your local machine by running the following command in your terminal:
git clone https://github.com/{YOUR_GITHUB_USERNAME}/devoss.git
-
Navigate to the
devossdirectory in your terminal:cd devoss -
Install all the required dependencies by running the following command:
npm install
-
Create a new branch for your contribution. It is recommended to use a separate branch for each new feature, bug fix, or contribution. Run the following command to create a new branch:
git checkout -b my-branch-name
Replace
my-branch-namewith a suitable branch name, such asyour-usernameoryour-changes-or-contributions.
If you are contributing to the codebase or directly improving the UI or other features, make the desired changes and skip to step 6.
If you are contributing in the form of documentation and blogs, follow these steps and for a more detailed overview of contributing as posts, refer the Getting Started with devoss post, which takes you to detailed, step-by-step procedure of adding/editing posts on devoss:
-
In the root of your local
devossdirectory, open the terminal and run:npm run new-post
-
Answer the prompted questions to create the frontmatter for your markdown file.
-
After running the command, a markdown file with the proper frontmatter will be created. Use your preferred code editor to start writing the content in the file.
-
To test your changes locally, run the following command in the root directory of the project:
npm run dev
This will start the development server with your changes on
localhost:3000. Verify all the changes you made and test other functionalities.
-
Stage all your changes by running the following command in the root directory of the project:
git add -A
-
Commit your changes with an appropriate commit message, similar to the branch name:
git commit
This will open your default editor (Vim, Nano, etc). We suggest you to be as descriptive about your commits as you can. Use proper heading and body for commits.
-
Push your changes to your remote repository using the following command:
git push -u origin my-branch-name
Replace
my-branch-namewith the name of your branch.
-
Go to your repository on GitHub in the browser and click on "Compare and pull requests".
-
Add a title and description to your pull request, explaining your changes and the purpose of your contribution.
-
Submit the pull request and wait for it to be reviewed and merged.
Congratulations on your successful contribution towards open source and fostering a healthy learning environment in the tech community!
Remember to regularly sync your forked repository with the original repository to stay up to date with any changes made by others. To sync your fork, use the following command:
git remote add upstream https://github.com/USKhokhar/devoss.git
git fetch upstream
git checkout master
git merge upstream/master