1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-27 17:00:54 +01:00

Fixed Google Fonts schema

This commit is contained in:
squidfunk 2022-01-30 15:10:51 +01:00
parent 6ac2da115d
commit 51f27bf959
2 changed files with 1 additions and 8 deletions

View File

@ -7045,13 +7045,6 @@
"enum": [ "enum": [
"Zilla Slab Highlight" "Zilla Slab Highlight"
] ]
},
{
"title": "default",
"markdownDescription": "https://fonts.google.com/specimen/default",
"enum": [
"default"
]
} }
] ]
} }

View File

@ -295,7 +295,7 @@ const schema$ = merge(
/* Compute fonts schema */ /* Compute fonts schema */
defer(() => import("google-fonts-complete")) defer(() => import("google-fonts-complete"))
.pipe( .pipe(
map(Object.keys), map(({ default: fonts }) => Object.keys(fonts)),
map(fonts => ({ map(fonts => ({
"$schema": "https://json-schema.org/draft-07/schema", "$schema": "https://json-schema.org/draft-07/schema",
"title": "Google Fonts", "title": "Google Fonts",