From 51f27bf959b8cdce351d2ad6678273fcec04abcd Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 30 Jan 2022 15:10:51 +0100 Subject: [PATCH] Fixed Google Fonts schema --- docs/schema/assets/fonts.json | 7 ------- tools/build/index.ts | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/docs/schema/assets/fonts.json b/docs/schema/assets/fonts.json index 5cd66a8db..7953c29bb 100644 --- a/docs/schema/assets/fonts.json +++ b/docs/schema/assets/fonts.json @@ -7045,13 +7045,6 @@ "enum": [ "Zilla Slab Highlight" ] - }, - { - "title": "default", - "markdownDescription": "https://fonts.google.com/specimen/default", - "enum": [ - "default" - ] } ] } \ No newline at end of file diff --git a/tools/build/index.ts b/tools/build/index.ts index edb11d820..34de24757 100644 --- a/tools/build/index.ts +++ b/tools/build/index.ts @@ -295,7 +295,7 @@ const schema$ = merge( /* Compute fonts schema */ defer(() => import("google-fonts-complete")) .pipe( - map(Object.keys), + map(({ default: fonts }) => Object.keys(fonts)), map(fonts => ({ "$schema": "https://json-schema.org/draft-07/schema", "title": "Google Fonts",