Contributing
๐ Table of Contents
Section titled โ๐ Table of ContentsโContributing to Carch
Section titled โContributing to CarchโWeโre excited that youโre interested in contributing to Carch! Contributions of all kinds are welcome, whether youโre fixing bugs, adding new features, or improving documentation. Follow this guide to get started.
๐ Understand the Codebase
Section titled โ๐ Understand the CodebaseโIf you have questions or need help, feel free to contact us:
๐ง Email: [email protected]
๐ฌ Discord: Join Here
Steps to Contribute
Section titled โSteps to Contributeโ1. ๐ฝ๏ธ Fork the Repository
Section titled โ1. ๐ฝ๏ธ Fork the Repositoryโ- Go to the Carch GitHub page.
- Click the Fork button in the top-right corner to create your own copy of the repository.
2. ๐ฟ Clone the Forked Repository
Section titled โ2. ๐ฟ Clone the Forked Repositoryโ-
Use the following command to clone the repository to your local system:
Terminal window git clone https://github.com/your-username/carch.git -
Replace
your-username
with your GitHub username.
3. ๐ฑ Set the Original Repository as Upstream
Section titled โ3. ๐ฑ Set the Original Repository as Upstreamโ-
Add the original Carch repository as an upstream remote to keep your fork up to date:
Terminal window cd carchTerminal window git remote add upstream https://github.com/original-author/carch.git
4. ๐ Create a New Feature Branch
Section titled โ4. ๐ Create a New Feature Branchโ-
Before making changes, create a new branch with a descriptive name:
Terminal window git checkout -b feature/your-branch-name -
Examples of branch names:
feature/add-new-script
bugfix/fix-installation-issue
5. ๐ง Make Your Changes
Section titled โ5. ๐ง Make Your Changesโ- Implement the necessary changes to the code or documentation.
- Ensure that your changes are clear, tested, and follow the projectโs coding standards.
6. ๐ Stage and Commit Your Changes
Section titled โ6. ๐ Stage and Commit Your Changesโ-
Add the modified files to the staging area:
Terminal window git add . -
Commit your changes with a clear message:
Terminal window git commit -m "Add: [brief description of your changes]"
7. ๐ Push the Changes to Your Fork
Section titled โ7. ๐ Push the Changes to Your Forkโ-
Push your branch to your forked repository:
Terminal window git push origin feature/your-branch-name
8. ๐ฅ Submit a Pull Request (PR)
Section titled โ8. ๐ฅ Submit a Pull Request (PR)โ- Go to the original Carch repository on GitHub.
- Click on New Pull Request.
- Select your branch from the dropdown and describe your changes in detail.
- Submit the PR for review!
๐ Contributing to Carch Docs
Section titled โ๐ Contributing to Carch DocsโCarch Docs is โฅ Live Here
Section titled โCarch Docs is โฅ Live Hereโ๐ Ways to Contribute
Section titled โ๐ Ways to ContributeโYou can contribute by:
- ๐ช Fixing typos or mistakes in existing guides
- ๐ Translating the documentation into other languages (highly encouraged!)
๐ Translating Documentation
Section titled โ๐ Translating DocumentationโWant to help make Carch accessible to users worldwide? Help us translate the docs!
Section titled โWant to help make Carch accessible to users worldwide? Help us translate the docs!โIf youโre contributing a new language, follow these steps:
- ๐ Create a new folder for your language inside the
docs/
directory. Use ISO 639-1 codes (e.g.fr
,es
,hi
, etc.). - ๐ ๏ธ Translate the Markdown content inside the new folder.
- ๐งฉ Modify
docs/.vitepress/config.ts
:- Add your language in the
locales
section. - Provide a
label
,lang
, andlink
for navigation.
- Add your language in the
๐งช Testing Your Changes Locally
Section titled โ๐งช Testing Your Changes LocallyโTo preview your changes:
bun installbun run docs:dev
๐งพ Commit Style
Section titled โ๐งพ Commit StyleโUse clear commit messages like:
git commit -m "fix(docs): correct typo in installation guide"git commit -m "feat(docs): add Hindi translation"
More on Conventional Commits.
๐ Thanks for helping improve the documentation!
Section titled โ๐ Thanks for helping improve the documentation!โGuidelines
Section titled โGuidelinesโCode Quality
Section titled โCode Qualityโ- Follow the existing coding style of the project.
- Write clear, concise, and well-documented code.
Testing
Section titled โTestingโ- Test your changes locally to ensure they work as expected.
- If your changes introduce new features, add necessary tests where applicable.
Documentation
Section titled โDocumentationโ- If your changes involve new functionality, update the relevant documentation.
- Ensure the README or Wiki reflects your updates.
Syncing Your Fork
Section titled โSyncing Your Forkโ-
Keep your fork updated to avoid conflicts:
Terminal window git fetch upstreamTerminal window git merge upstream/main- Replace
main
with the default branch of the repository if itโs different.
- Replace
Thank you for contributing to Carch! Your effort helps make this project better for everyone.