docs: minor changes

This commit is contained in:
lowlighter
2022-01-15 23:34:09 -05:00
parent 20ab1e9780
commit c82a49ea63
9 changed files with 14 additions and 10 deletions

View File

@@ -210,7 +210,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
key,
{
comment:comments[key] ?? `# ${value.description}`,
descriptor:yaml.dump({[key]:Object.fromEntries(Object.entries(value).filter(([key]) => ["description", "default", "required"].includes(key)).map(([k, v]) => k === "description" ? [k, v.split("\n").at(0)] : [k, v]))}, {quotingType:'"', noCompatMode:true}),
descriptor:yaml.dump({[key]:Object.fromEntries(Object.entries(value).filter(([key]) => ["description", "default", "required"].includes(key)).map(([k, v]) => k === "description" ? [k, v.split("\n")[0]] : [k, v]))}, {quotingType:'"', noCompatMode:true}),
},
]),
)

View File

@@ -15,5 +15,6 @@
base: ""
plugin_posts: yes
plugin_posts_source: dev.to
plugin_posts_limit: 2
plugin_posts_descriptions: yes
plugin_posts_covers: yes

View File

@@ -2,8 +2,8 @@ name: "✒️ Recent posts"
category: social
description: This plugin displays recent articles from a specified external source.
examples:
+latest posts: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.posts.svg
Latest posts width description and cover image: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.posts.full.svg
latest posts: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.posts.svg
+latest posts width description and cover image: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.posts.full.svg
index: 6
supports:
- user

View File

@@ -3,7 +3,7 @@ category: github
description: This plugin displays sponsors and introduction text from [GitHub sponsors](https://github.com/sponsors/).
examples:
+GitHub sponsors card: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.sponsors.svg
+GitHub sponsors full introduction: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.sponsors.full.svg
GitHub sponsors full introduction: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.sponsors.full.svg
index: 23
supports:
- user

View File

@@ -18,3 +18,4 @@
plugin_tweets_token: ${{ secrets.TWITTER_TOKEN }}
plugin_tweets_attachments: yes
plugin_tweets_user: github
plugin_tweets_limit: 1

View File

@@ -2,8 +2,8 @@ name: "🐤 Latest tweets"
category: social
description: This plugin displays the latest tweets from your [Twitter](https://twitter.com) account.
examples:
+latest tweets: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.tweets.svg
latest tweets with attachments: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.tweets.attachments.svg
+latest tweets with attachments: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.tweets.attachments.svg
latest tweets: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.tweets.svg
index: 5
supports:
- user