Skip to content

Commit

Permalink
docs: cosmetic changes to contributing
Browse files Browse the repository at this point in the history
  • Loading branch information
mateobelanger committed Jan 16, 2025
1 parent 91b752c commit 6305085
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 19 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"sharp": "^0.33.5"
},
"devDependencies": {
"@types/mdx": "^2.0.13",
"@types/node": "18.11.10",
"tailwindcss": "^3.4.15",
"typescript": "^4.9.5"
Expand Down
6 changes: 3 additions & 3 deletions pages/_meta.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Home, BookText, PocketKnife, CookingPot } from 'lucide-react'
import { Home, BookText, PocketKnife, CookingPot, SquareArrowOutUpRight, ExternalLink } from 'lucide-react'

const iconStyle = {
width: '1rem',
Expand Down Expand Up @@ -26,13 +26,13 @@ const meta = {
"type": "page"
},
"apiReference": {
"title": "API Reference ↗",
"title": <>API Reference <ExternalLink style={iconStyle} /></>,
"type": "page",
"href": "https://docs.rs/rig-core",
"newWindow": true
},
"contact": {
"title": "Contact ↗",
"title": <>Contact <ExternalLink style={iconStyle} /></>,
"type": "page",
"href": "https://playgrounds.network",
"newWindow": true
Expand Down
3 changes: 0 additions & 3 deletions pages/about.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion pages/docs/1_why_rig.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ❓Why Rig?
title: Why Rig?
description: This section contains the compelling reasons to use Rig for your next LLM project.
---

Expand Down
29 changes: 23 additions & 6 deletions pages/how-to-contribute.mdx → pages/docs/7_how-to-contribute.mdx
Original file line number Diff line number Diff line change
@@ -1,22 +1,39 @@
---
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.

## 🛠️ Development
<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).
- 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.
- ❗Model provider integrations should not require new dependencies that are not already included in the project.
If you need to add a new dependency, please open an issue for the integration to discuss it first.
- 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!
Expand All @@ -33,7 +50,7 @@ If you find a bug in Rig, please open an issue for it on the [repository](https:

Make sure to follow the repository's [contribution guidelines](https://github.com/0xPlaygrounds/rig/blob/main/CONTRIBUTING.md).

## 📝 Documentation
## <><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!

Expand All @@ -42,7 +59,7 @@ If you would like your tutorial to be featured on this website, please open a pu
### 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).

## 🧠 Ideas and Feedback
## <><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 😉.
5 changes: 3 additions & 2 deletions pages/docs/_meta.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Blocks, Lightbulb, CircleHelp, DraftingCompass, Landmark, Puzzle, Rocket, Unplug, MessageCircleQuestion } from "lucide-react";
import { Blocks, Lightbulb, CircleHelp, DraftingCompass, Landmark, Puzzle, Rocket, Unplug, MessageCircleQuestion, HeartHandshake } from "lucide-react";

const iconStyle = {
width: '1rem',
Expand All @@ -13,7 +13,8 @@ const meta = {
"3_architecture": {title: <><Landmark style={iconStyle} /> &nbsp; Architecture</>},
"4_concepts": {title: <><Puzzle style={iconStyle} /> &nbsp; Concepts</>},
"5_integrations": {title: <><Unplug style={iconStyle} /> &nbsp; Integrations</>},
"6_extensions": {title: <><Blocks style={iconStyle} /> &nbsp; Extensions</>}
"6_extensions": {title: <><Blocks style={iconStyle} /> &nbsp; Extensions</>},
"7_how-to-contribute": {title: <><HeartHandshake style={iconStyle} /> &nbsp; Contribute to Rig</>}
}

export default meta;
12 changes: 11 additions & 1 deletion pages/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Overview
description: This section contains the high-level documentation for Rig.
---

import { Blocks, CircleHelp, Landmark, Plug } from 'lucide-react'
import { Blocks, CircleHelp, Landmark, Plug, HeartHandshake } from 'lucide-react'
import { Cards } from 'nextra/components'

# Docs
Expand Down Expand Up @@ -56,5 +56,15 @@ This section contains the high-level documentation for Rig.
</div>
}
/>
<Cards.Card
title="How to Contribute?"
icon={<HeartHandshake />}
href="/docs/7_how-to-contribute"
children={ <div style={{ fontSize: '0.9em', color: '#666', whiteSpace: 'normal', wordWrap: 'break-word' }}>
How to contribute to Rig.
</div>
}
/>
</Cards>


4 changes: 3 additions & 1 deletion pages/examples/0_model_providers/anthropic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ title: Anthropic (Claude)
description: This section describes the Anthropic API (Claude) integration.
---

# Anthropic API (Claude) Integration
# Anthropic API (Claude) Integration

Coming soon™️...
6 changes: 5 additions & 1 deletion pages/examples/0_model_providers/openai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ title: OpenAI
description: This section describes the OpenAI API integration.
---

# OpenAI API Integration
# OpenAI API Integration

Coming soon™️...


1 change: 1 addition & 0 deletions pages/examples/_meta.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default {
"index": "Get Started",
"0_model_providers": "Model Providers",
"1_rag": "RAG",
"2_basics": "Basic",
"3_advanced": "Advanced"
Expand Down
2 changes: 1 addition & 1 deletion pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Note: Rig does not support WASM (yet), but we're working on it!
/>
<Cards.Card
title="🤝 How to Contribute?"
href="/how-to-contribute"
href="/docs/7_how-to-contribute"
children={ <div style={{ fontSize: '0.9em', color: '#666', whiteSpace: 'normal', wordWrap: 'break-word' }}>
Learn how to contribute to the Rig project.
</div>
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6305085

Please sign in to comment.