diff --git a/.github/readme/partials/templated/introduction.md b/.github/readme/partials/templated/introduction.md index 50371146..4cf0ec92 100644 --- a/.github/readme/partials/templated/introduction.md +++ b/.github/readme/partials/templated/introduction.md @@ -10,7 +10,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile <% { let cell = 0 - const elements = Object.entries(plugins).filter(([key, value]) => (value)&&(!["base", "core"].includes(key)&&(value.category !== "community"))) + const elements = Object.entries(plugins).filter(([key, value]) => (value)&&(!["base", "core"].includes(key)&&(value.category !== "community")&&(!value.deprecation))) -%> diff --git a/.github/readme/partials/templated/plugins.md b/.github/readme/partials/templated/plugins.md index 38a3e29c..eea22d3b 100644 --- a/.github/readme/partials/templated/plugins.md +++ b/.github/readme/partials/templated/plugins.md @@ -3,11 +3,11 @@ Plugins provide additional content and lets you customize rendered metrics. **📦 Maintained by core team** -<% { 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)) { %> +<% { let previous = null; for (const [plugin, {name, category, deprecation, 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)) { %> <% if (previous !== category) { previous = category -%> * **<%= `${category.charAt(0).toLocaleUpperCase()}${category.substring(1)} plugins` %>** <% } -%> - * [<%- name %> `<%= plugin %>`](/source/plugins/<%= plugin %>/README.md)<%# -%> + * [<%- name %> `<%= plugin %>`](/source/plugins/<%= plugin %>/README.md)<%# -%><% if (deprecation) { %>⚠️ deprecated<% } %> <% }} %> **🎲 Maintained by community** diff --git a/source/app/metrics/metadata.mjs b/source/app/metrics/metadata.mjs index 467bc106..031f8da0 100644 --- a/source/app/metrics/metadata.mjs +++ b/source/app/metrics/metadata.mjs @@ -396,6 +396,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) { ' ← Back to plugins index', `

${meta.name}

`, ` ${marked.parse(meta.description ?? "", {silent: true})}`, + meta.deprecation ? ` ⚠️ Deprecated${marked.parse(meta.deprecation ?? "", {silent: true})}` : "", meta.authors?.length ? `Authors${[meta.authors].flat().map(author => `@${author}`)}` : "", " ", ' Supported features
→ Full specification', diff --git a/source/plugins/support/examples.yml b/source/plugins/support/examples.yml index 2adcb489..6c8de4e9 100644 --- a/source/plugins/support/examples.yml +++ b/source/plugins/support/examples.yml @@ -5,3 +5,5 @@ token: NOT_NEEDED base: "" plugin_support: yes + prod: + skip: true \ No newline at end of file diff --git a/source/plugins/support/metadata.yml b/source/plugins/support/metadata.yml index 76a567c0..a3f34c67 100644 --- a/source/plugins/support/metadata.yml +++ b/source/plugins/support/metadata.yml @@ -2,9 +2,10 @@ name: 💭 GitHub Community Support category: github description: | This plugin displays statistics from a [GitHub Support Community](https://github.community/) account. +deprecation: | + GitHub Support Community has been moved to [GitHub Discussions](https://github.blog/2022-07-26-launching-github-community-powered-by-github-discussions). examples: default: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.support.svg -index: 17 supports: - user scopes: []