From 8df744b044f347b94a49612755f5d59e89d6fc73 Mon Sep 17 00:00:00 2001 From: Lars Windolf Date: Thu, 11 Jan 2024 00:08:04 +0100 Subject: [PATCH] Fix JSON output. --- build.sh | 2 +- cheat-sheets.json | 38 +++++++++++++++++++++----------------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/build.sh b/build.sh index 109613a6f..8edc57ca5 100755 --- a/build.sh +++ b/build.sh @@ -36,7 +36,7 @@ cheat_sheets() { update(name); } - console.log(cheatsheets); + console.log(JSON.stringify(cheatsheets)); EOT ) | node >cheat-sheets.json.new && mv cheat-sheets.json.new cheat-sheets.json } diff --git a/cheat-sheets.json b/cheat-sheets.json index 17a1111aa..eaa8e17d6 100644 --- a/cheat-sheets.json +++ b/cheat-sheets.json @@ -1,23 +1,27 @@ + { - 'Cheat Sheets': { - github: 'lwindolf/lzone-cheat-sheets', - category: 'Cheat Sheets', - filePattern: '^cheat-sheet/(.+)\\.md$' + "Cheat Sheets": { + "github": "lwindolf/lzone-cheat-sheets", + "category": "Cheat Sheets", + "filePattern": "^cheat-sheet/(.+)\\.md$" }, - Examples: { - github: 'lwindolf/lzone-cheat-sheets', - category: 'Cheat Sheets', - filePattern: '^examples/(.+)\\.md$' + "Examples": { + "github": "lwindolf/lzone-cheat-sheets", + "category": "Cheat Sheets", + "filePattern": "^examples/(.+)\\.md$" }, - 'Visual Ops': { - github: 'lwindolf/lzone-cheat-sheets', - category: 'SRE', - filePattern: '^visual-ops/(.+)\\.md$' + "Visual Ops": { + "github": "lwindolf/lzone-cheat-sheets", + "category": "SRE", + "filePattern": "^visual-ops/(.+)\\.md$" }, - 'Runbooks 🐛': { - github: 'lwindolf/lzone-cheat-sheets', - category: 'SRE', - filePattern: '^runbooks/(.+)\\.md$' + "Runbooks 🐛": { + "github": "lwindolf/lzone-cheat-sheets", + "category": "SRE", + "filePattern": "^runbooks/(.+)\\.md$" }, - 'Unicorn Arcology': { github: 'lwindolf/unicorn-arcology', category: 'Architecture' } + "Unicorn Arcology": { + "github": "lwindolf/unicorn-arcology", + "category": "Architecture" + } }