Skip to content

Commit a291e35

Browse files
authored
docs: remove cost, document missing options and improve docs (lowlighter#653)
1 parent e147d2a commit a291e35

File tree

56 files changed

+82
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+82
-87
lines changed

.github/quickstart/plugin/metadata.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: "🧩 <%= `${name.charAt(0).toLocaleUpperCase()}${name.substring(1)}` %>"
2-
cost: Estimates how many GitHub requests is used during plugin execution ("N/A" for Third-Party services)
32
category: other # Set plugin category ("github", "social" or "other")
43
supports:
54
- user # Support users account

.github/readme/partials/documentation/compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<tr>
1111
<td nowrap="nowrap"><%- name %></td><%# -%>
1212
<% for (const [plugin] of Object.entries(plugins).filter(([key, value]) => (value)&&(!["core"].includes(key)))) { %>
13-
<td nowrap="nowrap" align="center" data-plugin="<%= plugin %>"><%= readme.compatibility[plugin] ? "✔️" : "❌" %></td><% } %>
13+
<td nowrap="nowrap" align="center" data-plugin="<%= plugin %>"><%= {true:"✔️", false:"❌", embed:"✓"}[readme.compatibility[plugin]] %></td><% } %>
1414
</tr><% } %>
1515
<tr>
1616
<td colspan="<%= Object.keys(plugins).length %>"></td>

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,7 @@ For example:
423423
Here's an example:
424424
```yaml
425425
name: "🧩 Plugin name (with emoji icon)"
426-
cost: Estimates how many GitHub requests is used during plugin execution ("N/A" for Third-Party services)
427-
category: github # Plugin category ("github", "social" or "other")
426+
category: github # Plugin category ("github", "social" or "other")
428427
index: ~ # Leave as it (this is used to order plugins on metrics README.md)
429428
supports:
430429
- user # Support users account

source/app/metrics/metadata.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,10 @@ metadata.template = async function({__templates, name, plugins, logger}) {
297297
supports:meta.supports ?? null,
298298
readme:{
299299
demo:readme.match(/(?<demo><table>[\s\S]*?<[/]table>)/)?.groups?.demo?.replace(/<[/]?(?:table|tr)>/g, "")?.trim() ?? (name === "community" ? '<td align="center" colspan="2">See <a href="/source/templates/community/README.md">documentation</a> 🌍</td>' : "<td></td>"),
300-
compatibility:{...compatibility, base:true},
300+
compatibility:{
301+
...Object.fromEntries(Object.entries(compatibility).filter(([_, value]) => value)),
302+
...Object.fromEntries(Object.entries(compatibility).filter(([_, value]) => !value).map(([key, _]) => [key, "embed"])),
303+
},
301304
},
302305
check({q, account = "bypass", format = null}) {
303306
//Support check

source/plugins/achievements/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ It also lets you quickly see at a glance what this user primarly use GitHub for,
3636
with:
3737
# ... other options
3838
plugin_achievements: yes
39-
plugin_achievements_threshold: B # Display achievements with rank B or higher
40-
plugin_achievements_secrets: yes # Display unlocked secrets achievements
41-
plugin_achievements_ignored: octonaut # Hide octonaut achievement
42-
plugin_achievements_limit: 0 # Display all unlocked achievement matching threshold and secrets params
43-
plugin_achievements_display: compact # Use compact display
39+
plugin_achievements_threshold: B # Display achievements with rank B or higher
40+
plugin_achievements_secrets: yes # Display unlocked secrets achievements
41+
plugin_achievements_display: compact # Use compact display
42+
plugin_achievements_limit: 0 # Display all unlocked achievements (no limit)
43+
plugin_achievements_ignored: octonaut # Hide "octonaut" achievement
44+
plugin_achievements_only: explorer # Display only "explorer" achievement (don't use with "ignored" option)
4445
```

source/plugins/achievements/metadata.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: "🏆 Achievements"
2-
cost: ~5 GraphQL request
32
category: github
43
index: 17
54
supports:

source/plugins/activity/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ Use a full `repo` scope token to display **private** events.
3838
with:
3939
# ... other options
4040
plugin_activity: yes
41-
plugin_activity_limit: 5 # Limit to 5 events
42-
plugin_activity_days: 14 # Keep only events from last 14 days (can be set to 0 to disable limitations)
43-
plugin_activity_filter: all # Show all events (use table above to filter events types)
41+
plugin_activity_limit: 5 # Limit to 5 events
42+
plugin_activity_load: 100 # Load up to 100 recent events from API (should be higher than "limit")
43+
plugin_activity_days: 14 # Keep only events from last 14 days (set to 0 for no limit)
44+
plugin_activity_filter: all # Show all events (use table above to filter events types)
45+
plugin_activity_visibility: public # Only display public events
46+
plugin_activity_timestamps: yes # Display events timestamps
47+
plugin_activity_skipped: repo # Ignored repositories
4448
```

source/plugins/activity/metadata.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: "📰 Recent activity"
2-
cost: 1 REST request per 100 events
32
category: github
43
index: 16
54
supports:
@@ -86,4 +85,4 @@ inputs:
8685
type: array
8786
format: comma-separated
8887
default: ""
89-
example: my-repo-1, my-repo-2, owner/repo-3 ...
88+
example: my-repo-1, my-repo-2, owner/repo-3, ...

source/plugins/anilist/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ These sections can also be filtered by media type, which can be either `anime`,
3232
with:
3333
# ... other options
3434
plugin_anilist: yes
35-
plugin_anilist_medias: anime, manga # Display both animes and mangas
36-
plugin_anilist_sections: favorites, characters # Display only favorites and characters sections
37-
plugin_anilist_limit: 2 # Limit to 2 entry per section (characters section excluded)
38-
plugin_anilist_shuffle: yes # Shuffle data for more varied outputs
39-
plugin_anilist_user: .user.login # Use same username as GitHub login
40-
plugin_anilist_limit_characters: 22 # Limit to 22 characters in characters section
35+
plugin_anilist_medias: anime, manga # Display both animes and mangas
36+
plugin_anilist_sections: favorites, characters # Display only favorites and characters sections
37+
plugin_anilist_limit: 2 # Limit to 2 entry per section (characters section excluded)
38+
plugin_anilist_limit_characters: 22 # Limit to 22 characters in characters section
39+
plugin_anilist_shuffle: yes # Shuffle data for more varied outputs
40+
plugin_anilist_user: .user.login # Use same username as GitHub login
4141
```

source/plugins/anilist/metadata.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: "🌸 Anilist watch list and reading list"
2-
cost: N/A
32
category: social
43
index: 4
54
supports:

0 commit comments

Comments
 (0)