From 2072ff271799fce103140618cfe8e401f33341f9 Mon Sep 17 00:00:00 2001 From: Dave Kerr Date: Mon, 20 May 2024 22:32:18 +0100 Subject: [PATCH] fix: consistent samples path (#334) --- docs/xx-appendices/01-installing-samples/index.mdx | 4 ++-- makefile | 8 ++++---- scripts/build-samples.sh | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/xx-appendices/01-installing-samples/index.mdx b/docs/xx-appendices/01-installing-samples/index.mdx index 6c2d5fe5..b70a42f6 100644 --- a/docs/xx-appendices/01-installing-samples/index.mdx +++ b/docs/xx-appendices/01-installing-samples/index.mdx @@ -23,11 +23,11 @@ It will also allow you to overwrite the samples, update or recreate them if you If you would prefer to manually download and unzip the samples, perhaps so that you can install them to a different location, you can download them as a zip file from: -- https://effective-shell.com/downloads/effective-shell-samples.zip +- https://effective-shell.com/downloads/effective-shell.zip You can also download them as a tarball from: -- https://effective-shell.com/downloads/effective-shell-samples.tar.gz +- https://effective-shell.com/downloads/effective-shell.tar.gz ## Deleting the Samples diff --git a/makefile b/makefile index 0c3e2759..f6005ba9 100644 --- a/makefile +++ b/makefile @@ -27,10 +27,10 @@ typescript-check: # Check typescript types. build: # Build the site and artifacts. mkdir -p ./static/downloads ./scripts/build-samples.sh - cp ./artifacts/effective-shell-samples.zip ./static/downloads/effective-shell-samples.zip - cp ./artifacts/effective-shell-samples.tar.gz ./static/downloads/effective-shell-samples.tar.gz - test -e ./static/downloads/effective-shell-samples.zip - test -e ./static/downloads/effective-shell-samples.tar.gz + cp ./artifacts/effective-shell.zip ./static/downloads/effective-shell.zip + cp ./artifacts/effective-shell.tar.gz ./static/downloads/effective-shell.tar.gz + test -e ./static/downloads/effective-shell.zip + test -e ./static/downloads/effective-shell.tar.gz npm ci --legacy-peer-deps && npm run build # Create the summary structure in word format, easier to share. diff --git a/scripts/build-samples.sh b/scripts/build-samples.sh index b7b1e8ed..4cd577a8 100755 --- a/scripts/build-samples.sh +++ b/scripts/build-samples.sh @@ -47,5 +47,5 @@ mkdir -p ./artifacts/effective-shell/repositories ) # Zip up and tar up the samples -(cd ./artifacts && zip -r ./effective-shell-samples.zip ./effective-shell) -tar czf ./artifacts/effective-shell-samples.tar.gz -C ./artifacts/effective-shell . +(cd ./artifacts && zip -r ./effective-shell.zip ./effective-shell) +tar czf ./artifacts/effective-shell.tar.gz -C ./artifacts/effective-shell .