docs: fix compatibility matrix

This commit is contained in:
lowlighter
2021-11-10 17:45:33 -05:00
parent 5c18d930d7
commit 58f4cc4aa0
2 changed files with 2 additions and 2 deletions

View File

@@ -299,7 +299,7 @@ metadata.template = async function({__templates, name, plugins, logger}) {
demo:readme.match(/(?<demo><table>[\s\S]*?<[/]table>)/)?.groups?.demo?.replace(/<[/]?(?:table|tr)>/g, "")?.trim() ?? (name === "community" ? '<td align="center" colspan="2">See <a href="/source/templates/community/README.md">documentation</a> 🌍</td>' : "<td></td>"),
compatibility:{
...Object.fromEntries(Object.entries(compatibility).filter(([_, value]) => value)),
...Object.fromEntries(Object.entries(compatibility).filter(([_, value]) => !value).map(([key, _]) => [key, "embed"])),
...Object.fromEntries(Object.entries(compatibility).filter(([_, value]) => !value).map(([key, value]) => [key, meta.formats?.includes("markdown") ? "embed" : value])),
},
},
check({q, account = "bypass", format = null}) {

View File

@@ -5,7 +5,7 @@ The *isocalendar* plugin displays an isometric view of your commits calendar, al
<table>
<td align="center">
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.isocalendar.svg">
<details><summary>Full year version</summary>
<details open><summary>Full year version</summary>
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.isocalendar.fullyear.svg">
</details>
<img width="900" height="1" alt="">