This guide takes you through contributing to devoss.tech and making your first open source contribution.
Before proceeding with this post, I recommend reading the CONTRIBUTION GUIDELINES to get a complete overview of contributing to devoss.tech. This guide is specifically for contributing in the form of posts.
To contribute to devoss.tech, follow these steps to set up the project on your local machine:
git clone https://github.com/{YOUR_GITHUB_USERNAME}/devoss.git
You can now open the devoss repository on your local machine.
# Move to the devoss directory
cd devoss
# Install all the required dependencies
npm install
# Run the project on your local server
npm run dev
Now you can access your app at localhost:3000.
To add a new post to devoss.tech, it is recommended to first create an issue. Follow these steps:
After creating the issue, you will be assigned to it, and then you can continue with the following steps to add your post.
To set up a new post for contribution, devoss uses a Command Line Interface (CLI) to automate the entire process and make it easy for contributors.
In order to create a new post, open a new terminal session in the devoss directory.
In the new terminal session, run:
npm run new-post
This will prompt you with certain questions regarding your post. Something like this:
/post
directory. Your terminal should look like this:Your post is now created in a markdown file under the /post
directory. For example, if you gave your post the title of "Example Post For Devoss," your file will be /post/example-post-for-devoss.md`.
If you are using VSCode, I suggest using the shortcut CTRL + P to access your file.
The frontmatter of your markdown file is already managed by the responses given in the command line. You can change the frontmatter accordingly if needed.
This is how your file should look like:
Now you can simply start adding the content of your post/guide. You can see the changes being reflected at localhost:3000.
Once you are done with the post setup, review everything, and you are good-to-go to make your contribution!
For more details on contribution, read the CONTRIBUTION GUIDELINES. Happy writing and contributing!