Skip to content

Commit 3416cad

Browse files
committed
docs: update README.md and added CONTRIBUTING.md
1 parent 5c706ff commit 3416cad

File tree

2 files changed

+286
-1
lines changed

2 files changed

+286
-1
lines changed

CONTRIBUTING.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Contributing Guide to CodeRabbit Documentation
2+
3+
Welcome, and thank you for considering contributing to the **CodeRabbit Documentation**. This guide will help you get started and ensure a smooth contribution process.
4+
5+
## Before You Start ✋
6+
7+
The CodeRabbit documentation repository is an open-source project aimed at creating clear, detailed, and developer-friendly documentation for CodeRabbit. Whether you're improving existing docs or adding new content, your contributions are valued.
8+
9+
## How Can I Contribute?
10+
11+
There are various ways you can contribute:
12+
13+
- **Fixing Typos or Improving Grammar**: Even small fixes like spelling errors or improving sentence structure are appreciated.
14+
- **Clarifying Existing Documentation**: If something is unclear, feel free to rewrite for better understanding and give a clear explanation in PR.
15+
- **Suggesting Structural Improvements**: Propose changes that can improve the structure and navigation of the docs.
16+
17+
### Join the Community
18+
19+
- Connect with other contributors by joining our [CodeRabbit Discord Server](https://discord.gg/coderabbit). Feel free to introduce yourself in the `#intros` channel.
20+
21+
## How to Contribute? 👨‍💻
22+
23+
### Fork and Pull Request Flow ⏳
24+
25+
1. **Fork** the repository to your GitHub account by visiting [CodeRabbit Docs GitHub repo](https://github.com/coderabbitai/coderabbit-docs).
26+
2. **Clone** your fork locally:
27+
```shell
28+
git clone git@github.com:YOUR_USERNAME/coderabbit-docs.git
29+
30+
3. Create a new branch:
31+
```shell
32+
git checkout -b your_username/feature_description
33+
```
34+
35+
4. Implement the changes then commit and push the changes from your working branch:
36+
```shell
37+
git commit -m "docs: add explanation about [section]"
38+
git push origin your_username/feature_description
39+
```
40+
41+
## Commit Message Format 💬
42+
43+
We require all commits in this repository to adhere to the following commit message format.
44+
45+
```
46+
<type>: <description> (#<issue number>)
47+
48+
[optional body]
49+
```
50+
51+
This format is based on [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
52+
Please refer to the Conventional Commits specification for more details.
53+
54+
## Keeping your Fork Up-to-Date 🆕
55+
To keep your fork updated with the latest changes from the upstream repository:
56+
```shell
57+
git remote add upstream https://github.com/coderabbitai/coderabbit-docs.git
58+
git fetch upstream
59+
git rebase upstream/main
60+
```
61+
62+
## Contributing Best Practices 🚨
63+
64+
- Work on **one issue at a time** to avoid confusion.
65+
- If you need help, post in the `#support` channel on Discord.
66+
- Test your changes locally before submitting a PR.
67+
- While AI is cool, minimize its use for `direct team communication`. We value concise, genuine exchanges over scripted messages.

README.md

Lines changed: 219 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,219 @@
1-
# coderabbit-docs
1+
<p align="left">
2+
<a href="https://coderabbit.ai">
3+
<img src="static/img/coderabbit_nav_logo.svg" alt="CodeRabbit Logo" width="200"/>
4+
</a>
5+
</p>
6+
7+
# CodeRabbit Documentation
8+
9+
Welcome to the official docs for [**CodeRabbit**](https://coderabbit.ai), the code review dev tool that helps you ship quality code faster.
10+
11+
[![Website](https://img.shields.io/badge/website-coderabbit.ai-blue)](https://coderabbit.ai)
12+
[![Twitter Follow](https://img.shields.io/twitter/follow/coderabbitai?style=social)](https://twitter.com/coderabbitai)
13+
[![Discord](https://img.shields.io/discord/invite-code?color=7289DA&label=Discord&logo=discord&logoColor=green)](https://discord.com/invite/GsXnASn26c)
14+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/coderabbitai/coderabbit-docs/pulls)
15+
16+
## About CodeRabbit
17+
18+
> **CodeRabbit** is an AI-powered code reviewer that delivers context-aware feedback on pull requests within minutes, reducing the time and effort needed for manual code reviews. It provides a fresh perspective and catches issues that are often missed, enhancing the overall review quality.
19+
20+
- Automated code reviews
21+
- Intelligent suggestions for code improvements
22+
- Pull request summary
23+
- Interactive chat
24+
- Sequence diagrams
25+
- Integration with popular version control platforms
26+
- Support for multiple programming languages
27+
28+
## Getting Started with CodeRabbit
29+
30+
Follow these steps to and start using CodeRabbit:
31+
32+
1. **Sign Up**
33+
Visit [coderabbit.ai](https://coderabbit.ai/) and create your account.
34+
35+
2. **Connect Your Repository**
36+
Link your repository from one of the supported platforms:
37+
- GitHub
38+
- GitLab
39+
- Bitbucket
40+
- Azure DevOps
41+
42+
3. **Configure Settings**
43+
Customize your preferences in the CodeRabbit dashboard as per your project's needs.
44+
45+
4. **Initiate Code Reviews**
46+
Start creating pull requests on your platform, and let CodeRabbit assist with intelligent code reviews.
47+
48+
# Configuring CodeRabbit
49+
50+
CodeRabbit offers flexible configuration options. There are two primary methods for configuring CodeRabbit:
51+
52+
1. Using the CodeRabbit UI (Web Interface)
53+
2. Using a YAML Configuration File
54+
55+
## 1. Using the CodeRabbit UI
56+
57+
When you create an account and add repositories through the CodeRabbit web interface, you can configure settings for your organization and individual repositories.
58+
59+
### Steps:
60+
1. Sign up or log in at [coderabbit.ai](https://coderabbit.ai)
61+
2. Navigate to the "Organization Settings" section or "Repositories" section
62+
3. Click "Add Repositories" to connect your Git repositories
63+
4. Use the UI to configure settings for each repository or at the organization level
64+
65+
### Available UI Configuration Options:
66+
67+
#### General Settings:
68+
- Review Language: Choose the natural language for CodeRabbit to write reviews (e.g., English (US))
69+
- Tone Instructions: Set the tone for reviews and chat
70+
- Early Access: Enable or disable early-access features
71+
- Fine-tune Your Reviews: Allow CodeRabbit to learn from your usage and improve over time
72+
73+
#### Review Settings:
74+
- Customize review profile, summary options, and automated review preferences
75+
76+
#### Chat Settings:
77+
- Configure chat-related options
78+
79+
#### Knowledge Base:
80+
- Set up and manage your organization's knowledge base
81+
82+
#### API Keys:
83+
- Create and manage API keys for accessing the CodeRabbit API
84+
85+
> **Note:** Settings configured at the repository level will override organization-level settings.
86+
87+
## 2. Using a YAML Configuration File
88+
89+
For more advanced and version-controlled configuration, you can use a YAML file in your repository.
90+
91+
### Steps:
92+
1. Create a file named `.coderabbit.yaml` in the root of your repository
93+
2. Add your configuration options to the file
94+
3. Commit and push the file to your repository
95+
96+
### Sample `.coderabbit.yaml`:
97+
98+
```yaml
99+
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
100+
language: "en-US"
101+
early_access: false
102+
reviews:
103+
profile: "chill"
104+
request_changes_workflow: false
105+
high_level_summary: true
106+
poem: true
107+
review_status: true
108+
collapse_walkthrough: false
109+
auto_review:
110+
enabled: true
111+
drafts: false
112+
chat:
113+
auto_reply: true
114+
```
115+
116+
### Key Configuration Options:
117+
118+
- `language`: Set the language for CodeRabbit's responses
119+
- `early_access`: Enable/disable early access features
120+
- `reviews`: Configure review behavior and style
121+
- `chat`: Set chat-related options
122+
123+
For a complete list of configuration options, refer to the [CodeRabbit Configuration Schema](https://coderabbit.ai/integrations/schema.v2.json).
124+
125+
## Configuration Precedence
126+
127+
CodeRabbit uses the following order of precedence for configuration:
128+
129+
1. YAML file in the repository (highest precedence)
130+
2. UI configuration for individual repositories
131+
3. UI configuration for the organization (lowest precedence)
132+
133+
## Tips
134+
135+
- To convert existing UI configuration to YAML, use the `@coderabbitai configuration` command on any PR.
136+
- Ensure the `.coderabbit.yaml` file is present in the feature branch for CodeRabbit to review.
137+
- New pull requests or incremental commits will trigger CodeRabbit reviews once configured.
138+
139+
## Table of Contents
140+
141+
- [Getting Started](#getting-started)
142+
- [Project Structure](#project-structure)
143+
- [Local Development](#local-development)
144+
- [Building for Production](#building-for-production)
145+
- [Contributing](#contributing)
146+
147+
## Getting Started
148+
149+
1. Clone this repository:
150+
151+
```bash
152+
git clone https://github.com/coderabbit-ai/coderabbit-docs.git
153+
cd coderabbit-docs
154+
```
155+
156+
2. Install dependencies:
157+
158+
```bash
159+
npm install
160+
```
161+
162+
3. Start the development server:
163+
164+
```bash
165+
docusaurus start
166+
```
167+
168+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
169+
170+
## Project Structure
171+
172+
```
173+
coderabbit-docs/
174+
├── blog/
175+
├── docs/
176+
├── src/
177+
│ ├── components/
178+
│ ├── css/
179+
│ └── pages/
180+
├── static/
181+
├── docusaurus.config.ts
182+
├── sidebar.ts
183+
└── package.json
184+
```
185+
186+
## Local Development
187+
188+
```
189+
docusaurus start
190+
```
191+
192+
This command starts a local development server and opens up a browser window.
193+
194+
## Building for Production
195+
196+
```
197+
docusaurus build
198+
```
199+
200+
This command generates static content into the `build` directory.
201+
202+
203+
## Contributing
204+
205+
We welcome contributions to improve our documentation. Here are some guidelines:
206+
207+
1. Fork this repository
208+
2. Create a new branch for your changes
209+
3. Make all the changes
210+
4. Test your changes locally
211+
5. Submit a pull request with a clear description of what changes you did and why.
212+
213+
For more detailed contributing guidelines, please see our [CONTRIBUTING.md](./CONTRIBUTING.md) file.
214+
215+
---
216+
217+
For more information on using Docusaurus, please refer to the [official Docusaurus documentation](https://docusaurus.io/docs).
218+
219+
Built with ❤️ by the CodeRabbit team

0 commit comments

Comments
 (0)