Skip to content

Merge main into staging #679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions site/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PROFILE := exe-demo
FILE_PATH := notebooks/tutorials/intro_for_model_developers_EXECUTED.ipynb

# Define .PHONY target for help section
.PHONY: help clean clone notebooks python-docs docs-site deploy-demo deploy-demo-branch delete-demo-branch deploy-prod deploy-staging release-notes execute docker-build docker-serve
.PHONY: help clean clone notebooks python-docs docs-site deploy-demo-branch delete-demo-branch deploy-prod deploy-staging release-notes execute docker-build docker-serve

# Help section
help:
Expand All @@ -21,7 +21,6 @@ help:
@echo " python-docs Copy the Python library docs into _site/validmind"
@echo " get-source Get all source files (clean, clone, notebooks, python-docs)"
@echo " docs-site Get all source files and render the docs site with Quarto"
@echo " deploy-demo Deploy docs demo site to s3://docs-ci-cd-demo/site/"
@echo " deploy-demo-branch Deploy docs demo site to s3://docs-ci-cd-demo/site/pr_previews/$(GIT_BRANCH)/"
@echo " delete-demo-branch Delete docs demo site in s3://docs-ci-cd-demo/site/pr_previews/$(GIT_BRANCH)/"
@echo " deploy-prod Deploy docs prod site to s3://docs-ci-cd-prod/site/"
Expand Down Expand Up @@ -94,15 +93,6 @@ docs-site-lite: get-source
@echo "\nRendering the static HTML site ..."
quarto render --profile production

# Deployment to https://docs-demo.vm.validmind.ai/
deploy-demo:
@if [ "`git rev-parse --abbrev-ref HEAD`" != "docs-demo" ]; then \
echo "You're not on the docs-demo branch, no action taken."; \
else \
echo "\nDeploying docs-demo site ..."; \
quarto render --profile development && aws s3 sync ./_site s3://docs-ci-cd-demo/site/ && aws cloudfront create-invalidation --distribution-id E38AINJY5CYN6P --paths "/*" --no-cli-pager > /dev/null; \
fi

# Deploy PR branch to https://docs-demo.vm.validmind.ai/
deploy-demo-branch:
@quarto render --profile development && aws s3 sync ./_site s3://docs-ci-cd-demo/site/pr_previews/$(GIT_BRANCH)/ --delete && aws cloudfront create-invalidation --distribution-id E38AINJY5CYN6P --paths "/*" --no-cli-pager > /dev/null;
Expand Down