From 732cc4ece69589fa686380764d20c39806ad6406 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:22:15 -0500 Subject: [PATCH] docs(README): differentiate unmaintained userstyles (#536) Co-authored-by: Hamothy <58985301+sgoudham@users.noreply.github.com> --- README.md | 3 +++ scripts/generate/readme-repo.ts | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 34609929..b8aaddef 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,9 @@ See [CONTRIBUTING.md](docs/CONTRIBUTING.md). ## 🖌 Userstyles +> [!IMPORTANT] +> Userstyles labeled with the "🚧" emoji are looking for maintainers, and may not work as intended. Contributions are still welcome and encouraged. If you would like to become a maintainer, add your username to the `current-maintainers` array in the [userstyles.yml](./scripts/userstyles.yml) file. +
diff --git a/scripts/generate/readme-repo.ts b/scripts/generate/readme-repo.ts index 2ec823d1..828c1265 100644 --- a/scripts/generate/readme-repo.ts +++ b/scripts/generate/readme-repo.ts @@ -42,7 +42,7 @@ export const generateMainReadme = async ( {{emoji}} {{name}} {{#each ports}} -- [{{#each name}}{{ this }}{{#unless @last}}, {{/unless}}{{/each}}]({{ path }}) +- {{#unless maintained}}🚧 {{/unless}}[{{#each name}}{{ this }}{{#unless @last}}, {{/unless}}{{/each}}]({{ path }}) {{/each}}
@@ -51,9 +51,10 @@ export const generateMainReadme = async ( return { emoji: meta.emoji, name: meta.name, - ports: ports.map(({ name, path }) => { + ports: ports.map(({ name, path, readme }) => { return { name: [name].flat(), + maintained: readme["current-maintainers"].length > 0, path, }; }),