Skip to content

Commit 99b1c5b

Browse files
committed
ci: auto-regenerate files
1 parent 24029ff commit 99b1c5b

File tree

7 files changed

+125
-16
lines changed

7 files changed

+125
-16
lines changed

.github/readme/partials/templated/introduction.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,11 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
5555
-%>
5656
<tr>
5757
<% } %> <th><% if (plugin) { %><a href="source/plugins/community/<%= plugin %>/README.md"><%= name -%></a><br><sup>by <%- authors.map(author => `<a href="https://github.com/${author}">@${author}</a>`).join(" ") %></sup>
58-
<%- readme.demo.replace(/<td.*?>([\s\S]+?)<\/td>/, `<details><summary>Render example</summary>$1</details>`).replace(/<img src=/g, `<img alt="" width="400" src=`)?.split("\n")?.map((x, i) => i ? ` ${x}` : x)?.join("\n") %>
59-
<% } %>
60-
</th>
58+
<%- readme.demo.replace(/<td.*?>([\s\S]+?)<\/td>/, ` <details><summary>Render example</summary>$1</details>`).replace(/<img src=/g, `<img alt="" width="400" src=`)?.split("\n")?.map((x, i) => i ? ` ${x}` : x)?.join("\n") %><% } %>
59+
</th>
6160
<% if (cell === "odd") {
6261
-%> </tr>
63-
<% }}}} %>
62+
<% }}}} %><%# -%>
6463
<% {
6564
let cell = 0
6665
const elements = Object.entries(templates).filter(([key, value]) => (value)&&(!["community"].includes(key)))

.github/workflows/examples.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ on:
2020
required: true
2121
SPLATOON_TOKEN:
2222
required: true
23+
SPLATOON_STATINK_TOKEN:
24+
required: true
2325
SPOTIFY_TOKENS:
2426
required: true
2527
STOCK_TOKEN:
@@ -1149,14 +1151,16 @@ jobs:
11491151
user: lowlighter
11501152
plugins_errors_fatal: yes
11511153
if: ${{ success() || failure() }}
1152-
- name: 🦑 Splatoon - Example
1154+
- name: 🦑 Splatoon - Splatnet data with stat.ink integration
11531155
uses: lowlighter/metrics@master
11541156
with:
11551157
filename: metrics.plugin.splatoon.svg
11561158
token: ${{ secrets.METRICS_TOKEN }}
11571159
base: ""
11581160
plugin_splatoon: yes
11591161
plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
1162+
plugin_splatoon_statink: yes
1163+
plugin_splatoon_statink_token: ${{ secrets.SPLATOON_STATINK_TOKEN }}
11601164
extras_css: |
11611165
h2 { display: none !important; }
11621166
output_action: none

README.md

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
1919
</tr>
2020
<tr>
2121
<th colspan="2" align="center">
22-
<h3><a href="/README.md#-plugins">🧩 Customizable with 43 plugins and 307 options!</a></h3>
22+
<h3><a href="/README.md#-plugins">🧩 Customizable with 43 plugins and 309 options!</a></h3>
2323
</th>
2424
</tr>
2525
<tr>
@@ -305,7 +305,58 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
305305
<a href="/source/plugins/community/README.md">🎲 See also community plugins</a>
306306
</th>
307307
</tr>
308-
308+
<tr>
309+
<th><a href="source/plugins/community/chess/README.md">♟️ Chess</a><br><sup>by <a href="https://github.com/lowlighter">@lowlighter</a></sup>
310+
<details><summary>Render example</summary>
311+
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.chess.svg" alt=""></img>
312+
<img width="900" height="1" alt="">
313+
</details>
314+
</th>
315+
<th><a href="source/plugins/community/fortune/README.md">🥠 Fortune</a><br><sup>by <a href="https://github.com/lowlighter">@lowlighter</a></sup>
316+
<details><summary>Render example</summary>
317+
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.fortune.svg" alt=""></img>
318+
<img width="900" height="1" alt="">
319+
</details>
320+
</th>
321+
</tr>
322+
<tr>
323+
<th><a href="source/plugins/community/nightscout/README.md">💉 Nightscout</a><br><sup>by <a href="https://github.com/legoandmars">@legoandmars</a></sup>
324+
<details><summary>Render example</summary>
325+
<img alt="" width="400" src="https://github.com/legoandmars/legoandmars/blob/master/metrics.plugin.nightscout.svg" alt=""></img>
326+
<img width="900" height="1" alt="">
327+
</details>
328+
</th>
329+
<th><a href="source/plugins/community/poopmap/README.md">💩 PoopMap plugin</a><br><sup>by <a href="https://github.com/matievisthekat">@matievisthekat</a></sup>
330+
<details><summary>Render example</summary>
331+
<img alt="" width="400" src="https://github.com/matievisthekat/matievisthekat/blob/master/metrics.plugin.poopmap.svg" alt=""></img>
332+
<img width="900" height="1" alt="">
333+
</details>
334+
</th>
335+
</tr>
336+
<tr>
337+
<th><a href="source/plugins/community/screenshot/README.md">📸 Website screenshot</a><br><sup>by <a href="https://github.com/lowlighter">@lowlighter</a></sup>
338+
<details><summary>Render example</summary>
339+
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.screenshot.svg" alt=""></img>
340+
<img width="900" height="1" alt="">
341+
</details>
342+
</th>
343+
<th><a href="source/plugins/community/splatoon/README.md">🦑 Splatoon</a><br><sup>by <a href="https://github.com/lowlighter">@lowlighter</a></sup>
344+
<details><summary>Render example</summary>
345+
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.splatoon.svg" alt=""></img>
346+
<img width="900" height="1" alt="">
347+
</details>
348+
</th>
349+
</tr>
350+
<tr>
351+
<th><a href="source/plugins/community/stock/README.md">💹 Stock prices</a><br><sup>by <a href="https://github.com/lowlighter">@lowlighter</a></sup>
352+
<details><summary>Render example</summary>
353+
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stock.svg" alt=""></img>
354+
<img width="900" height="1" alt="">
355+
</details>
356+
</th>
357+
<th>
358+
</th>
359+
</tr>
309360
<tr>
310361
<th colspan="2" align="center">
311362
<h3><a href="/README.md#%EF%B8%8F-templates">🖼️ And even more with 4+ templates!</a></h3>
@@ -361,6 +412,11 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
361412
<img src="/.github/readme/imgs/features_insights.gif" width="360">
362413
</td>
363414
</tr>
415+
<tr>
416+
<td align="center" colspan="2">
417+
Test latest features and patches on <code><a href="https://beta-metrics.lecoq.io">🧪 Metrics beta</a></code>!
418+
</td>
419+
</tr>
364420
<tr>
365421
<td align="center" colspan="2">
366422
<b>Power user?</b><br>

action.yml

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

settings.example.json

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

source/plugins/community/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<tr><th colspan="2"><h3>🎲 Community plugins</h3></th></tr>
44
<tr><td colspan="2" align="center">Additional plugins maintained by community for even more features!</td></tr>
55
<tr>
6-
<th><a href="/source/plugins/community/chess/README.md">♟️ Chess</a></th>
7-
<th><a href="/source/plugins/community/fortune/README.md">🥠 Fortune</a></th>
6+
<th><a href="/source/plugins/community/chess/README.md">♟️ Chess</a><br><sup>by <a href="https://github.com/lowlighter">@lowlighter</a></sup></th>
7+
<th><a href="/source/plugins/community/fortune/README.md">🥠 Fortune</a><br><sup>by <a href="https://github.com/lowlighter">@lowlighter</a></sup></th>
88
</tr>
99
<tr>
1010
<td align="center">
@@ -16,8 +16,8 @@
1616
<img width="900" height="1" alt="">
1717
</td>
1818
</tr> <tr>
19-
<th><a href="/source/plugins/community/nightscout/README.md">💉 Nightscout</a></th>
20-
<th><a href="/source/plugins/community/poopmap/README.md">💩 PoopMap plugin</a></th>
19+
<th><a href="/source/plugins/community/nightscout/README.md">💉 Nightscout</a><br><sup>by <a href="https://github.com/legoandmars">@legoandmars</a></sup></th>
20+
<th><a href="/source/plugins/community/poopmap/README.md">💩 PoopMap plugin</a><br><sup>by <a href="https://github.com/matievisthekat">@matievisthekat</a></sup></th>
2121
</tr>
2222
<tr>
2323
<td align="center">
@@ -29,8 +29,8 @@
2929
<img width="900" height="1" alt="">
3030
</td>
3131
</tr> <tr>
32-
<th><a href="/source/plugins/community/screenshot/README.md">📸 Website screenshot</a></th>
33-
<th><a href="/source/plugins/community/splatoon/README.md">🦑 Splatoon</a></th>
32+
<th><a href="/source/plugins/community/screenshot/README.md">📸 Website screenshot</a><br><sup>by <a href="https://github.com/lowlighter">@lowlighter</a></sup></th>
33+
<th><a href="/source/plugins/community/splatoon/README.md">🦑 Splatoon</a><br><sup>by <a href="https://github.com/lowlighter">@lowlighter</a></sup></th>
3434
</tr>
3535
<tr>
3636
<td align="center">
@@ -42,7 +42,7 @@
4242
<img width="900" height="1" alt="">
4343
</td>
4444
</tr> <tr>
45-
<th><a href="/source/plugins/community/stock/README.md">💹 Stock prices</a></th>
45+
<th><a href="/source/plugins/community/stock/README.md">💹 Stock prices</a><br><sup>by <a href="https://github.com/lowlighter">@lowlighter</a></sup></th>
4646
<th></th>
4747
</tr>
4848
<tr>

source/plugins/community/splatoon/README.md

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ All product and company names are trademarks™ or registered® trademarks of th
1818
<td><code>👤 Users</code> <code>👥 Organizations</code></td>
1919
</tr>
2020
<tr>
21-
<td><code>🗝️ plugin_splatoon_token</code></td>
21+
<td><code>🗝️ plugin_splatoon_token</code> <code>🗝️ plugin_splatoon_statink_token</code></td>
2222
</tr>
2323
<tr>
2424
<td colspan="2" align="center">
@@ -102,6 +102,34 @@ All product and company names are trademarks™ or registered® trademarks of th
102102
<br>
103103
<b>default:</b> 1<br></td>
104104
</tr>
105+
<tr>
106+
<td nowrap="nowrap"><h4><code>plugin_splatoon_statink</code></h4></td>
107+
<td rowspan="2"><p>stat.ink integration</p>
108+
<p>If set, fetched data will also be uploaded to stat.ink
109+
Requires <a href="/source/plugins/community/splatoon/README.md#plugin_splatoon_statink_token"><code>plugin_splatoon_statink_token</code></a> to be set</p>
110+
<img width="900" height="1" alt=""></td>
111+
</tr>
112+
<tr>
113+
<td nowrap="nowrap">✨ On <code>master</code>/<code>main</code><br>
114+
🌐 Web instances must configure <code>settings.json</code>:
115+
<ul>
116+
<li><i>metrics.api.statink</i></li>
117+
</ul>
118+
<b>type:</b> <code>boolean</code>
119+
<br>
120+
<b>default:</b> no<br></td>
121+
</tr>
122+
<tr>
123+
<td nowrap="nowrap"><h4><code>plugin_splatoon_statink_token</code></h4></td>
124+
<td rowspan="2"><p>stat.ink token</p>
125+
<img width="900" height="1" alt=""></td>
126+
</tr>
127+
<tr>
128+
<td nowrap="nowrap">🔐 Token<br>
129+
✨ On <code>master</code>/<code>main</code><br>
130+
<b>type:</b> <code>token</code>
131+
<br></td>
132+
</tr>
105133
</table>
106134
<!--/options-->
107135

@@ -139,14 +167,27 @@ Data are fetched using [spacemeowx2/s3si.ts](https://github.com/spacemeowx2/s3si
139167
140168
<!--examples-->
141169
```yaml
142-
name: Example
170+
name: Splatnet data
171+
uses: lowlighter/metrics@latest
172+
with:
173+
filename: metrics.plugin.splatoon.svg
174+
token: ${{ secrets.METRICS_TOKEN }}
175+
base: ""
176+
plugin_splatoon: yes
177+
plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
178+
179+
```
180+
```yaml
181+
name: Splatnet data with stat.ink integration
143182
uses: lowlighter/metrics@latest
144183
with:
145184
filename: metrics.plugin.splatoon.svg
146185
token: ${{ secrets.METRICS_TOKEN }}
147186
base: ""
148187
plugin_splatoon: yes
149188
plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
189+
plugin_splatoon_statink: yes
190+
plugin_splatoon_statink_token: ${{ secrets.SPLATOON_STATINK_TOKEN }}
150191
extras_css: |
151192
h2 { display: none !important; }
152193

0 commit comments

Comments
 (0)