From deb137963c0944593a5c564b85fdd740c97248cf Mon Sep 17 00:00:00 2001 From: Steve Springett Date: Sun, 7 Jan 2024 22:17:44 -0600 Subject: [PATCH] Initial commit for Ecma documentation generation Signed-off-by: Steve Springett --- docgen/ecma/gen.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 docgen/ecma/gen.sh diff --git a/docgen/ecma/gen.sh b/docgen/ecma/gen.sh new file mode 100755 index 00000000..534f3cab --- /dev/null +++ b/docgen/ecma/gen.sh @@ -0,0 +1,15 @@ +#!/bin/bash +rm -f -R docs temp out +mkdir -p docs temp +cp ../../schema/bom-1.6.schema.json temp +cp ../../schema/jsf-0.82.schema.json temp +cp ../../schema/spdx.schema.json temp + +# Check to see if jsonschema2md is executable and is in the path. If not, install jsonschema2md. +if ! [ -x "$(command -v jsonschema2md)" ]; then + npm install -g @adobe/jsonschema2md +fi + +echo Generating Ecma Documentation +jsonschema2md -d temp -o docs +rm -f -R temp out