diff --git a/mkDocs.sh b/mkDocs.sh deleted file mode 100755 index ea3b654..0000000 --- a/mkDocs.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -e - -# Generate documentation -python3.10 docs/inject_commands.py docs/docs/*.template - -# Copy documentation to target -rm -rf target/generated-docs -mkdir -p target/generated-docs - -cp -r docs/docs/* target/generated-docs diff --git a/scripts/mkdocs.sh b/scripts/mkdocs.sh new file mode 100755 index 0000000..431c213 --- /dev/null +++ b/scripts/mkdocs.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -e + +python3.10 docs/inject_commands.py docs/docs/*.template + +pip3.10 install mkdocs-material termynal +mkdocs build -f docs/mkdocs.yml -d ../target/docs diff --git a/scripts/release.sh b/scripts/release.sh index d75c8b3..a01641d 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -22,9 +22,14 @@ python3.10 -m arlas.cli.cli --config-file /tmp/arlas-cli-release.conf --version cp /tmp/arlas-cli-release.conf ./configuration.yaml git add configuration.yaml -# Generate and publish documentation -./mkDocs.sh -pip3.10 install mkdocs-material termynal +# Model +export PYTHONPATH=`pwd` +python3.10 -m arlas.cli.settings > docs/docs/model/model.schema.json +jsonschema2md -d docs/docs/model/ -o docs/docs/model/ +rm -r out +git add docs/docs/model + +./scripts/mkdocs.sh mkdocs gh-deploy -f docs/mkdocs.yml git add version.txt