-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added page for "How to contribute section" (#37)
* added webpage with bulma css * added another heading with github buttons * Added changes to code suggested by maintainer * Removed the commented out code
- Loading branch information
1 parent
698cbab
commit 8c8b0bd
Showing
4 changed files
with
290 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,229 @@ | ||
{% extends 'base.html' %} | ||
{% block content %} | ||
|
||
<div class="main-main"> | ||
<div | ||
class="header-1 is-flex is-align-items-center is-justify-content-space-between" | ||
> | ||
<h1 class="title is-2" style="margin-bottom: 0px"> | ||
Contribute to developersIndia resources | ||
</h1> | ||
<div class="">Removed the commented out code | ||
<a | ||
class="github-button" | ||
href="https://github.com/developersIndia/resources/fork" | ||
data-icon="octicon-repo-forked" | ||
data-size="large" | ||
data-show-count="true" | ||
aria-label="Fork developersIndia/resources on GitHub" | ||
>Fork</a | ||
> | ||
<a | ||
class="github-button" | ||
href="https://github.com/developersIndia/resources" | ||
data-icon="octicon-star" | ||
data-size="large" | ||
data-show-count="true" | ||
aria-label="Star developersIndia/resources on GitHub" | ||
>Star</a | ||
> | ||
</div> | ||
</div> | ||
<hr /> | ||
<p class="subtitle is-5"> | ||
First off, thanks for taking the time to contribute! 🎉 Make sure you | ||
follow below guidelines before contributing. | ||
</p> | ||
<div class="main-body"> | ||
<div class="content"> | ||
<p class="title is-3" style="margin-bottom: 0px"> | ||
What qualifies as a "resource"? | ||
</p> | ||
<hr /> | ||
<div class="subtitle is-5"> | ||
Anything which can be used/referenced to learn something. We only | ||
accept following types of resources: | ||
</div> | ||
<ol> | ||
<li>Book</li> | ||
<li>Video</li> | ||
<li>Article</li> | ||
<li>Cheatsheet</li> | ||
<li>Online Course (Free/Paid)</li> | ||
<li>Github Repository</li> | ||
<li>Audio (any podcasts)</li> | ||
<li> | ||
Website (Anything dedicated to learning one thing. For ex. | ||
javascript.info qualifies as a "Website" resource for | ||
<button class="imp">JavaScript</button> whereas | ||
<button class="imp">colorlib.com</button> doesn't qualify as a | ||
resource for "CSS". | ||
</li> | ||
</ol> | ||
</div> | ||
<div class="content"> | ||
<h2>How to add a new resource?</h2> | ||
<hr /> | ||
<ol> | ||
<li> | ||
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. <br /> | ||
<blockquote> | ||
If no appropriate directory exists for your resource, add it | ||
inside <button class="imp">miscellaneous/index.json</button>. | ||
</blockquote> | ||
</li> | ||
<li> | ||
<p> | ||
Go to the bottom of the json file and add a object like this. | ||
</p> | ||
<pre> | ||
<code class="language-html" data-lang="html"><span>{</span> | ||
<span> "title":"",</span> | ||
<span> "url":"",</span> | ||
<span> "type":"",</span> | ||
<span> "level":"",</span> | ||
<span> "reviews": []</span> | ||
<span>}</span></code> | ||
</pre> | ||
<div class="table"> | ||
<p> | ||
Reference the below table for description of each JSON key. | ||
</p> | ||
<table class="table is-bordered is-striped is-fullwidth"> | ||
<tr style="background-color: #e4376d"> | ||
<th class="left" style="color: white">Key</th> | ||
<th style="color: white">Description</th> | ||
</tr> | ||
<tr> | ||
<td class="left"><button class="imp">title</button></td> | ||
<td> | ||
The title of resource. If you are contributing a book | ||
resource you can choose to mention the author | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="left"><button class="imp">url</button></td> | ||
<td> | ||
The permalink to the resource. No links that redirect | ||
anywhere. | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="left"><button class="imp">type</button></td> | ||
<td> | ||
<span>What type of resource is this:</span><br /> | ||
<div class="skibidi"> | ||
<ol> | ||
<li><button class="imp">book</button></li> | ||
<li><button class="imp">video</button></li> | ||
<li><button class="imp">article</button></li> | ||
<li><button class="imp">cheatsheet</button></li> | ||
<li><button class="imp">course</button></li> | ||
<li><button class="imp">github</button></li> | ||
<li><button class="imp">audio</button></li> | ||
<li><button class="imp">website</button></li> | ||
</ol> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="left"><button class="imp">level</button></td> | ||
<td> | ||
<span | ||
>What is the best audience for consuming this | ||
resource:</span | ||
><br /> | ||
<ol> | ||
<li><button class="imp">beginner</button></li> | ||
<li><button class="imp">intermediate</button></li> | ||
<li><button class="imp">advanced</button></li> | ||
<li><button class="imp">everyone</button></li> | ||
</ol> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="left"><button class="imp">reviews</button></td> | ||
<td> | ||
<span>Add you review of this resource.</span> | ||
<ul> | ||
<li>What did you learn from it?</li> | ||
<li>What was special or interesting about it?</li> | ||
<li>Why do you recommend this resource?</li> | ||
</ul> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
<p>This is how a correct object looks like:</p> | ||
<pre><code class="language-html" data-lang="html"><span>{</span> | ||
<span> "title":"learnopengl.com",</span> | ||
<span> "url":"https://learnopengl.com/",</span> | ||
<span> "type":"book",</span> | ||
<span> "level":"everyone",</span> | ||
<span> "reviews":[</span> | ||
<span> "You should only follow concepts here, not api"</span> | ||
<span> ]</span> | ||
<span>}</span></code></pre> | ||
<blockquote> | ||
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. | ||
</blockquote> | ||
</li> | ||
<li> | ||
<p> | ||
Make you changes to <button class="imp">feature</button> branch | ||
& send a PR (See if there is already an open PR with the same | ||
contribution). | ||
</p> | ||
</li> | ||
<li> | ||
<p> | ||
Feel free to ask doubts, just open an | ||
<a | ||
href="https://github.com/developersIndia/resources/issues/new/choose" | ||
>issue</a | ||
>. | ||
</p> | ||
</li> | ||
</ol> | ||
</div> | ||
</div> | ||
<div | ||
class="header-2 is-flex is-align-items-center is-justify-content-space-between" | ||
> | ||
<h1 class="title is-2" style="margin-bottom: 0px"> | ||
Contribute to saadhan website | ||
</h1> | ||
<div class=""> | ||
<a | ||
class="github-button" | ||
href="https://github.com/developersIndia/saadhan/fork" | ||
data-icon="octicon-repo-forked" | ||
data-size="large" | ||
data-show-count="true" | ||
aria-label="Fork developersIndia/saadhan on GitHub" | ||
>Fork</a | ||
> | ||
<a | ||
class="github-button" | ||
href="https://github.com/developersIndia/saadhan" | ||
data-icon="octicon-star" | ||
data-size="large" | ||
data-show-count="true" | ||
aria-label="Star developersIndia/saadhan on GitHub" | ||
>Star</a | ||
> | ||
</div> | ||
</div> | ||
<hr /> | ||
<p> | ||
The website is built using Flask as backend and | ||
<a href="https://htmx.org/">HTMX</a> with | ||
<a href="https://bulma.io">Bulma</a> as frontend. | ||
</p> | ||
</div> | ||
|
||
{% endblock content %} |