-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
146 lines (143 loc) · 6.52 KB
/
index.html
File metadata and controls
146 lines (143 loc) · 6.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="./style.css">
<title>GitHubStats</title>
</head>
<body>
<h1 id="stats-for-your-readme-md">GitHubStats<br> Stats for your <span class="readme">README.md</span></h1>
<h2 id="reference">Reference</h2>
<h3 id="github-profile-statistics">GitHub profile statistics</h3>
<p>Copy the piece of code from below and paste it into your markdown.<br />
<strong>Change</strong> the value of <code>username=</code> to your GitHub's username.
<br></p>
<br>
<pre><code class="lang-md"> [<span class="hljs-string">](<span class="hljs-link">https://github.com/evirunurm/github-stats</span>)
</code></pre>
<br>
<p>
<code>/api/stats.js</code> endpoint accepts the following parameters.<br>
A query parameter must follow the <code>parameter=value</code> structure.<br>
Several parameters must go separated by <code>&</code></p>
<table>
<thead>
<tr>
<th style="text-align:left">Parameter</th>
<th style="text-align:left">Type</th>
<th style="text-align:left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left"><code>username</code></td>
<td style="text-align:left"><code>string</code></td>
<td style="text-align:left"><strong>Required</strong>. Your GitHub username</td>
</tr>
<tr>
<td style="text-align:left"><code>color</code></td>
<td style="text-align:left"><code>"white"</code></td>
<td style="text-align:left">Set to "white" if you want the background to be white</td>
</tr>
<tr>
<td style="text-align:left"><code>peng</code></td>
<td style="text-align:left"><code>boolean</code></td>
<td style="text-align:left">If you want the GitHub icon<br />instead of the cute little <br />penguin, set this to false.</td>
</tr>
</tbody>
</table>
<p><br></p>
<h3 id="most-used-languages">Most used languages</h3>
<p>Copy the piece of code from below and paste it into your markdown.<br />
<strong>Change</strong> the value of <code>username=</code> to your GitHub's username.
<br>
<br></p>
<pre><code class="lang-md"> [<span class="hljs-string">](<span class="hljs-link">https://github.com/evirunurm/github-stats</span>)
</code></pre>
<p><br>
<code>/api/languages.js</code> endpoint accepts the following parameters.<br>
A query parameter must follow the <code>parameter=value</code> structure.<br>
Several parameters must go separated by <code>&</code></p>
<table>
<thead>
<tr>
<th style="text-align:left">Parameter</th>
<th style="text-align:left">Type</th>
<th style="text-align:left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left"><code>username</code></td>
<td style="text-align:left"><code>string</code></td>
<td style="text-align:left"><strong>Required</strong>. Your GitHub username</td>
</tr>
<tr>
<td style="text-align:left"><code>color</code></td>
<td style="text-align:left"><code>"white"</code></td>
<td style="text-align:left">Set to "white" if you want the background to be white</td>
</tr>
<tr>
<td style="text-align:left"><code>pie</code></td>
<td style="text-align:left"><code>boolean</code></td>
<td style="text-align:left">If you don't want the pie chart but want percentage bars instead, set this to "false".</td>
</tr>
</tbody>
</table>
<p><br></p>
<h2 id="examples">Examples</h2>
<h3 id="github-profile-statistics">GitHub profile statistics</h3>
<table>
<thead>
<tr>
<th style="text-align:left">Parameter</th>
<th style="text-align:left">Output</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">default</td>
<td style="text-align:left"><br><img height="150" src="https://i.imgur.com/4FkYASY.png"><br><br></td>
</tr>
<tr>
<td style="text-align:left"><code>peng=false</code></td>
<td style="text-align:left"><br><img height="150" src="https://i.imgur.com/1GbRlFE.png"><br><br></td>
</tr>
<tr>
<td style="text-align:left"><code>color=white</code></td>
<td style="text-align:left"><br><img height="150" src="https://i.imgur.com/pqulod5.png"><br><br></td>
</tr>
</tbody>
</table>
<p><br></p>
<h3 id="most-used-languages">Most used languages</h3>
<table>
<thead>
<tr>
<th style="text-align:left">Parameter</th>
<th style="text-align:left">Output</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">default</td>
<td style="text-align:left"><br><img height="150" src="https://i.imgur.com/hQBPCiO.png"><br><br></td>
</tr>
<tr>
<td style="text-align:left"><code>pie=false</code></td>
<td style="text-align:left"><br><img height="150" src="https://i.imgur.com/pgQWL8G.png"><br><br></td>
</tr>
<tr>
<td style="text-align:left"><code>color=white</code></td>
<td style="text-align:left"><br><img height="150" src="https://i.imgur.com/xJgjdxN.png"><br><br></td>
</tr>
<tr>
<td style="text-align:left"><code>color=white&pie=false</code></td>
<td style="text-align:left"><br><img height="150" src="https://i.imgur.com/AxROUMS.png"><br><br></td>
</tr>
</tbody>
</table>
<p><br></p>
</body>
</html>