From 70bc47bb4ad1a6ece5d557be8388307684d0d763 Mon Sep 17 00:00:00 2001 From: Benjamin DENEUX Date: Wed, 19 Oct 2022 18:37:40 +0200 Subject: [PATCH] feat(docs): check if jsonschema2md is present --- Makefile.toml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile.toml b/Makefile.toml index 96200a3f..e307cc0f 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -99,14 +99,14 @@ dependencies = ["schema"] script = ''' DOCS_FOLDER=docs SCHEMA_FOLDER=schema -#echo "šŸ”Ž Checking jsonschema2md installed..." -#if ! command -v jsonschema2md &> /dev/null -#then -# echo "\nāŒ jsonschema2md could not be found" -# echo " Consider installing jsonschema2md to generate documentation.\n" -# echo "ļ¼ž \`npm install -g @adobe/jsonschema2md\`\n\n" -# exit 1 -#fi +echo "šŸ”Ž Checking jsonschema2md installed..." +if ! which jsonschema2md >/dev/null; +then + echo "\nāŒ jsonschema2md could not be found" + echo " Consider installing jsonschema2md to generate documentation.\n" + echo "ļ¼ž \`npm install -g @adobe/jsonschema2md\`\n\n" + exit 1 +fi mkdir -p $SCHEMA_FOLDER find contracts -type f -name '*.json' \