From edc0d52983d36a62267d0a4f2da35622768a9afd Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Fri, 26 Nov 2021 18:49:24 -0500 Subject: [PATCH] chore: update `metadata.yml` --- .github/readme/partials/documentation/plugins.md | 2 +- source/app/metrics/metadata.mjs | 4 ++-- source/plugins/screenshot/metadata.yml | 5 +++-- source/plugins/stock/metadata.yml | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/readme/partials/documentation/plugins.md b/.github/readme/partials/documentation/plugins.md index 903b816c..baeb1228 100644 --- a/.github/readme/partials/documentation/plugins.md +++ b/.github/readme/partials/documentation/plugins.md @@ -15,5 +15,5 @@ The following plugins are maintained by Metric's core team: The following plugins are provided and maintained by Metrics's user community: <% { let previous = null; for (const [plugin, {name, category, authors = []}] of Object.entries(plugins).filter(([key, value]) => (value)&&(value.category === "community")).sort(([an, a], [bn, b]) => a.category === b.category ? an.localeCompare(bn) : 0)) { %><%# -%> - * [<%- name %>](/source/plugins/<%= plugin %>/README.md) <%- authors.map(author => `[@${author}](https://github.com/${author})`).join(" ") %><%# -%> + * [<%- name %>](/source/plugins/<%= plugin %>/README.md) <%- authors.map(author => `[@${author}](https://github.com/${author})`).join(" ") %> <% }} %> \ No newline at end of file diff --git a/source/app/metrics/metadata.mjs b/source/app/metrics/metadata.mjs index 1b2da06d..b81d5db6 100644 --- a/source/app/metrics/metadata.mjs +++ b/source/app/metrics/metadata.mjs @@ -5,7 +5,7 @@ import path from "path" import url from "url" //Defined categories -const categories = ["core", "github", "social", "other", "community"] +const categories = ["core", "github", "social", "community"] /**Metadata descriptor parser */ export default async function metadata({log = true} = {}) { @@ -64,7 +64,7 @@ metadata.plugin = async function({__plugins, name, logger}) { //category if (!categories.includes(meta.category)) - meta.category = "other" + meta.category = "community" //Inputs parser { diff --git a/source/plugins/screenshot/metadata.yml b/source/plugins/screenshot/metadata.yml index eea77c04..d6ecdbc4 100644 --- a/source/plugins/screenshot/metadata.yml +++ b/source/plugins/screenshot/metadata.yml @@ -1,6 +1,7 @@ name: "📸 Website screenshot" -category: other -index: 2 +category: community +authors: + - lowlighter supports: - user - organization diff --git a/source/plugins/stock/metadata.yml b/source/plugins/stock/metadata.yml index 8af10b81..9e43ebea 100644 --- a/source/plugins/stock/metadata.yml +++ b/source/plugins/stock/metadata.yml @@ -1,6 +1,6 @@ name: "💹 Stock prices" -category: other -index: 1 +category: social +index: 8 supports: - user - organization