docs(userstylesyml.md): misc improvements (#1519)

Co-authored-by: Isabel <[email protected]>
This commit is contained in:
uncenterandIsabel authored and GitHub committed 2024-12-24 16:50:23 -05:00
1 parent a3675212c0
commit 28c011b620
1 file changed
+36 -57
+36 -57
View File
@@ -6,22 +6,15 @@ The [`userstyles.yml`](https://github.com/catppuccin/userstyles/tree/main/script
- [Adding yourself as a maintainer](#adding-yourself-as-a-maintainer) - [Adding yourself as a maintainer](#adding-yourself-as-a-maintainer)
- [Removing yourself as a maintainer](#removing-yourself-as-a-maintainer) - [Removing yourself as a maintainer](#removing-yourself-as-a-maintainer)
> [!TIP]
> [`userstyles.schema.json`](https://github.com/catppuccin/userstyles/tree/main/scripts/userstyles.schema.json) is the schema specification for `userstyles.yml`. Please refer to it for clarification.
## Adding a new userstyle ## Adding a new userstyle
[`userstyles.schema.json`](https://github.com/catppuccin/userstyles/tree/main/scripts/userstyles.schema.json) is the schema 1. [Add yourself as a maintainer](#adding-yourself-as-a-maintainer).
specification for `userstyles.yml`. The properties in the following instructions are based 2. Locate the `userstyles` section of `userstyles.yml` and add an entry for the new userstyle to the list in alphabetical order.
on the schema. Please refer to it for clarification.
1. See [Adding yourself as a maintainer](#adding-yourself-as-a-maintainer). You should make changes to everything wrapped in `<>` and remove the `<>` characters. If you need help with any of the fields, refer to other ports in the `userstyles.yml` file. If you would like extra guidance, you can ask for help in the pull request comments or join the [Catppuccin Discord server](https://discord.com/servers/catppuccin-907385605422448742).
2. Locate the `userstyles` section and add your port to the list, following the
existing alphabetical order.
You should make changes to everything wrapped in `<>` and remove the `<>`
characters. If you need help with any of the fields, refer to
other ports in the `userstyles.yml` file. If you would like extra guidance,
you can ask for help in the pull request comments or join the
[Catppuccin Discord server](https://discord.com/servers/catppuccin-907385605422448742).
**Required Fields:** **Required Fields:**
@@ -39,16 +32,13 @@ on the schema. Please refer to it for clarification.
**All Fields:** **All Fields:**
These extra `usage` & `faq` keys will ensure that you can add important The `readme.usage` and `readme.faq` fields allow for additional information about the port to be included on the README.
information about the port to the README.
The `icon` key is best explained the schema specification itself. The `icon` field allows for specifying an icon from [Simple Icons](https://simpleicons.org/) for the userstyle. The icon's "slug" - which can be found by hovering over the icon's title and clicking the copy button - should be used.
The `past-maintainers` key is a list of people who have maintained the port The `past-maintainers` field contains a list of maintainers who have maintained the port in the past. We encourage all maintainers to add/remove themselves from this list as they see fit.
in the past. We encourage all maintainers to add/remove themselves from this
list as they see fit.
Remember that these 5 fields are **optional**. Remember that these 4 fields are **optional**.
```yaml ```yaml
<port>: <port>:
@@ -70,63 +60,52 @@ on the schema. Please refer to it for clarification.
## Adding yourself as a maintainer ## Adding yourself as a maintainer
To add yourself as a maintainer, you need to add your GitHub username to the 1. Add a new entry to the end of the `collaborators` array in the `userstyles.yml` file. The entry should be made under your GitHub username, and may optionally contain the `name` (your preferred name) and `url` fields. The following example shows a new entry for a user "Pepperjack".
`collaborators` array in the `userstyles.yml` file. This file is located in the
`scripts` directory. The `collaborators` array, is an array of objects, each
object should contain a `name` and a `url` key. And optionally a `name` key,
which is your preferred name.
```yaml ```yaml
collaborators: collaborators:
- &<github-username> - &pepperjack
name: <preferred-name> # OPTIONAL name: Pepperjack # OPTIONAL
url: https://github.com/<github-username> url: https://github.com/catppuccin
``` ```
Then you need to add your username to the `current-maintainers` array in for the 2. Add your username to the `current-maintainers` array of the userstyle you wish to maintain. The following example shows the user "Pepperjack" added to the `example.org` userstyle.
userstyle you want to maintain, in this case `youtube`.
```yaml ```diff
userstyles: userstyles:
youtube: example.org:
name: YouTube name: example.org
categories: [entertainment, social_networking, photo_and_video] categories: [productivity]
icon: youtube color: text
color: red
readme: readme:
app-link: "https://youtube.com" app-link: "https://example.org"
current-maintainers: [*isabelroses, *your-username] - current-maintainers: []
past-maintainers: [*elkrien] + current-maintainers: [*pepperjack]
``` ```
If the change is accepted, you will receive an invitation to the `catppuccin` organization, If the change is accepted, you will receive an invitation to the `catppuccin` organization, and become a member of the [`userstyles-maintainers` team](https://github.com/orgs/catppuccin/teams/userstyles-maintainers).
and become a member of the [`userstyles-maintainers` team](https://github.com/orgs/catppuccin/teams/userstyles-maintainers).
As a maintainer you will be expected to:
As a maintainer you will be expected to:
- Review and merge PRs for the userstyle you maintain. - Review and merge PRs for the userstyle you maintain.
- Keep the userstyle up to date with the latest changes. If you no longer wish to maintain a userstyle, see [Removing yourself as a maintainer](#removing-yourself-as-a-maintainer). - Keep the userstyle up to date with the latest changes. If you no longer wish to maintain a userstyle, see [Removing yourself as a maintainer](#removing-yourself-as-a-maintainer).
- Follow our code of conduct and guidelines. - Follow our code of conduct and guidelines.
## Removing yourself as a maintainer ## Removing yourself as a maintainer
To remove yourself as a maintainer, you will need to move your username from the 1. Remove your username from the `current-maintainers` array and add it to the `past-maintainers` array of the userstyle(s) you no longer want to maintain. The following example shows the user "Pepperjack" removed from the `example.org` userstyle.
`current-maintainers` array to the `past-maintainers` array for each of the userstyles you no longer wish to maintain. In the example for YouTube below, the user `elkrien` has been moved from the `current-maintainers` array to the `past-maintainers` array.
```diff ```diff
userstyles: userstyles:
youtube: example.org:
name: YouTube name: example.org
categories: [entertainment, social_networking, photo_and_video] categories: [productivity]
icon: youtube color: text
color: red
readme: readme:
app-link: "https://youtube.com" app-link: "https://example.org"
- current-maintainers: [*isabelroses, *elkrien] - current-maintainers: [*pepperjack]
- past-maintainers: [] + current-maintainers: []
+ current-maintainers: [*isabelroses] + past-maintainers: [*pepperjack]
+ past-maintainers: [*elkrien]
``` ```
If you would not like to be listed as a past maintainer, you can remove yourself from > [!NOTE]
`collaborators` array entirely. Upon removal, you will also be removed from the > If you would prefer to not be listed as a past maintainer at all, you can remove yourself from `collaborators` array entirely. Upon removal, you will also be removed from the `userstyles-maintainers` GitHub team.
`userstyles-maintainers` team.