docs: improve individual readme usage sections (#1583)
* docs: improve individual readme usage sections * fix(userstyles.schema.json): disable `additionalProperties` for all objects
This commit is contained in:
1 parent
421cb769eb
commit
d1e9fa4c30
5 files changed
+42
-53
No files matched your search
@@ -68,7 +68,7 @@ export function generateStyleReadmes(userstyles: UserstylesSchema.Userstyles) {
|
|||||||
const readmeContent = Handlebars.compile(stylesReadmeContent)({
|
const readmeContent = Handlebars.compile(stylesReadmeContent)({
|
||||||
heading: heading(name, readme["app-link"]),
|
heading: heading(name, readme["app-link"]),
|
||||||
slug,
|
slug,
|
||||||
usage: readme.usage,
|
note: readme.note,
|
||||||
faq: readme.faq,
|
faq: readme.faq,
|
||||||
collaborators: {
|
collaborators: {
|
||||||
currentMaintainers: extractName(currentMaintainers),
|
currentMaintainers: extractName(currentMaintainers),
|
||||||
|
|||||||
@@ -17,9 +17,13 @@
|
|||||||
<img src="preview.webp"/>
|
<img src="preview.webp"/>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{{#if usage}}
|
|
||||||
## Usage
|
## Usage
|
||||||
{{{ usage }}}
|
|
||||||
|
See [the userstyle usage instructions](../../docs/USAGE.md).
|
||||||
|
|
||||||
|
{{#if note}}
|
||||||
|
> [!NOTE]
|
||||||
|
> {{{ note }}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if faq}}
|
{{#if faq}}
|
||||||
|
|||||||
Vendored
+3
-3
@@ -75,9 +75,9 @@ export type Icon = string;
|
|||||||
*/
|
*/
|
||||||
export type ApplicationLink = [string, string, ...string[]] | string;
|
export type ApplicationLink = [string, string, ...string[]] | string;
|
||||||
/**
|
/**
|
||||||
* The Usage section of the userstyle README.
|
* An additional note for the Usage section of the userstyle README.
|
||||||
*/
|
*/
|
||||||
export type Usage = string;
|
export type Note = string;
|
||||||
/**
|
/**
|
||||||
* The FAQ section of the userstyle README.
|
* The FAQ section of the userstyle README.
|
||||||
*
|
*
|
||||||
@@ -184,7 +184,7 @@ export interface Userstyle {
|
|||||||
*/
|
*/
|
||||||
export interface README {
|
export interface README {
|
||||||
"app-link": ApplicationLink;
|
"app-link": ApplicationLink;
|
||||||
usage?: Usage;
|
note?: Note;
|
||||||
faq?: FAQ;
|
faq?: FAQ;
|
||||||
[k: string]: unknown;
|
[k: string]: unknown;
|
||||||
}
|
}
|
||||||
@@ -15,13 +15,6 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "The directory of the userstyle.",
|
"description": "The directory of the userstyle.",
|
||||||
"examples": ["youtube"],
|
"examples": ["youtube"],
|
||||||
"required": [
|
|
||||||
"name",
|
|
||||||
"categories",
|
|
||||||
"readme",
|
|
||||||
"color",
|
|
||||||
"current-maintainers"
|
|
||||||
],
|
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
@@ -85,7 +78,7 @@
|
|||||||
"title": "README",
|
"title": "README",
|
||||||
"description": "Options to help in the auto-generation of the userstyle README.",
|
"description": "Options to help in the auto-generation of the userstyle README.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["app-link"],
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"app-link": {
|
"app-link": {
|
||||||
"$id": "#userstyles/userstyle/readme/app-link",
|
"$id": "#userstyles/userstyle/readme/app-link",
|
||||||
@@ -108,10 +101,10 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"usage": {
|
"note": {
|
||||||
"$id": "#userstyles/userstyle/readme/usage",
|
"$id": "#userstyles/userstyle/readme/note",
|
||||||
"title": "Usage",
|
"title": "Note",
|
||||||
"description": "The Usage section of the userstyle README.",
|
"description": "An additional note for the Usage section of the userstyle README.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"faq": {
|
"faq": {
|
||||||
@@ -122,6 +115,7 @@
|
|||||||
"minItems": 1,
|
"minItems": 1,
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"question": {
|
"question": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -137,7 +131,8 @@
|
|||||||
"required": ["question", "answer"]
|
"required": ["question", "answer"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": ["app-link"]
|
||||||
},
|
},
|
||||||
"current-maintainers": {
|
"current-maintainers": {
|
||||||
"$id": "#userstyles/userstyle/current-maintainers",
|
"$id": "#userstyles/userstyle/current-maintainers",
|
||||||
@@ -154,7 +149,14 @@
|
|||||||
"description": "List of all users that have maintained this userstyle in the past.",
|
"description": "List of all users that have maintained this userstyle in the past.",
|
||||||
"$ref": "#/$defs/collaborators"
|
"$ref": "#/$defs/collaborators"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"categories",
|
||||||
|
"readme",
|
||||||
|
"color",
|
||||||
|
"current-maintainers"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -173,6 +175,7 @@
|
|||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
+15
-33
@@ -188,9 +188,7 @@ userstyles:
|
|||||||
color: sky
|
color: sky
|
||||||
readme:
|
readme:
|
||||||
app-link: [https://anilist.co, https://anichart.net]
|
app-link: [https://anilist.co, https://anichart.net]
|
||||||
usage: |+
|
note: This theme also applies to [AniChart](https://anichart.net/), an extension of AniList.
|
||||||
> [!NOTE]
|
|
||||||
> This theme applies to [AniChart](https://anichart.net/) as well, which is an extension of AniList.
|
|
||||||
current-maintainers: [*anubisnekhet]
|
current-maintainers: [*anubisnekhet]
|
||||||
arch-wiki:
|
arch-wiki:
|
||||||
name: Arch Wiki
|
name: Arch Wiki
|
||||||
@@ -199,7 +197,7 @@ userstyles:
|
|||||||
color: blue
|
color: blue
|
||||||
readme:
|
readme:
|
||||||
app-link: https://wiki.archlinux.org
|
app-link: https://wiki.archlinux.org
|
||||||
usage: "Make sure to use the default **Light** theme"
|
note: "Make sure to use the default **Light** theme."
|
||||||
current-maintainers: []
|
current-maintainers: []
|
||||||
past-maintainers: [*genshibe]
|
past-maintainers: [*genshibe]
|
||||||
boringproxy:
|
boringproxy:
|
||||||
@@ -216,7 +214,7 @@ userstyles:
|
|||||||
color: peach
|
color: peach
|
||||||
readme:
|
readme:
|
||||||
app-link: https://search.brave.com
|
app-link: https://search.brave.com
|
||||||
usage: "Make sure to set the theme to either dark or light in Brave Search settings, as the automatic setting will not work."
|
note: "Make sure to set the theme to either dark or light in Brave Search settings, as the automatic setting will not work."
|
||||||
current-maintainers: [*ndsboy]
|
current-maintainers: [*ndsboy]
|
||||||
bsky:
|
bsky:
|
||||||
name: Bluesky Social
|
name: Bluesky Social
|
||||||
@@ -232,7 +230,7 @@ userstyles:
|
|||||||
color: green
|
color: green
|
||||||
readme:
|
readme:
|
||||||
app-link: https://bstats.org
|
app-link: https://bstats.org
|
||||||
usage: "Make sure to use the default **Teal** theme from the built-in color picker (located at the bottom of the page) for the best experience!"
|
note: "Make sure to use the default **Teal** theme from the built-in color picker (located at the bottom of the page) for the best experience!"
|
||||||
current-maintainers: [*rockquiet]
|
current-maintainers: [*rockquiet]
|
||||||
canvas-lms:
|
canvas-lms:
|
||||||
name: Canvas LMS
|
name: Canvas LMS
|
||||||
@@ -373,7 +371,7 @@ userstyles:
|
|||||||
icon: github
|
icon: github
|
||||||
color: text
|
color: text
|
||||||
readme:
|
readme:
|
||||||
usage: "Switch to a default GitHub light/dark theme via **Settings** > **Appearance** for the best experience!"
|
note: "Switch to a default GitHub light/dark theme via **Settings** > **Appearance** for the best experience!"
|
||||||
app-link: https://github.com
|
app-link: https://github.com
|
||||||
current-maintainers: [*uncenter]
|
current-maintainers: [*uncenter]
|
||||||
past-maintainers: [*unseen-ninja, *pocco81, *glowingumbreon]
|
past-maintainers: [*unseen-ninja, *pocco81, *glowingumbreon]
|
||||||
@@ -383,7 +381,7 @@ userstyles:
|
|||||||
icon: gmail
|
icon: gmail
|
||||||
color: peach
|
color: peach
|
||||||
readme:
|
readme:
|
||||||
usage: "Switch to the default dark theme via the **Settings** > **Themes** > **View all** for the best experience!"
|
note: "Switch to the default dark theme via the **Settings** > **Themes** > **View all** for the best experience!"
|
||||||
app-link: https://mail.google.com
|
app-link: https://mail.google.com
|
||||||
current-maintainers: [*uncenter]
|
current-maintainers: [*uncenter]
|
||||||
past-maintainers: [*isabelroses]
|
past-maintainers: [*isabelroses]
|
||||||
@@ -471,9 +469,7 @@ userstyles:
|
|||||||
color: pink
|
color: pink
|
||||||
readme:
|
readme:
|
||||||
app-link: https://holodex.net
|
app-link: https://holodex.net
|
||||||
usage: |+
|
note: Holodex's selected theme is ignored.
|
||||||
> [!NOTE]
|
|
||||||
> Holodex's selected theme is ignored.
|
|
||||||
current-maintainers: [*Guaxinim5573]
|
current-maintainers: [*Guaxinim5573]
|
||||||
home-manager-options-search:
|
home-manager-options-search:
|
||||||
name: Home Manager Options Search
|
name: Home Manager Options Search
|
||||||
@@ -622,7 +618,7 @@ userstyles:
|
|||||||
icon: lichess
|
icon: lichess
|
||||||
color: text
|
color: text
|
||||||
readme:
|
readme:
|
||||||
usage: "Switch to a default Lichess light/dark theme via **Username** > **Background** for the best experience!"
|
note: "Switch to a default Lichess light/dark theme via **Username** > **Background** for the best experience!"
|
||||||
app-link: https://lichess.org
|
app-link: https://lichess.org
|
||||||
current-maintainers: [*coopw1]
|
current-maintainers: [*coopw1]
|
||||||
lingva:
|
lingva:
|
||||||
@@ -707,9 +703,7 @@ userstyles:
|
|||||||
color: blue
|
color: blue
|
||||||
readme:
|
readme:
|
||||||
app-link: https://webmail.migadu.com
|
app-link: https://webmail.migadu.com
|
||||||
usage: |+
|
note: Set Migadu Webmail's built-in theme to 'Migadu' for the optimal experience.
|
||||||
> [!NOTE]
|
|
||||||
> Set Migadu Webmail's built-in theme to 'Migadu' for the optimal experience.
|
|
||||||
current-maintainers: [*uncenter]
|
current-maintainers: [*uncenter]
|
||||||
minesweeper:
|
minesweeper:
|
||||||
name: Minesweeper Online
|
name: Minesweeper Online
|
||||||
@@ -871,9 +865,7 @@ userstyles:
|
|||||||
color: mauve
|
color: mauve
|
||||||
readme:
|
readme:
|
||||||
app-link: https://proton.me
|
app-link: https://proton.me
|
||||||
usage: |+
|
note: Set Proton Mail's built-in theme to 'Snow' if you're using Latte or 'Carbon' if you're using the others.
|
||||||
> [!NOTE]
|
|
||||||
> Set Proton Mail's built-in theme to 'Snow' if you're using Latte or 'Carbon' if you're using the others.
|
|
||||||
current-maintainers: [*soya-daizu]
|
current-maintainers: [*soya-daizu]
|
||||||
pypi:
|
pypi:
|
||||||
name: PyPI
|
name: PyPI
|
||||||
@@ -1005,9 +997,7 @@ userstyles:
|
|||||||
color: sapphire
|
color: sapphire
|
||||||
readme:
|
readme:
|
||||||
app-link: https://syncthing.net
|
app-link: https://syncthing.net
|
||||||
usage: |+
|
note: This theme is designed to be used with the default WebGUI and default theme provided by Syncthing. This does not theme syncthing.net.
|
||||||
> [!NOTE]
|
|
||||||
> This theme is designed to be used with the default WebGUI and default theme provided by Syncthing. This does not theme syncthing.net.
|
|
||||||
current-maintainers: [*BlankParticle]
|
current-maintainers: [*BlankParticle]
|
||||||
tabnews:
|
tabnews:
|
||||||
name: TabNews
|
name: TabNews
|
||||||
@@ -1023,9 +1013,7 @@ userstyles:
|
|||||||
color: text
|
color: text
|
||||||
readme:
|
readme:
|
||||||
app-link: https://www.tldraw.com
|
app-link: https://www.tldraw.com
|
||||||
usage: |+
|
note: This theme only changes how the colors appear on the tldraw canvas. Exported graphics **will not be Catppuccin-themed**.
|
||||||
> [!NOTE]
|
|
||||||
> This theme only changes how the colors appear on the tldraw canvas. Exported graphics **will not be Catppuccin-themed**.
|
|
||||||
current-maintainers: [*genshibe, *uncenter]
|
current-maintainers: [*genshibe, *uncenter]
|
||||||
trinket:
|
trinket:
|
||||||
name: Trinket
|
name: Trinket
|
||||||
@@ -1041,9 +1029,7 @@ userstyles:
|
|||||||
color: maroon
|
color: maroon
|
||||||
readme:
|
readme:
|
||||||
app-link: https://tuta.com
|
app-link: https://tuta.com
|
||||||
usage: |+
|
note: Set Tuta's built-in theme to either **light** if you're using Latte or **dark** if you're using the others.
|
||||||
> [!NOTE]
|
|
||||||
> Set Tuta's built-in theme to either **light** if you're using Latte or **dark** if you're using the others.
|
|
||||||
current-maintainers: [*ryanccn]
|
current-maintainers: [*ryanccn]
|
||||||
twitch:
|
twitch:
|
||||||
name: Twitch
|
name: Twitch
|
||||||
@@ -1060,9 +1046,7 @@ userstyles:
|
|||||||
icon: twitter
|
icon: twitter
|
||||||
readme:
|
readme:
|
||||||
app-link: https://twitter.com
|
app-link: https://twitter.com
|
||||||
usage: |+
|
note: Set Twitter's built-in theme to **Lights out** with the blue accent.
|
||||||
> [!NOTE]
|
|
||||||
> Set Twitter's built-in theme to **Lights out** with the blue accent. Also requires the [:has()](https://developer.mozilla.org/en-US/docs/Web/CSS/:has) selector.
|
|
||||||
current-maintainers: [*watatomo]
|
current-maintainers: [*watatomo]
|
||||||
vercel:
|
vercel:
|
||||||
name: ["Vercel", "Next.js"]
|
name: ["Vercel", "Next.js"]
|
||||||
@@ -1071,9 +1055,7 @@ userstyles:
|
|||||||
color: text
|
color: text
|
||||||
readme:
|
readme:
|
||||||
app-link: [https://vercel.com, https://nextjs.org]
|
app-link: [https://vercel.com, https://nextjs.org]
|
||||||
usage: |+
|
note: This theme also applies to the [Next.js](https://nextjs.org/) website.
|
||||||
> [!NOTE]
|
|
||||||
> This theme also applies to the [Next.js](https://nextjs.org/) website.
|
|
||||||
current-maintainers: [*ryanccn, *Dandraghas]
|
current-maintainers: [*ryanccn, *Dandraghas]
|
||||||
vikunja:
|
vikunja:
|
||||||
name: Vikunja
|
name: Vikunja
|
||||||
|
|||||||
Reference in new issue
Block a user