diff --git a/.gitignore b/.gitignore index 3e1795d..b8de6ee 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ *vulnerabilities*report*.json *report*json.zip .version - +version.json *.code-workspace !project.code-workspace diff --git a/Makefile b/Makefile index a6694b3..ea70e95 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,7 @@ config:: _install-dependencies version # Configure development environment (main version: rm -f .version make version-create-effective-file dir=. + echo "{ \"schemaVersion\": 1, \"label\": \"version\", \"message\": \"$$(head -n 1 .version 2> /dev/null || echo unknown)\", \"color\": \"orange\" }" > version.json # ============================================================================== ${VERBOSE}.SILENT: \ diff --git a/docs/Makefile b/docs/Makefile index d8058a4..2aae8c4 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -36,3 +36,4 @@ version: echo "version: $(VERSION)" > _config.version.yml; \ echo "$(VERSION)" > .version; \ fi + echo "{ \"schemaVersion\": 1, \"label\": \"version\", \"message\": \"$$(head -n 1 .version 2> /dev/null || echo unknown)\", \"color\": \"orange\" }" > version.json diff --git a/docs/_config.yml b/docs/_config.yml index fd33efc..23ef355 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -92,7 +92,7 @@ callouts: include: - .version - + - version.json exclude: - Makefile - package-lock.json