deprecate(plugins/support): deprecation

This commit is contained in:
lowlighter
2022-07-29 15:46:01 -04:00
parent 9e48b7c830
commit 5bc9df2f42
5 changed files with 8 additions and 4 deletions

View File

@@ -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><th colspan="2"><h3>${meta.name}</h3></th></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>` : "",
" <tr>",
' <th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>',