Skip to content

Commit 22dfcd0

Browse files
committed
💡 add contributing guidelines
1 parent 30960f1 commit 22dfcd0

File tree

3 files changed

+61
-10
lines changed

3 files changed

+61
-10
lines changed

CONTRIBUTING.md

+58-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,61 @@
1-
# Contributing to Developers India Wiki
2-
3-
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
1+
# Contributing to Developers India Resources
42

3+
First off, thanks for taking the time to contribute! 🎉
54
Make sure you follow below guidelines before contributing.
65

7-
1. Raise an issue before sending an PR.
8-
2. Make you changes to `feature` branch.
9-
3. See if there is already an open PR for the same issue.
10-
4. Feel free while asking doubts, just open an [issue](https://github.com/developersIndia/wiki/issues/new).
6+
## What qualifies as a "resource"?
7+
8+
- Anything which can be used/referenced to learn something. We only accept following types of resources:
9+
1. Book
10+
2. Video
11+
3. Article
12+
4. Cheatsheet
13+
5. Online Course (Free/Paid)
14+
6. Github Repository
15+
7. Audio (any podcasts)
16+
8. Website (Anything dedicated to learning one thing. For ex. `javascript.info` qualifies as a "Website" resource for "JavaScript" whereas `colorlib.com` doesn't qualify as a resource for "CSS".
17+
18+
19+
## How to add a new resource?
20+
21+
1. Figure out the correct directory for your resource, E.g. If you are adding a "Python" resource, you will have to edit the `index.json` file in `languages/python` directory.
22+
> If no appropriate directory exists for your resource, add it inside `miscellaneous/index.json`.
23+
24+
2. Go to the bottom of the json file and add a object like this.
25+
```json
26+
{
27+
"title":"",
28+
"url":"",
29+
"type":"",
30+
"level":"",
31+
"reviews": []
32+
}
33+
```
34+
35+
Reference the below table for description of each JSON key.
36+
37+
| Key | Description |
38+
|:---------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------|
39+
| `title` | The title of resource. If you are contributing a book resource you can choose to mention the author |
40+
| `url` | The permalink to the resource. No links that redirect anywhere. |
41+
| `type` | What type of resource is this:<br>1. `book`<br>2. `video`<br>3. `article`<br>4. `cheatsheet`<br>5. `course`<br>6. `github`<br>7. `audio`<br>8. `website`<br> |
42+
| `level` | What is the best audience for consuming this resource<br>1. `beginner`<br>2. `intermediate`<br>3. `advanced`<br>4. `everyone` |
43+
| `reviews` | Add you review of this resource.<br>- What did you learn from it?<br>- What was special or interesting about it?<br>- Why do you recommend this resource? |
44+
45+
This is how a correct object looks like:
46+
47+
```json
48+
{
49+
"title":"learnopengl.com",
50+
"url":"https://learnopengl.com/",
51+
"type":"book",
52+
"level":"everyone",
53+
"reviews":[
54+
"You should only follow concepts here, not api"
55+
]
56+
}
57+
```
58+
> We highly encourage contributors to add their review to provide a community aspect for the resource. If you have nothing to say about the resource you can omit adding the "reviews" key.
59+
60+
3. Make you changes to `feature` branch & send a PR (See if there is already an open PR with the same contribution).
61+
4. Feel free to ask doubts, just open an [issue](https://github.com/developersIndia/resources/issues/new).

languages/python/index.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"type":"article",
6161
"level":"beginner",
6262
"reviews":[
63-
"Good for absolute begineers"
63+
"Good for absolute beginners"
6464
]
6565
},
6666
{
@@ -112,4 +112,4 @@
112112
"level":"beginner"
113113
}
114114
]
115-
}
115+
}

resource.schema

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"id": "https://example.com/product.schema.json",
3+
"$id": "https://github.com/developersIndia/resources/blob/master/resource.schema",
44
"title": "DevelopersIndia Resources Repository Schema",
55
"description": "This schema describes the structure of a resource availble on DevelopersIndia",
66
"type": "object",

0 commit comments

Comments
 (0)