deprecate(plugins/support): deprecation
This commit is contained in:
@@ -10,7 +10,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
|
|||||||
</tr>
|
</tr>
|
||||||
<% {
|
<% {
|
||||||
let cell = 0
|
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)))
|
||||||
-%>
|
-%>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2" align="center">
|
<th colspan="2" align="center">
|
||||||
|
|||||||
4
.github/readme/partials/templated/plugins.md
vendored
4
.github/readme/partials/templated/plugins.md
vendored
@@ -3,11 +3,11 @@
|
|||||||
Plugins provide additional content and lets you customize rendered metrics.
|
Plugins provide additional content and lets you customize rendered metrics.
|
||||||
|
|
||||||
**📦 Maintained by core team**
|
**📦 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 -%>
|
<% if (previous !== category) { previous = category -%>
|
||||||
* **<%= `${category.charAt(0).toLocaleUpperCase()}${category.substring(1)} plugins` %>**
|
* **<%= `${category.charAt(0).toLocaleUpperCase()}${category.substring(1)} plugins` %>**
|
||||||
<% } -%>
|
<% } -%>
|
||||||
* [<%- name %> <sub>`<%= plugin %>`</sub>](/source/plugins/<%= plugin %>/README.md)<%# -%>
|
* [<%- name %> <sub>`<%= plugin %>`</sub>](/source/plugins/<%= plugin %>/README.md)<%# -%><% if (deprecation) { %><sub>⚠️ deprecated</sub><% } %>
|
||||||
<% }} %>
|
<% }} %>
|
||||||
|
|
||||||
**🎲 Maintained by community**
|
**🎲 Maintained by community**
|
||||||
|
|||||||
@@ -396,6 +396,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
|
|||||||
' <tr><td colspan="2"><a href="/README.md#-plugins">← Back to plugins index</a></td></tr>',
|
' <tr><td colspan="2"><a href="/README.md#-plugins">← Back to plugins index</a></td></tr>',
|
||||||
` <tr><th colspan="2"><h3>${meta.name}</h3></th></tr>`,
|
` <tr><th colspan="2"><h3>${meta.name}</h3></th></tr>`,
|
||||||
` <tr><td colspan="2" align="center">${marked.parse(meta.description ?? "", {silent: true})}</td></tr>`,
|
` <tr><td colspan="2" align="center">${marked.parse(meta.description ?? "", {silent: true})}</td></tr>`,
|
||||||
|
meta.deprecation ? ` <tr><th>⚠️ Deprecated</th><td>${marked.parse(meta.deprecation ?? "", {silent: true})}</td></tr>` : "",
|
||||||
meta.authors?.length ? `<tr><th>Authors</th><td>${[meta.authors].flat().map(author => `<a href="https://github.com/${author}">@${author}</a>`)}</td></tr>` : "",
|
meta.authors?.length ? `<tr><th>Authors</th><td>${[meta.authors].flat().map(author => `<a href="https://github.com/${author}">@${author}</a>`)}</td></tr>` : "",
|
||||||
" <tr>",
|
" <tr>",
|
||||||
' <th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>',
|
' <th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>',
|
||||||
|
|||||||
@@ -5,3 +5,5 @@
|
|||||||
token: NOT_NEEDED
|
token: NOT_NEEDED
|
||||||
base: ""
|
base: ""
|
||||||
plugin_support: yes
|
plugin_support: yes
|
||||||
|
prod:
|
||||||
|
skip: true
|
||||||
@@ -2,9 +2,10 @@ name: 💭 GitHub Community Support
|
|||||||
category: github
|
category: github
|
||||||
description: |
|
description: |
|
||||||
This plugin displays statistics from a [GitHub Support Community](https://github.community/) account.
|
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:
|
examples:
|
||||||
default: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.support.svg
|
default: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.support.svg
|
||||||
index: 17
|
|
||||||
supports:
|
supports:
|
||||||
- user
|
- user
|
||||||
scopes: []
|
scopes: []
|
||||||
|
|||||||
Reference in New Issue
Block a user