docs(templates): minor changes [skip ci]

This commit is contained in:
lowlighter
2022-01-14 22:21:03 -05:00
parent 9c4315e1e2
commit 12db875ad6
4 changed files with 17 additions and 4 deletions

View File

@@ -389,7 +389,7 @@ metadata.template = async function({__templates, name, plugins, logger}) {
` <tr><td colspan="2" align="center">${(meta.description ?? "").replaceAll("\n", "<br>")}</td></tr>`,
` <tr>`,
` <th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>`,
` <td>${Object.entries(compatibility).filter(([_, value]) => value).map(([id]) => `<a href="/source/plugins/${id}" title="${plugins[id].name}">${plugins[id].icon}</a>`).join(" ")}</td>`,
` <td>${Object.entries(compatibility).filter(([_, value]) => value).map(([id]) => `<a href="/source/plugins/${id}" title="${plugins[id].name}">${plugins[id].icon}</a>`).join(" ")}${meta.formats?.includes("markdown") ? "<code>✓ embed()</code>" : ""}</td>`,
` </tr>`,
` <tr>`,
` <td>${[

View File

@@ -9,8 +9,6 @@
</tr>
</table>
___
Community templates are a way to use official releases of [lowlighter/metrics](https://github.com/lowlighter/metrics) while using templates from external repositories (owned or not).
## 📮 Using community templates

View File

@@ -4,7 +4,7 @@
<tr><td colspan="2" align="center">A template capable of rendering markdown from a given template file.</td></tr>
<tr>
<th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>
<td><a href="/source/plugins/activity" title="📰 Recent activity">📰</a> <a href="/source/plugins/posts" title="✒️ Recent posts">✒️</a> <a href="/source/plugins/rss" title="🗼 Rss feed">🗼</a> <a href="/source/plugins/topics" title="📌 Starred topics">📌</a> <a href="/source/plugins/tweets" title="🐤 Latest tweets">🐤</a></td>
<td><a href="/source/plugins/activity" title="📰 Recent activity">📰</a> <a href="/source/plugins/posts" title="✒️ Recent posts">✒️</a> <a href="/source/plugins/rss" title="🗼 Rss feed">🗼</a> <a href="/source/plugins/topics" title="📌 Starred topics">📌</a> <a href="/source/plugins/tweets" title="🐤 Latest tweets">🐤</a><code>✓ embed()</code></td>
</tr>
<tr>
<td>👤 Users, 👥 Organizations</td>

View File

@@ -21,6 +21,21 @@
</table>
<!--/header-->
## 🎎 Using a repository template
To use a repository template, a `repo` handle must be provided.
If the token owner is not the repository owner, then the `user` option must be set to the repository owner (whether it is an user or organization account).
*Example: render `lowlighter/metrics` repository*
```yml
- uses: lowlighter/metrics@latest
with:
template: repository
user: lowlighter
repo: metrics
```
## Examples workflows
<!--examples-->