-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: Add user-friendly contribution page instead of linking to repo …
…file (#2) * devops: Add basic build check CI action * fix: Missing imports * docs: Add "how to contribute" page * docs: cosmetic changes to contributing --------- Co-authored-by: Mathieu Bélanger <[email protected]>
- Loading branch information
1 parent
1de91e4
commit 3344b9f
Showing
13 changed files
with
138 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build Check | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "**" | ||
workflow_call: | ||
|
||
# ensure that the workflow is only triggered once per PR, subsequent pushes to the PR will cancel | ||
# and restart the workflow. See https://docs.github.com/en/actions/using-jobs/using-concurrency | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-check: | ||
name: stable / build-check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build check | ||
run: pnpm build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
title: How to Contribute? | ||
description: This section contains the different areas where your help is most needed. | ||
--- | ||
|
||
import { Callout } from 'nextra/components' | ||
import { Hammer, Lightbulb, Book, MessageCircleQuestion } from 'lucide-react' | ||
|
||
|
||
export const section_icon = { display: 'inline', size: '1rem', marginBottom: '0.25rem' } | ||
|
||
<div className="section-title">How to Contribute?</div> | ||
|
||
Rig is an open-source project and we welcome contributions from the community. | ||
Whether you're a developer, designer, or writer, there are many ways to contribute to the project. | ||
The section below outlines the different areas where your help is most needed. | ||
|
||
<Callout type="info" emoji="👋"> | ||
**Prior to starting the work on a new feature or change**, make sure to search for existing issues and pull requests on the [GitHub repository](https://github.com/0xPlaygrounds/rig/issues) to discuss your ideas or changes. Open an issue if there is none. | ||
</Callout> | ||
|
||
## <><Hammer style={section_icon}/> Development </> | ||
### Model Provider Integrations | ||
Rig aims to support a wide range of language models from different providers. | ||
If your favorite model provide is not supported, consider adding support for it in Rig and making a pull request for it! | ||
|
||
Important information about model provider integrations: | ||
- Each **model provider integration** is contained in its own module under [`rig-core/src/providers`](https://github.com/0xPlaygrounds/rig/tree/main/rig-core/src/providers). | ||
- If the provider has an OpenAI compatible API, there is no need to write a new provider module since Rig already supports OpenAI. | ||
Instead, you can simply add documentation indicating how you can use the existing [`openai`](https://github.com/0xPlaygrounds/rig/blob/main/rig-core/src/providers/openai.rs) integration to use the new provider. | ||
- Make sure to follow the repository's [contribution guidelines](https://github.com/0xPlaygrounds/rig/blob/main/CONTRIBUTING.md). | ||
|
||
<Callout type="warning" emoji="⚠️"> | ||
Model provider integrations should not require new dependencies that are not already included in the project. | ||
</Callout> | ||
|
||
### Vector Store Integrations | ||
Rig aims to support a wide range of vector stores for storing and retrieving embeddings. | ||
If your favorite vector store is not supported, consider adding support for it in Rig and making a pull request for it! | ||
|
||
Important information about vector store integrations: | ||
- Each vector store integration is contained in its own crate located in the root of the repository. | ||
The naming convention for vector store crates is `rig-<store_name>` (e.g. [`rig-mongodb`](https://github.com/0xPlaygrounds/rig/tree/main/rig-mongodb)). | ||
This is because vector store integrations often require many additional dependencies that are not needed otherwise. | ||
- Consider adding an integration test for the integration! You can base yourself off of the existing vector store integration tests like this one for [Qdrant](https://github.com/0xPlaygrounds/rig/blob/main/rig-qdrant/tests/integration_tests.rs). | ||
- Make sure to follow the repository's [contribution guidelines](https://github.com/0xPlaygrounds/rig/blob/main/CONTRIBUTING.md). | ||
|
||
### Bug Fixes | ||
If you find a bug in Rig, please open an issue for it on the [repository](https://github.com/0xPlaygrounds/rig/issues) and consider making a pull request to fix it. | ||
|
||
Make sure to follow the repository's [contribution guidelines](https://github.com/0xPlaygrounds/rig/blob/main/CONTRIBUTING.md). | ||
|
||
## <><Book style={section_icon}/> Documentation </> | ||
### Guides and Tutorials | ||
If you have experience with Rig and would like to share your knowledge with others, consider writing a guide or tutorial for the project! | ||
|
||
If you would like your tutorial to be featured on this website, please open a pull request on the [docs repository](https://github.com/0xPlaygrounds/rig-docs). | ||
|
||
### Other Documentation Improvements | ||
If you find a typo or mistake in the documentation, or any section that could use improvement, please open an issue to report it or a pull request to fix it on the [docs repository](https://github.com/0xPlaygrounds/rig-docs). | ||
|
||
## <><Lightbulb style={section_icon}/> Ideas and Feedback </> | ||
If you have an idea for a new Rig feature or feedback on existing features, please let us know by opening an issue on the [GitHub repository](https://github.com/0xPlaygrounds/rig/issues)! | ||
|
||
Make sure to checkout the existing issues first to make sure your idea is not already planned or in progress 😉. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.