From 99b1c5bd86a2c005e416c109d61859033e829591 Mon Sep 17 00:00:00 2001
From: lowlighter <22963968+lowlighter@users.noreply.github.com>
Date: Mon, 21 Nov 2022 19:08:23 -0500
Subject: [PATCH] ci: auto-regenerate files
---
.../readme/partials/templated/introduction.md | 7 +--
.github/workflows/examples.yml | 6 +-
README.md | 60 ++++++++++++++++++-
action.yml | 8 +++
settings.example.json | 1 +
source/plugins/community/README.md | 14 ++---
source/plugins/community/splatoon/README.md | 45 +++++++++++++-
7 files changed, 125 insertions(+), 16 deletions(-)
diff --git a/.github/readme/partials/templated/introduction.md b/.github/readme/partials/templated/introduction.md
index 8334bb11..57a0e56f 100644
--- a/.github/readme/partials/templated/introduction.md
+++ b/.github/readme/partials/templated/introduction.md
@@ -55,12 +55,11 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
-%>
<% } %> <% if (plugin) { %><%= name -%> by <%- authors.map(author => `@${author}`).join(" ") %>
-<%- readme.demo.replace(/ | ([\s\S]+?)<\/td>/, `Render example
$1 `).replace(/
i ? ` ${x}` : x)?.join("\n") %>
-<% } %>
-
+<%- readme.demo.replace(/([\s\S]+?)<\/td>/, ` Render example
$1 `).replace(/
i ? ` ${x}` : x)?.join("\n") %><% } %>
+
<% if (cell === "odd") {
-%>
-<% }}}} %>
+<% }}}} %><%# -%>
<% {
let cell = 0
const elements = Object.entries(templates).filter(([key, value]) => (value)&&(!["community"].includes(key)))
diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml
index 064843a6..f061b4e0 100644
--- a/.github/workflows/examples.yml
+++ b/.github/workflows/examples.yml
@@ -20,6 +20,8 @@ on:
required: true
SPLATOON_TOKEN:
required: true
+ SPLATOON_STATINK_TOKEN:
+ required: true
SPOTIFY_TOKENS:
required: true
STOCK_TOKEN:
@@ -1149,7 +1151,7 @@ jobs:
user: lowlighter
plugins_errors_fatal: yes
if: ${{ success() || failure() }}
- - name: 🦑 Splatoon - Example
+ - name: 🦑 Splatoon - Splatnet data with stat.ink integration
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.splatoon.svg
@@ -1157,6 +1159,8 @@ jobs:
base: ""
plugin_splatoon: yes
plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
+ plugin_splatoon_statink: yes
+ plugin_splatoon_statink_token: ${{ secrets.SPLATOON_STATINK_TOKEN }}
extras_css: |
h2 { display: none !important; }
output_action: none
diff --git a/README.md b/README.md
index 1c2e7461..eb424a7c 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
|
-
+
|
@@ -305,7 +305,58 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
🎲 See also community plugins
-
+
+ ♟️ Chess by @lowlighter
+ Render example
+
+
+
+ |
+ 🥠 Fortune by @lowlighter
+ Render example
+
+
+
+ |
+
+
+ 💉 Nightscout by @legoandmars
+ Render example
+
+
+
+ |
+ 💩 PoopMap plugin by @matievisthekat
+ Render example
+
+
+
+ |
+
+
+ 📸 Website screenshot by @lowlighter
+ Render example
+
+
+
+ |
+ 🦑 Splatoon by @lowlighter
+ Render example
+
+
+
+ |
+
+
+ 💹 Stock prices by @lowlighter
+ Render example
+
+
+
+ |
+
+ |
+
@@ -361,6 +412,11 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
|
+
+
+ Test latest features and patches on 🧪 Metrics beta!
+ |
+
Power user?
diff --git a/action.yml b/action.yml
index 1ca69945..42d6ef44 100644
--- a/action.yml
+++ b/action.yml
@@ -1345,6 +1345,14 @@ inputs:
description: Display limit (Salmon run)
default:
+ plugin_splatoon_statink:
+ description: stat.ink integration
+ default:
+
+ plugin_splatoon_statink_token:
+ description: stat.ink token
+ default:
+
# ====================================================================================
# 💹 Stock prices
diff --git a/settings.example.json b/settings.example.json
index 678fa1c0..c76ec09f 100644
--- a/settings.example.json
+++ b/settings.example.json
@@ -196,6 +196,7 @@
},
"splatoon":{
"token": "Splatnet token",
+ "statink.token": null, "//": "stat.ink token",
"enabled": false, "//": "Enable splatoon plugin"
},
"stock":{
diff --git a/source/plugins/community/README.md b/source/plugins/community/README.md
index 4a5f780f..50a48e1c 100644
--- a/source/plugins/community/README.md
+++ b/source/plugins/community/README.md
@@ -3,8 +3,8 @@
🎲 Community plugins |
| Additional plugins maintained by community for even more features! |
- | ♟️ Chess |
- 🥠 Fortune |
+ ♟️ Chess by @lowlighter |
+ 🥠 Fortune by @lowlighter |
@@ -16,8 +16,8 @@
|
- | 💉 Nightscout |
- 💩 PoopMap plugin |
+ 💉 Nightscout by @legoandmars |
+ 💩 PoopMap plugin by @matievisthekat |
@@ -29,8 +29,8 @@
|
- | 📸 Website screenshot |
- 🦑 Splatoon |
+ 📸 Website screenshot by @lowlighter |
+ 🦑 Splatoon by @lowlighter |
@@ -42,7 +42,7 @@
|
- | 💹 Stock prices |
+ 💹 Stock prices by @lowlighter |
|
diff --git a/source/plugins/community/splatoon/README.md b/source/plugins/community/splatoon/README.md
index 71d9d0e9..2b80935c 100644
--- a/source/plugins/community/splatoon/README.md
+++ b/source/plugins/community/splatoon/README.md
@@ -18,7 +18,7 @@ All product and company names are trademarks™ or registered® trademarks of th
👤 Users 👥 Organizations |
- 🗝️ plugin_splatoon_token |
+ 🗝️ plugin_splatoon_token 🗝️ plugin_splatoon_statink_token |
@@ -102,6 +102,34 @@ All product and company names are trademarks™ or registered® trademarks of th
default: 1
|
+
+ plugin_splatoon_statink
|
+ stat.ink integration
+If set, fetched data will also be uploaded to stat.ink
+Requires plugin_splatoon_statink_token to be set
+![]() |
+
+
+ ✨ On master/main
+🌐 Web instances must configure settings.json:
+
+type: boolean
+
+default: no
|
+
+
+ plugin_splatoon_statink_token
|
+ stat.ink token
+![]() |
+
+
+ 🔐 Token
+✨ On master/main
+type: token
+
|
+
@@ -139,7 +167,7 @@ Data are fetched using [spacemeowx2/s3si.ts](https://github.com/spacemeowx2/s3si
```yaml
-name: Example
+name: Splatnet data
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.splatoon.svg
@@ -147,6 +175,19 @@ with:
base: ""
plugin_splatoon: yes
plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
+
+```
+```yaml
+name: Splatnet data with stat.ink integration
+uses: lowlighter/metrics@latest
+with:
+ filename: metrics.plugin.splatoon.svg
+ token: ${{ secrets.METRICS_TOKEN }}
+ base: ""
+ plugin_splatoon: yes
+ plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
+ plugin_splatoon_statink: yes
+ plugin_splatoon_statink_token: ${{ secrets.SPLATOON_STATINK_TOKEN }}
extras_css: |
h2 { display: none !important; }
|