From cf42b76014f38434b80a58e74277ebc4661843de Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sat, 15 Jan 2022 20:17:37 -0500 Subject: [PATCH] doc(plugins/tweets): update --- source/plugins/tweets/README.md | 66 ++++++++++++++++-------------- source/plugins/tweets/metadata.yml | 16 ++++---- 2 files changed, 42 insertions(+), 40 deletions(-) diff --git a/source/plugins/tweets/README.md b/source/plugins/tweets/README.md index 3000aba9..ac94c323 100644 --- a/source/plugins/tweets/README.md +++ b/source/plugins/tweets/README.md @@ -1,32 +1,29 @@ -### 🐤 Tweets - -The recent *tweets* plugin displays your latest tweets from your [Twitter](https://twitter.com) account. - + - + + + + + + + + + + + + + + +
-
Latest tweets - -
-
Latest tweets with attachments - -
- -

🐤 Latest tweets

This plugin displays the latest tweets from your Twitter account.

+
Supported features
→ Full specification
📗 Classic template 📒 Markdown template
👤 Users đŸ‘Ĩ Organizations
đŸ—ī¸ plugin_tweets_token
+
Latest tweets
+
Latest tweets with attachments
+ +
+ -
-đŸ’Ŧ Obtaining a Twitter token - -To get a Twitter token, you'll need to apply to the [developer program](https://apps.twitter.com). -It's a bit tedious, but it seems that requests are approved quite quickly. - -Create an app from your [developer dashboard](https://developer.twitter.com/en/portal/dashboard) and register your bearer token in your repository secrets. - -![Twitter token](/.github/readme/imgs/plugin_tweets_secrets.png) - -
- -#### âžĄī¸ Available options +## âžĄī¸ Available options @@ -35,7 +32,7 @@ Create an app from your [developer dashboard](https://developer.twitter.com/en/p - @@ -55,7 +52,7 @@ Create an app from your [developer dashboard](https://developer.twitter.com/en/p - @@ -65,7 +62,7 @@ Create an app from your [developer dashboard](https://developer.twitter.com/en/p - @@ -89,9 +86,16 @@ Create an app from your [developer dashboard](https://developer.twitter.com/en/p
plugin_tweets

Display recent tweets

+

Enable tweets plugin

plugin_tweets_attachments

Display tweets attchments

+

Display tweets attachments (images, video previews, etc.)

plugin_tweets_limit

Maximum number of tweets to display

+

Display limit

-*[→ Full specification](metadata.yml)* +## đŸ—ī¸ Obtaining a Twitter token -#### â„šī¸ Examples workflows +To get a Twitter token, it is required to apply to the [developer program](https://apps.twitter.com). +It's a bit tedious, but requests seems to be approved quite quickly. + +Create an app from the [developer dashboard](https://developer.twitter.com/en/portal/dashboard) and register your bearer token in repository secrets. + +![Twitter token](/.github/readme/imgs/plugin_tweets_secrets.png) + +## â„šī¸ Examples workflows ```yaml diff --git a/source/plugins/tweets/metadata.yml b/source/plugins/tweets/metadata.yml index b3efb0d7..987528c9 100644 --- a/source/plugins/tweets/metadata.yml +++ b/source/plugins/tweets/metadata.yml @@ -1,5 +1,9 @@ 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 index: 5 supports: - user @@ -7,34 +11,28 @@ supports: scopes: [] inputs: - # Enable or disable plugin plugin_tweets: - description: Display recent tweets + description: Enable tweets plugin type: boolean default: no - # Twitter API token - # See https://apps.twitter.com for more informations plugin_tweets_token: description: Twitter API token type: token default: "" - # Display tweets attachments (images, video previews, etc.) plugin_tweets_attachments: - description: Display tweets attchments + description: Display tweets attachments (images, video previews, etc.) type: boolean default: no - # Number of tweets to display plugin_tweets_limit: - description: Maximum number of tweets to display + description: Display limit type: number default: 2 min: 1 max: 10 - # Twitter username plugin_tweets_user: description: Twitter username type: string