fix(themes): yarn icon for NerdFonts 3.x update

Co-authored-by: Mateusz Bajorek <mab@viabill.com>
This commit is contained in:
Mateusz Bajorek 2023-10-28 09:56:01 +02:00 committed by GitHub
parent e87a9b9f07
commit 84f2c9a1eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ func (n *Node) loadContext() {
return
}
if n.language.env.HasFiles("yarn.lock") {
n.PackageManagerIcon = n.language.props.GetString(YarnIcon, "\uF61A")
n.PackageManagerIcon = n.language.props.GetString(YarnIcon, "\uF011B")
return
}
if n.language.env.HasFiles("package-lock.json") || n.language.env.HasFiles("package.json") {

View file

@ -1500,7 +1500,7 @@
"type": "string",
"title": "Yarn Icon",
"description": "Icon/text to use for Yarn",
"default": " \uF61A"
"default": " \uF011B"
},
"npm_icon": {
"type": "string",

View file

@ -33,7 +33,7 @@ import Config from "@site/src/components/Config.js";
| `display_mode` | `string` | <ul><li>`always`: The segment is always displayed</li><li>`files`: The segment is only displayed when one of the following files is present (**default**):<ul><li>`*.js`</li><li>`*.ts`</li><li>`package.json`</li><li>`.nvmrc`</li><li>`pnpm-workspace.yaml`</li><li>`.pnpmfile.cjs`</li><li>`.npmrc`</li><li>`.vue`</li></ul></li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `fetch_package_manager` | `boolean` | define if the current project uses Yarn or NPM - defaults to `false` |
| `yarn_icon` | `string` | the icon/text to display when using Yarn - defaults to ` \uF61A` |
| `yarn_icon` | `string` | the icon/text to display when using Yarn - defaults to ` \uF011B` |
| `npm_icon` | `string` | the icon/text to display when using NPM - defaults to ` \uE71E` |
## Template ([info][templates])