From 2fbd2a20250acc44233658a726cd01e24e89e1dd Mon Sep 17 00:00:00 2001 From: Ross Buggins Date: Mon, 1 Jul 2024 10:58:33 +0100 Subject: [PATCH 1/2] root version file. --- docs/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Makefile b/docs/Makefile index f34f52e..d8058a4 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -31,6 +31,8 @@ version: (cd .. && make version); \ ver=$$(head -n 1 ../.version 2> /dev/null || echo unknown); \ echo "version: $$ver" > _config.version.yml; \ + echo "$(VERSION)" > .version; \ else \ echo "version: $(VERSION)" > _config.version.yml; \ + echo "$(VERSION)" > .version; \ fi From 97c9235d6276a71fbd772e997bb67fbc1868c8ff Mon Sep 17 00:00:00 2001 From: Ross Buggins Date: Mon, 1 Jul 2024 11:57:41 +0100 Subject: [PATCH 2/2] Add version json. --- .gitignore | 2 +- Makefile | 1 + docs/Makefile | 1 + docs/_config.yml | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) 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