Skip to content

Commit

Permalink
feat(docs): check if jsonschema2md is present
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Oct 19, 2022
1 parent c9b61e8 commit 70bc47b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down

0 comments on commit 70bc47b

Please sign in to comment.