We are thrilled that you are considering contributing to our IT learning website! Your contributions help us improve and expand our content, making it a valuable resource for everyone. This guide will walk you through the process of contributing content to our site.
We welcome contributions in the form of articles, tutorials, and more. Follow the steps below to get started:
Click the Fork button in the top right corner to create your own copy of the repository.
Clone the repository to your local machine using the following command:
git clone https://github.com/your-username/your-repo-name.git
Create a new branch for your content. It’s good practice to name your branch based on the content you are adding, e.g., add-python-course
.
cd your-repo-name
git checkout -b add-python-course
Add your content in the appropriate directory. Our content is organized using the Nuxt Content module. Here’s a basic structure:
content/
└── course-title/
└── index.md
└── lesson-one-title.md
└── lesson-two-title.md
Create a new directory or new Markdown files anywhere in the content/
directory.
For a comprehensive guide on markdown and content authoring, please refer to our extensive markdown/content authoring guide.
To preview your changes locally, follow these steps:
-
Install dependencies if you haven't already:
npm install
-
Start the development server:
npm run dev
-
Open your browser and go to
http://localhost:3000
to see your changes.
Once you are satisfied with your content, commit your changes:
git add .
git commit -m "Add article on [your topic]"
Push your changes to your forked repository:
git push origin add-python-course
Navigate to your forked repository on GitHub and click the New pull request button. Compare your branch with the original repository's main
branch. Submit the pull request with a descriptive message about your content.
Once you submit your pull request, our CI/CD pipeline managed by Netlify will automatically kick in. Netlify bot will:
- Check the proposed changes.
- If everything is fine, deploy the changes to a preview environment.
- Post a link to the preview deployment in the pull request.
You can use this preview link to review your changes. If you are not satisfied, you can make additional commits to your branch. Netlify will keep checking and redeploying the changes until you are happy with the results.
After you are satisfied with your changes in the preview deployment, our team will review your pull request. We may suggest some changes or improvements. Once everything is approved, we will merge your changes into the main branch and they will be live on the website.
- Ensure your content is original and well-written.
- Provide clear and concise information.
- Respect all contributors and community members.
Thank you for your contribution! Your effort helps create a valuable resource for the community.
Happy contributing!