diff --git a/README.md b/README.md index 87765463..a2314068 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile -

🧩 Customizable with 38 plugins and 236 options!

+

🧩 Customizable with 38 plugins and 237 options!

diff --git a/settings.example.json b/settings.example.json index 9cc3f6d8..f01e0642 100644 --- a/settings.example.json +++ b/settings.example.json @@ -27,6 +27,7 @@ }, "extras": { "default": false, "//": "Default extras state (advised to let 'false' unless in debug mode)", + "presets": false, "//": "Allow use of 'config.presets' option", "css": false, "//": "Allow use of 'extras.css' option", "js": false, "//": "Allow use of 'extras.js' option", "features": false, "//": "Enable extra features (advised to let 'false' on web instances)" diff --git a/source/plugins/anilist/README.md b/source/plugins/anilist/README.md index fd023607..60713232 100644 --- a/source/plugins/anilist/README.md +++ b/source/plugins/anilist/README.md @@ -113,7 +113,8 @@ - type: string + ⏯️ Cannot be preset
+type: string
default: → User login
diff --git a/source/plugins/base/README.md b/source/plugins/base/README.md index e06a37c7..56a783a5 100644 --- a/source/plugins/base/README.md +++ b/source/plugins/base/README.md @@ -142,6 +142,7 @@ Broad affiliation will result in less representative metrics.

⏭️ Global option
+⏯️ Cannot be preset
type: array (comma-seperated)
diff --git a/source/plugins/core/README.md b/source/plugins/core/README.md index 4a164251..def5558b 100644 --- a/source/plugins/core/README.md +++ b/source/plugins/core/README.md @@ -398,7 +398,8 @@ On forks, this feature is disable to take into account any changes you made on i - type: string + ⏯️ Cannot be preset
+type: string
@@ -408,7 +409,8 @@ On forks, this feature is disable to take into account any changes you made on i - type: string + ⏯️ Cannot be preset
+type: string
@@ -454,7 +456,8 @@ On forks, this feature is disable to take into account any changes you made on i - type: string + ⏯️ Cannot be preset
+type: string
@@ -748,6 +751,18 @@ It can result in cropped or oversized outputs.


default: auto
allowed values: + + + config_presets +

Configuration presets

+ + + + ⏯️ Cannot be preset
+✨ On master/main
+type: array +(comma-separated) +
retries @@ -823,7 +838,8 @@ This option has no effects on forks (images will always be rebuilt from Dockerfi - 🔧 For development
+ ⏯️ Cannot be preset
+🔧 For development
type: boolean
default: yes
@@ -835,7 +851,8 @@ This option has no effects on forks (images will always be rebuilt from Dockerfi - 🔧 For development
+ ⏯️ Cannot be preset
+🔧 For development
type: boolean
default: no
@@ -847,7 +864,8 @@ This option has no effects on forks (images will always be rebuilt from Dockerfi - 🔧 For development
+ ⏯️ Cannot be preset
+🔧 For development
type: boolean
default: no
@@ -858,7 +876,8 @@ This option has no effects on forks (images will always be rebuilt from Dockerfi - 🔧 For development
+ ⏯️ Cannot be preset
+🔧 For development
type: boolean
default: no
@@ -875,7 +894,8 @@ This option has no effects on forks (images will always be rebuilt from Dockerfi - 🔧 For development
+ ⏯️ Cannot be preset
+🔧 For development
type: array (space-separated)
@@ -888,7 +908,8 @@ This option has no effects on forks (images will always be rebuilt from Dockerfi - 🔧 For development
+ ⏯️ Cannot be preset
+🔧 For development
type: boolean
default: no
@@ -900,7 +921,8 @@ This option has no effects on forks (images will always be rebuilt from Dockerfi - 🔧 For development
+ ⏯️ Cannot be preset
+🔧 For development
type: array (space-separated)
@@ -912,7 +934,8 @@ This option has no effects on forks (images will always be rebuilt from Dockerfi - 🔧 For development
+ ⏯️ Cannot be preset
+🔧 For development
type: boolean
default: no
diff --git a/source/plugins/music/README.md b/source/plugins/music/README.md index 1f439ca6..66bd975b 100644 --- a/source/plugins/music/README.md +++ b/source/plugins/music/README.md @@ -98,7 +98,8 @@ - type: string + ⏯️ Cannot be preset
+type: string
@@ -161,7 +162,8 @@ - type: string + ⏯️ Cannot be preset
+type: string
default: → User login
diff --git a/source/plugins/pagespeed/README.md b/source/plugins/pagespeed/README.md index 0402e850..fd716baa 100644 --- a/source/plugins/pagespeed/README.md +++ b/source/plugins/pagespeed/README.md @@ -48,7 +48,8 @@ It uses - type: string + ⏯️ Cannot be preset
+type: string
default: → User attached website
diff --git a/source/plugins/people/README.md b/source/plugins/people/README.md index a135e68e..475c53df 100644 --- a/source/plugins/people/README.md +++ b/source/plugins/people/README.md @@ -111,7 +111,8 @@ Repositories support the following values: - type: array + ⏯️ Cannot be preset
+type: array (comma-separated)
@@ -123,7 +124,8 @@ The option plugin_people_types must contain the sponsors - type: array + ⏯️ Cannot be preset
+type: array (comma-separated)
diff --git a/source/plugins/posts/README.md b/source/plugins/posts/README.md index 71e41ba0..71f4831e 100644 --- a/source/plugins/posts/README.md +++ b/source/plugins/posts/README.md @@ -93,7 +93,8 @@ - type: string + ⏯️ Cannot be preset
+type: string
default: → User login
diff --git a/source/plugins/projects/README.md b/source/plugins/projects/README.md index e4502be2..f17d1de7 100644 --- a/source/plugins/projects/README.md +++ b/source/plugins/projects/README.md @@ -60,7 +60,8 @@ - type: array + ⏯️ Cannot be preset
+type: array (comma-separated)
diff --git a/source/plugins/repositories/README.md b/source/plugins/repositories/README.md index 1e7a2f38..7a5d30d6 100644 --- a/source/plugins/repositories/README.md +++ b/source/plugins/repositories/README.md @@ -50,7 +50,8 @@ - type: array + ⏯️ Cannot be preset
+type: array (comma-separated)
diff --git a/source/plugins/stackoverflow/README.md b/source/plugins/stackoverflow/README.md index 745595d2..edca9540 100644 --- a/source/plugins/stackoverflow/README.md +++ b/source/plugins/stackoverflow/README.md @@ -45,7 +45,8 @@ - type: number + ⏯️ Cannot be preset
+type: number
default: 0
diff --git a/source/plugins/tweets/README.md b/source/plugins/tweets/README.md index 55bd134d..cbb16edc 100644 --- a/source/plugins/tweets/README.md +++ b/source/plugins/tweets/README.md @@ -79,7 +79,8 @@ - type: string + ⏯️ Cannot be preset
+type: string
default: → User attached twitter
diff --git a/source/plugins/wakatime/README.md b/source/plugins/wakatime/README.md index fe379d0d..c7087c61 100644 --- a/source/plugins/wakatime/README.md +++ b/source/plugins/wakatime/README.md @@ -112,7 +112,8 @@ - type: string + ⏯️ Cannot be preset
+type: string
default: current
diff --git a/tests/cases/core.plugin.yml b/tests/cases/core.plugin.yml index b1387727..44c3bbfe 100644 --- a/tests/cases/core.plugin.yml +++ b/tests/cases/core.plugin.yml @@ -29,3 +29,14 @@ config_output: png use_mocked_data: 'yes' verify: 'yes' +- name: 🧱 Core - Presets + uses: lowlighter/metrics@latest + with: + token: MOCKED_TOKEN + base: header, repositories + config_presets: >- + https://raw.githubusercontent.com/lowlighter/metrics/presets/lunar-red/preset.yaml + use_mocked_data: 'yes' + verify: 'yes' + modes: + - web