Contributing to Our Documentation Project¶
Thank you for your interest in contributing to the STEMAIDE Manuals documentation project! Your contributions play a vital role in helping us maintain accurate, high-quality, and user-friendly resources that empower learners and educators alike. Whether you're fixing a typo, enhancing existing content, or adding new sections, your efforts are deeply valued and contribute to the growth of our community.
This guide provides a step-by-step walkthrough for contributing to the project. If this is your first time contributing to a GitHub project, no worries—we’ve got you covered with simple and beginner-friendly instructions!
Table of Contents¶
- Fork the Repository
- Clone the Repository
- Create a New Branch
- Make Your Changes
- Update the Changelog
- Push Your Changes
- Create a Pull Request
- Wait for Review
1. Fork the Repository¶
Forking creates your own copy of the project that you can work on.
- Go to the main repository page.
- Click on the Fork button (located at the top-right corner of the page).
2. Clone the Repository¶
Once you’ve forked the repository, you’ll need to clone it to your local machine.
- Open your terminal (or Git Bash).
- Run the following command (replace
your-username
with your GitHub username): - Navigate to the directory you just cloned: cd docs.stemaide.com
3. Create a New Branch¶
Creating a new branch helps keep your changes organized and separate from the main project.
- Create a new branch with a descriptive name Replace 'update-readme' with a name that describes your changes (e.g., fix-typo, add-section)
4. Make Your Changes¶
Now it’s time to edit the documentation files! We use Markdown for all documentation files.
- Open the project in your text editor (e.g., VSCode, Sublime Text).
- Locate the file you want to edit (e.g., README.md or a file in the docs/ folder).
- Make your changes or add new content in Markdown.
Markdown Example Here’s a quick Markdown example to help you:
# Heading 1 Use a single hash(#) symbol for this effect. ## Heading 2 Use a double hash(##) for th1is effect. ### Heading 3 Use a triple hash(###) for this effect.
- Bullet point: Use hyphen(-) symbol.
Bold Text: Wrap your text between two asteriks(**).
Find the markdown cheatsheet here.
- Save your changes when you are done.
5. Update the Changelog¶
Every change you make should be recorded in the CHANGELOG.md file.
- Open the CHANGELOG.md file.
- Add an entry under the appropriate version heading. If no version heading exists, create one:
6. Push Your Changes¶
Now that you’ve made and saved your changes, you’ll need to push them to your forked repository.
- Stage your changes:
- Commit your changes with a meaningful message:
- Push your changes to your fork:
7. Create a Pull Request¶
A pull request (PR) is how you ask to merge your changes into the main repository.
- Go to your forked repository on GitHub.
- Click on the Pull Requests tab.
- Click on the New Pull Request button.
- Select your branch (e.g., update-readme) and compare it with the main repository’s branch (usually main or master).
- Add a title and description for your PR:
- Title: Added Contribution Guidelines
- Description: Describe the changes you made, e.g., “Added detailed steps for contributing and updated the changelog.”
- Click Create Pull Request.
8. Wait for Review¶
The project maintainers will review your pull request. Here’s what might happen:
- Approved: Your changes will be merged into the main project!
-
Requested Changes: Maintainers might ask for modifications. Follow their feedback and update your PR.
-
To update your PR after feedback:
- Make the required changes in your local branch.
- Commit and push the changes:
Additional Tips¶
- Ask for Help: If you’re stuck, feel free to ask for help by commenting on your pull request or opening an issue.
- Test Your Changes: Ensure that your changes look correct by previewing them in your text editor or GitHub.
Congratulations! 🎉 You’ve successfully contributed to the project. Thank you for making this documentation better for everyone!