docs(templates): minor changes [skip ci]
This commit is contained in:
@@ -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>${[
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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-->
|
||||
|
||||
Reference in New Issue
Block a user