Files
metrics/source/plugins/rss/README.md
2022-01-15 13:36:27 -05:00

68 lines
1.6 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
### 🗼 Rss feed
The *rss* plugin displays items from a specified RSS feed.
<table>
<td align="center">
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.rss.svg">
<img width="900" height="1" alt="">
</td>
</table>
#### ➡️ Available options
<!--options-->
<table>
<tr>
<td align="center" nowrap="nowrap">Type</i></td><td align="center" nowrap="nowrap">Description</td>
</tr>
<tr>
<td nowrap="nowrap"><code>plugin_rss</code></td>
<td rowspan="2">Display RSS feed<img width="900" height="1" alt=""></td>
</tr>
<tr>
<td nowrap="nowrap"><b>type:</b> <code>boolean</code>
<br>
<b>default:</b> no<br></td>
</tr>
<tr>
<td nowrap="nowrap"><code>plugin_rss_source</code></td>
<td rowspan="2">RSS feed source<img width="900" height="1" alt=""></td>
</tr>
<tr>
<td nowrap="nowrap"><b>type:</b> <code>string</code>
<br></td>
</tr>
<tr>
<td nowrap="nowrap"><code>plugin_rss_limit</code></td>
<td rowspan="2">Maximum number of items to display<img width="900" height="1" alt=""></td>
</tr>
<tr>
<td nowrap="nowrap"><b>type:</b> <code>number</code>
<i>(0 ≤
𝑥
≤ 30)</i>
<br>
<b>default:</b> 4<br></td>
</tr>
</table>
<!--/options-->
*[→ Full specification](metadata.yml)*
#### Examples workflows
<!--examples-->
```yaml
name: News from hackernews
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.rss.svg
token: NOT_NEEDED
base: ''
plugin_rss: 'yes'
plugin_rss_source: https://news.ycombinator.com/rss
plugin_rss_limit: 4
```
<!--/examples-->