Skip to content

Commit d1e49ef

Browse files
Take a Google Font API key
1 parent 7c24fcb commit d1e49ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/generate-google-font-list.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Include useful functions
44
source "$(dirname "$0")/wp-bin/wp-bin.sh"
55

6-
DATA=$(download "https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyBmZBJAajbmRv6fSyfN3Dh5iz5XkWqYjDs")
6+
read -s -p "Enter your Google Fonts API key: " key
7+
8+
DATA=$(download "https://www.googleapis.com/webfonts/v1/webfonts?key=$key")
79

810
echo ${DATA} | jq '.items | map({family, category, variants, subsets})' > "./resources/data/google-fonts.json"

0 commit comments

Comments
 (0)