Skip to content

Commit 3ac3f99

Browse files
committed
demo-generate addition in makefile
1 parent 23b74ea commit 3ac3f99

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,18 @@ generate-testdata: ## Update/generate the testdata in $GOPATH/src/sigs.k8s.io/ku
8484
rm -rf testdata/
8585
./test/testdata/generate.sh
8686

87+
.PHONY: demo-generate
88+
demo-generate: ## Generate a new demo recording using Asciinema
89+
@if ! command -v asciinema &> /dev/null; then \
90+
echo "asciinema is not installed. Please install it first:"; \
91+
echo " https://asciinema.org/docs/installation"; \
92+
exit 1; \
93+
fi
94+
@echo "Generating new demo recording..."
95+
@cd scripts/demo && ./run.sh
96+
@echo "Demo recording completed. The cast file is saved in scripts/demo/demo.cast"
97+
@echo "You can now upload it to asciinema.org or embed it in the README"
98+
8799
.PHONY: generate-docs
88100
generate-docs: ## Update/generate the docs
89101
./hack/docs/generate.sh

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Follow the [instructions](https://book.kubebuilder.io/quick-start.html#installat
4747

4848
See the [Getting Started](https://book.kubebuilder.io/quick-start.html) documentation.
4949

50-
![Quick Start](docs/gif/kb-demo.v3.11.1.svg)
50+
<script id="asciicast-id" src="https://asciinema.org/a/id.js" async></script>
5151

5252
Also, ensure that you check out the [Deploy Image](./docs/book/src/plugins/available/deploy-image-plugin-v1-alpha.md)
5353
Plugin. This plugin allows users to scaffold API/Controllers to deploy and manage an

0 commit comments

Comments
 (0)