Skip to content

Commit 7518290

Browse files
authored
Create CONTRIBUTING.md
1 parent b00ba02 commit 7518290

File tree

1 file changed

+144
-0
lines changed

1 file changed

+144
-0
lines changed

CONTRIBUTING.md

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
# Contributing to Angor Docs 📚
2+
3+
Welcome to the **Angor Docs** repository! Your contributions help make our documentation more comprehensive and user-friendly. Whether you're reporting issues, adding new guides, or refining existing content, this guide will help you get started.
4+
5+
---
6+
7+
## 🛠️ Getting Started
8+
9+
### Prerequisites
10+
11+
Ensure you have the following tools installed before contributing:
12+
13+
- **Node.js**: Required for managing dependencies.
14+
- **pnpm**: Used for project scripts and dependency management.
15+
16+
Run the following commands to install the dependencies and set up your environment:
17+
18+
```bash
19+
pnpm install
20+
```
21+
22+
### Cloning the Repository
23+
24+
To start contributing, fork the repository and clone it to your local machine:
25+
26+
```bash
27+
git clone https://github.com/block-core/angor-docs.git
28+
cd angor-docs
29+
```
30+
31+
---
32+
33+
## 💡 How to Contribute
34+
35+
### 1. Reporting Issues
36+
37+
If you encounter a bug, typo, or broken link, open an issue in the [issue tracker](https://github.com/block-core/angor-docs/issues). Include the following details:
38+
39+
- A clear and descriptive title.
40+
- Steps to reproduce the issue.
41+
- Screenshots or logs, if applicable.
42+
43+
### 2. Suggesting Improvements
44+
45+
Have ideas to improve the documentation? Open an issue describing:
46+
47+
- The enhancement you propose.
48+
- The benefits it provides to users.
49+
- Any potential challenges or limitations.
50+
51+
### 3. Adding or Updating Content
52+
53+
#### Adding a New Guide
54+
55+
To create a new guide:
56+
57+
1. Run the following command, replacing `"Guide File Name"` with the name of your guide:
58+
59+
```bash
60+
pnpm run new-guide "Guide File Name"
61+
```
62+
63+
2. This will create a new file in the `src/content/docs/guides` directory with placeholder content.
64+
3. Edit the file to include your content.
65+
4. Preview the changes locally by running:
66+
67+
```bash
68+
pnpm run dev
69+
```
70+
71+
5. Open a pull request with your changes.
72+
73+
#### Updating Existing Content
74+
75+
Navigate to the file you want to update in the `src/content/docs` directory. Make your changes, preview them locally, and submit a pull request.
76+
77+
---
78+
79+
## 🔍 Style Guidelines
80+
81+
### Commit Messages
82+
83+
- Use clear and descriptive commit messages.
84+
- Follow this format:
85+
- **feat**: For new features.
86+
- **fix**: For bug fixes.
87+
- **docs**: For documentation updates.
88+
89+
Example:
90+
91+
```bash
92+
git commit -m "docs: add new guide for setup instructions"
93+
```
94+
95+
### Code Formatting
96+
97+
- Use **Prettier** for consistent formatting.
98+
- Run the following command before committing your changes:
99+
100+
```bash
101+
pnpm prettier --write .
102+
```
103+
104+
---
105+
106+
## 👀 Previewing Changes
107+
108+
To preview the documentation locally:
109+
110+
1. Start the development server:
111+
112+
```bash
113+
pnpm run dev
114+
```
115+
116+
2. Open your browser and navigate to `http://localhost:4321`.
117+
118+
---
119+
120+
## 📦 Dependencies and Scripts
121+
122+
### Key Scripts
123+
124+
- **`pnpm run dev`**: Start the local development server.
125+
- **`pnpm run build`**: Build the documentation for production.
126+
- **`pnpm run lint`**: Lint the codebase.
127+
128+
---
129+
130+
## 🤝 Community and Support
131+
132+
Join our community on [Discord](https://discord.gg/eQaVFqfesn) for discussions, questions, and support.
133+
134+
If you need assistance or want to suggest new features, feel free to contact the maintainers or open an issue.
135+
136+
---
137+
138+
## 📄 License
139+
140+
This repository is licensed under the MIT License. See the [LICENSE](https://github.com/block-core/angor-docs/blob/main/LICENSE) file for details.
141+
142+
---
143+
144+
Thank you for contributing to Angor Docs! 🎉 Your efforts help make this project better for everyone.

0 commit comments

Comments
 (0)