docs: minor changes
This commit is contained in:
@@ -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}),
|
||||
},
|
||||
]),
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -18,3 +18,4 @@
|
||||
plugin_tweets_token: ${{ secrets.TWITTER_TOKEN }}
|
||||
plugin_tweets_attachments: yes
|
||||
plugin_tweets_user: github
|
||||
plugin_tweets_limit: 1
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user