Skip to content

Commit

Permalink
Add makefile targets for building documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Sep 25, 2023
1 parent 1ed17f2 commit c65ad81
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,17 @@ install-docker-extension : build-docker-extension
update-docker-extension : build-docker-extension
$(MAKE) -C docker-extension update-extension REPOSITORY=$(IMAGE_REPOSITORY) TAG=$(PACKAGE_VERSION)

project-docs/venv :
python3 -m venv project-docs/venv
project-docs/venv/bin/pip install -r project-docs/requirements.txt

build-project-docs : project-docs/venv
source project-docs/venv/bin/activate && make -C project-docs html

open-project-docs :
open project-docs/_build/html/index.html || \
xdg-open project-docs/_build/html/index.html

deploy-workshop:
kubectl apply -f https://github.com/vmware-tanzu-labs/lab-k8s-fundamentals/releases/download/5.0/workshop.yaml
kubectl apply -f https://github.com/vmware-tanzu-labs/lab-k8s-fundamentals/releases/download/5.0/trainingportal.yaml
Expand Down Expand Up @@ -264,6 +275,7 @@ prune-builds:
rm -rf training-portal/venv
rm -rf client-programs/bin
rm -rf client-programs/pkg/renderer/files
rm -rf project-docs/_build

prune-registry:
docker exec educates-registry registry garbage-collect /etc/docker/registry/config.yml --delete-untagged=true
Expand Down

0 comments on commit c65ad81

Please sign in to comment.