Skip to content

Contributing

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.

If you have questions or need help, feel free to contact us:
๐Ÿ“ง Email: [email protected]
๐Ÿ’ฌ Discord: Join Here

  • Go to the Carch GitHub page.
  • Click the Fork button in the top-right corner to create your own copy of the 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.

  • Add the original Carch repository as an upstream remote to keep your fork up to date:

    Terminal window
    cd carch
    Terminal window
    git remote add upstream https://github.com/original-author/carch.git
  • 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
  • Implement the necessary changes to the code or documentation.
  • Ensure that your changes are clear, tested, and follow the projectโ€™s coding standards.
  • 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]"
  • Push your branch to your forked repository:

    Terminal window
    git push origin feature/your-branch-name
  • 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!

You can contribute by:

  • ๐Ÿช› Fixing typos or mistakes in existing guides
  • ๐ŸŒ Translating the documentation into other languages (highly encouraged!)

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:

  1. ๐Ÿ“ Create a new folder for your language inside the docs/ directory. Use ISO 639-1 codes (e.g. fr, es, hi, etc.).
  2. ๐Ÿ› ๏ธ Translate the Markdown content inside the new folder.
  3. ๐Ÿงฉ Modify docs/.vitepress/config.ts:
    • Add your language in the locales section.
    • Provide a label, lang, and link for navigation.

To preview your changes:

Terminal window
bun install
bun run docs:dev

Use clear commit messages like:

Terminal window
git commit -m "fix(docs): correct typo in installation guide"
git commit -m "feat(docs): add Hindi translation"

More on Conventional Commits.

  • Follow the existing coding style of the project.
  • Write clear, concise, and well-documented code.
  • Test your changes locally to ensure they work as expected.
  • If your changes introduce new features, add necessary tests where applicable.
  • If your changes involve new functionality, update the relevant documentation.
  • Ensure the README or Wiki reflects your updates.
  • Keep your fork updated to avoid conflicts:

    Terminal window
    git fetch upstream
    Terminal window
    git merge upstream/main
    • Replace main with the default branch of the repository if itโ€™s different.

Thank you for contributing to Carch! Your effort helps make this project better for everyone.