Skip to content

Commit 0336d19

Browse files
committed
docs(plugins/licenses, plugins/stars): update to new doc format [skip ci]
1 parent 9f5b5a6 commit 0336d19

File tree

8 files changed

+108
-73
lines changed

8 files changed

+108
-73
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,30 +47,30 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
4747
<th><a href="source/plugins/stars/README.md">🌟 Recently starred repositories</a></th>
4848
</tr>
4949
<tr>
50-
<td align="center">
51-
<details open><summary>With icons</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.topics.icons.svg" alt=""></img></details>
52-
<details open><summary>With labels</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.topics.svg" alt=""></img></details>
53-
<img width="900" height="1" alt="">
54-
</td>
5550
<td align="center">
56-
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stars.svg">
51+
<details open><summary>With icons</summary>
52+
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.topics.icons.svg">
53+
</details>
54+
<details open><summary>With labels</summary>
55+
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.topics.svg">
56+
</details>
5757
<img width="900" height="1" alt="">
5858
</td>
59+
<td align="center">
60+
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stars.svg" alt=""></img>
61+
<img width="900" height="1" alt="">
62+
</td>
5963
</tr>
6064
<tr>
6165
<th><a href="source/plugins/licenses/README.md">📜 Repository licenses</a></th>
6266
<th><a href="source/plugins/habits/README.md">💡 Coding habits</a></th>
6367
</tr>
6468
<tr>
65-
<td align="center">
66-
<details open><summary>Permissions, limitations and conditions</summary>
67-
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.svg">
68-
</details>
69-
<details open><summary>Licenses overview</summary>
70-
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.ratio.svg">
71-
</details>
72-
<img width="900" height="1" alt="">
73-
</td>
69+
<td align="center">
70+
<details open><summary>Permissions, limitations and conditions</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.svg" alt=""></img></details>
71+
<details open><summary>Licenses overview</summary><img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.ratio.svg" alt=""></img></details>
72+
<img width="900" height="1" alt="">
73+
</td>
7474
<td align="center">
7575
<details open><summary>Recent activity charts</summary>
7676
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.habits.charts.svg">

settings.example.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/plugins/isocalendar/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
<tr>
4444
<td nowrap="nowrap"><code>plugin_isocalendar_duration</code></td>
4545
<td rowspan="2"><p>Time window</p>
46+
<ul>
47+
<li><code>half-year</code>: 180 days</li>
48+
<li><code>full-year</code>: 1 year</li>
49+
</ul>
4650
<img width="900" height="1" alt=""></td>
4751
</tr>
4852
<tr>

source/plugins/isocalendar/metadata.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ inputs:
1717
default: no
1818

1919
plugin_isocalendar_duration:
20-
description: Time window
20+
description: |
21+
Time window
22+
- `half-year`: 180 days
23+
- `full-year`: 1 year
2124
type: string
2225
default: half-year
2326
values:

source/plugins/licenses/README.md

Lines changed: 44 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,50 @@
1-
### 📜 Repository licenses
1+
<!--header-->
2+
<table>
3+
<tr><th colspan="2"><h3>📜 Repository licenses</h3></th></tr>
4+
<tr><td colspan="2" align="center"><p>This plugin display repository license informations like permissions, limitations and conditions along with additional stats about dependencies.</p>
5+
</td></tr>
6+
<tr>
7+
<th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>
8+
<td><a href="/source/templates/repository"><code>📘 Repository template</code></a></td>
9+
</tr>
10+
<tr>
11+
<td><code>📓 Repositories</code></td>
12+
</tr>
13+
<tr>
14+
<td><code>🔑 (scopeless)</code> <code>read:org (optional)</code> <code>read:user (optional)</code> <code>repo (optional)</code></td>
15+
</tr>
16+
<tr>
17+
<td colspan="2" align="center">
18+
<details open><summary>Permissions, limitations and conditions</summary><img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.svg" alt=""></img></details>
19+
<details open><summary>Licenses overview</summary><img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.ratio.svg" alt=""></img></details>
20+
<img width="900" height="1" alt="">
21+
</td>
22+
</tr>
23+
</table>
24+
<!--/header-->
225

3-
> ⚠️ This is **NOT** legal advice, use at your own risk
26+
## 🔎 Licenses analysis
427

5-
> 🔣 On web instances, this plugin is an extra feature and must be enabled globally in `settings.json`
6-
> 💣 Note that this plugin allows raw commands injection and is **NOT** advised to be enabled on them
7-
> This could result in compromised server!
28+
Use to `plugin_licenses_setup` command to setup project dependencies.
829

9-
The *licenses* plugin lets you display license informations like permissions, limitations and conditions along with additional metrics about dependencies.
30+
*Example: setup a NodeJS project using `npm ci`*
31+
```yml
32+
- name: Licenses and permissions
33+
with:
34+
repo: metrics
35+
plugin_licenses: yes
36+
plugin_licenses_setup: npm ci
37+
```
1038
11-
<table>
12-
<td align="center">
13-
<details open><summary>Permissions, limitations and conditions</summary>
14-
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.svg">
15-
</details>
16-
<details open><summary>Licenses overview</summary>
17-
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.ratio.svg">
18-
</details>
19-
<img width="900" height="1" alt="">
20-
</td>
21-
</table>
39+
Dependencies will be analyzed by [GitHub licensed](https://github.com/github/licensed) and compared against GitHub known licenses.
2240
23-
Project must be setup with dependencies using `plugin_licenses_setup` option (for example, `npm ci` for a NodeJS project).
41+
> ⚠️ This is **NOT** legal advice, use at your own risk
42+
43+
> 💣 This plugin **SHOULD NOT** be enabled on web instances, since it allows raw command injection.
44+
> This could result in compromised server!
2445
25-
Dependencies will be analyzed with [github/licensed](https://github.com/github/licensed) and compared against GitHub known licenses.
2646
27-
#### ➡️ Available options
47+
## ➡️ Available options
2848
2949
<!--options-->
3050
<table>
@@ -33,7 +53,7 @@ Dependencies will be analyzed with [github/licensed](https://github.com/github/l
3353
</tr>
3454
<tr>
3555
<td nowrap="nowrap"><code>plugin_licenses</code></td>
36-
<td rowspan="2"><p>Display licenses informations</p>
56+
<td rowspan="2"><p>Enable licenses plugin</p>
3757
<img width="900" height="1" alt=""></td>
3858
</tr>
3959
<tr>
@@ -44,7 +64,7 @@ Dependencies will be analyzed with [github/licensed](https://github.com/github/l
4464
</tr>
4565
<tr>
4666
<td nowrap="nowrap"><code>plugin_licenses_setup</code></td>
47-
<td rowspan="2"><p>Command to setup target repository</p>
67+
<td rowspan="2"><p>Setup command</p>
4868
<img width="900" height="1" alt=""></td>
4969
</tr>
5070
<tr>
@@ -63,7 +83,7 @@ Dependencies will be analyzed with [github/licensed](https://github.com/github/l
6383
</tr>
6484
<tr>
6585
<td nowrap="nowrap"><code>plugin_licenses_legal</code></td>
66-
<td rowspan="2"><p>Display legal informations about used licenses</p>
86+
<td rowspan="2"><p>Display permissions, limitations and conditions about used licenses</p>
6787
<img width="900" height="1" alt=""></td>
6888
</tr>
6989
<tr>
@@ -74,9 +94,7 @@ Dependencies will be analyzed with [github/licensed](https://github.com/github/l
7494
</table>
7595
<!--/options-->
7696
77-
*[→ Full specification](metadata.yml)*
78-
79-
#### ℹ️ Examples workflows
97+
## ℹ️ Examples workflows
8098
8199
<!--examples-->
82100
```yaml
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
11
name: "📜 Repository licenses"
22
category: github
3+
description: This plugin display repository license informations like permissions, limitations and conditions along with additional stats about dependencies.
4+
examples:
5+
+permissions, limitations and conditions: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.svg
6+
+licenses overview: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.licenses.ratio.svg
37
index: 4
48
supports:
59
- repository
610
scopes:
711
- public_access
812
inputs:
913

10-
# Enable or disable plugin
1114
plugin_licenses:
12-
description: Display licenses informations
15+
description: Enable licenses plugin
1316
type: boolean
1417
default: no
1518
extras: yes
1619

17-
# Command to use to setup target repository
18-
# It is required to install all dependencies that will be analyzed with github/licensed
1920
plugin_licenses_setup:
20-
description: Command to setup target repository
21+
description: Setup command
2122
type: string
2223
default: ""
2324
example: npm ci
2425

25-
# Display used licenses from both repository license and dependencies licenses ratio
2626
plugin_licenses_ratio:
2727
description: Display used licenses ratio
2828
type: boolean
2929
default: no
3030

31-
# Display permissions, limitations and conditions from both repository license and dependencies licenses
32-
# Note that this is NOT legal advice, use at your own risk
3331
plugin_licenses_legal:
34-
description: Display legal informations about used licenses
32+
description: Display permissions, limitations and conditions about used licenses
3533
type: boolean
3634
default: yes

source/plugins/stars/README.md

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
1-
### 🌟 Recently starred repositories
2-
3-
The *stars* plugin displays your recently starred repositories.
4-
1+
<!--header-->
52
<table>
6-
<td align="center">
7-
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stars.svg">
8-
<img width="900" height="1" alt="">
9-
</td>
3+
<tr><th colspan="2"><h3>🌟 Recently starred repositories</h3></th></tr>
4+
<tr><td colspan="2" align="center"><p>This plugin displays your recently starred repositories.</p>
5+
</td></tr>
6+
<tr>
7+
<th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>
8+
<td><a href="/source/templates/classic"><code>📗 Classic template</code></a></td>
9+
</tr>
10+
<tr>
11+
<td><code>👤 Users</code></td>
12+
</tr>
13+
<tr>
14+
<td><code>🔑 (scopeless)</code> <code>read:org (optional)</code> <code>read:user (optional)</code> <code>repo (optional)</code></td>
15+
</tr>
16+
<tr>
17+
<td colspan="2" align="center">
18+
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stars.svg" alt=""></img>
19+
<img width="900" height="1" alt="">
20+
</td>
21+
</tr>
1022
</table>
23+
<!--/header-->
1124

12-
#### ➡️ Available options
25+
## ➡️ Available options
1326

1427
<!--options-->
1528
<table>
@@ -18,7 +31,7 @@ The *stars* plugin displays your recently starred repositories.
1831
</tr>
1932
<tr>
2033
<td nowrap="nowrap"><code>plugin_stars</code></td>
21-
<td rowspan="2"><p>Display recently starred repositories</p>
34+
<td rowspan="2"><p>Enable stars plugin</p>
2235
<img width="900" height="1" alt=""></td>
2336
</tr>
2437
<tr>
@@ -28,7 +41,7 @@ The *stars* plugin displays your recently starred repositories.
2841
</tr>
2942
<tr>
3043
<td nowrap="nowrap"><code>plugin_stars_limit</code></td>
31-
<td rowspan="2"><p>Maximum number of stars to display</p>
44+
<td rowspan="2"><p>Display limit</p>
3245
<img width="900" height="1" alt=""></td>
3346
</tr>
3447
<tr>
@@ -42,9 +55,7 @@ The *stars* plugin displays your recently starred repositories.
4255
</table>
4356
<!--/options-->
4457

45-
*[→ Full specification](metadata.yml)*
46-
47-
#### ℹ️ Examples workflows
58+
## ℹ️ Examples workflows
4859

4960
<!--examples-->
5061
```yaml
@@ -58,4 +69,4 @@ with:
5869
plugin_stars_limit: 3
5970

6071
```
61-
<!--/examples-->
72+
<!--/examples-->

source/plugins/stars/metadata.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
name: "🌟 Recently starred repositories"
22
category: github
3+
description: This plugin displays your recently starred repositories.
4+
examples:
5+
default: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stars.svg
36
index: 3
47
supports:
58
- user
69
scopes:
710
- public_access
811
inputs:
912

10-
# Enable or disable plugin
1113
plugin_stars:
12-
description: Display recently starred repositories
14+
description: Enable stars plugin
1315
type: boolean
1416
default: no
1517

16-
# Number of stars to display
1718
plugin_stars_limit:
18-
description: Maximum number of stars to display
19+
description: Display limit
1920
type: number
2021
default: 4
2122
min: 1

0 commit comments

Comments
 (0)