Skip to content

Commit

Permalink
Initial commit for Ecma documentation generation
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Springett <[email protected]>
  • Loading branch information
stevespringett committed Jan 8, 2024
1 parent 0044906 commit deb1379
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docgen/ecma/gen.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit deb1379

Please sign in to comment.