Skip to content

Merge main into staging #374

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
Sep 17, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Render docs site
run: |
cd site
quarto render &> render_errors.log || {
quarto render --profile production &> render_errors.log || {
echo "Quarto render failed immediately";
cat render_errors.log;
exit 1;
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Render docs site
run: |
cd site
quarto render &> render_errors.log || {
quarto render --profile staging &> render_errors.log || {
echo "Quarto render failed immediately";
cat render_errors.log;
exit 1;
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-docs-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Render site
run: |
cd site
quarto render &> render_errors.log || {
quarto render --profile development &> render_errors.log || {
echo "Quarto render failed immediately";
cat render_errors.log;
exit 1;
Expand Down
10 changes: 5 additions & 5 deletions site/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ get-source: clean clone notebooks python-docs test-descriptions

# Get all source files
docs-site: clean clone notebooks python-docs test-descriptions
quarto render
quarto render --profile development
# quarto render notebooks/how_to/explore_tests.ipynb --execute
# quarto render notebooks/how_to/explore_test_suites.ipynb --execute

Expand All @@ -88,12 +88,12 @@ deploy-demo:
echo "You're not on the docs-demo branch, no action taken."; \
else \
echo "\nDeploying docs-demo site ..."; \
quarto render && aws s3 sync ./_site s3://docs-ci-cd-demo/site/ && aws cloudfront create-invalidation --distribution-id E38AINJY5CYN6P --paths "/*" --no-cli-pager > /dev/null; \
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 && 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;
@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;
@echo "\nDeployed to https://docs-demo.vm.validmind.ai/pr_previews/$(GIT_BRANCH)/index.html"

# Delete PR branch on https://docs-demo.vm.validmind.ai/
Expand All @@ -107,7 +107,7 @@ deploy-prod:
echo "You're not on the prod branch, no action taken."; \
else \
echo "\nDeploying prod site ..."; \
quarto render && aws s3 sync ./_site s3://docs-ci-cd-prod/site/ --delete && aws cloudfront create-invalidation --distribution-id E2I9R40IH01NW3 --paths "/*" --no-cli-pager > /dev/null; \
quarto render --profile production && aws s3 sync ./_site s3://docs-ci-cd-prod/site/ --delete && aws cloudfront create-invalidation --distribution-id E2I9R40IH01NW3 --paths "/*" --no-cli-pager > /dev/null; \
fi

# Deployment to https://docs.validmind.ai/
Expand All @@ -117,7 +117,7 @@ deploy-staging:
echo "You're not on the staging branch, no action taken."; \
else \
echo "\nDeploying staging site ..."; \
quarto render && aws s3 sync ./_site s3://docs-ci-cd-staging/site/ --delete && aws cloudfront create-invalidation --distribution-id E2FB73KGY63MV6 --paths "/*" --no-cli-pager > /dev/null; \
quarto render --profile staging && aws s3 sync ./_site s3://docs-ci-cd-staging/site/ --delete && aws cloudfront create-invalidation --distribution-id E2FB73KGY63MV6 --paths "/*" --no-cli-pager > /dev/null; \
fi

# Generate release notes
Expand Down
4 changes: 4 additions & 0 deletions site/_quarto-development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
format:
html:
include-in-header:
- environments/heap-development.html
4 changes: 4 additions & 0 deletions site/_quarto-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
format:
html:
include-in-header:
- environments/heap-production.html
4 changes: 4 additions & 0 deletions site/_quarto-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
format:
html:
include-in-header:
- environments/heap-staging.html
4 changes: 4 additions & 0 deletions site/environments/heap-development.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<script type="text/javascript">
window.heapReadyCb=window.heapReadyCb||[],window.heap=window.heap||[],heap.load=function(e,t){window.heap.envId=e,window.heap.clientConfig=t=t||{},window.heap.clientConfig.shouldFetchServerConfig=!1;var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://cdn.us.heap-api.com/config/"+e+"/heap_config.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(a,r);var n=["init","startTracking","stopTracking","track","resetIdentity","identify","getSessionId","getUserId","getIdentity","addUserProperties","addEventProperties","removeEventProperty","clearEventProperties","addAccountProperties","addAdapter","addTransformer","addTransformerFn","onReady","addPageviewProperties","removePageviewProperty","clearPageviewProperties","trackPageview"],i=function(e){return function(){var t=Array.prototype.slice.call(arguments,0);window.heapReadyCb.push({name:e,fn:function(){heap[e]&&heap[e].apply(heap,t)}})}};for(var p=0;p<n.length;p++)heap[n[p]]=i(n[p])};
heap.load("3544910167");
</script>
4 changes: 4 additions & 0 deletions site/environments/heap-production.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<script type="text/javascript">
window.heapReadyCb=window.heapReadyCb||[],window.heap=window.heap||[],heap.load=function(e,t){window.heap.envId=e,window.heap.clientConfig=t=t||{},window.heap.clientConfig.shouldFetchServerConfig=!1;var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://cdn.us.heap-api.com/config/"+e+"/heap_config.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(a,r);var n=["init","startTracking","stopTracking","track","resetIdentity","identify","getSessionId","getUserId","getIdentity","addUserProperties","addEventProperties","removeEventProperty","clearEventProperties","addAccountProperties","addAdapter","addTransformer","addTransformerFn","onReady","addPageviewProperties","removePageviewProperty","clearPageviewProperties","trackPageview"],i=function(e){return function(){var t=Array.prototype.slice.call(arguments,0);window.heapReadyCb.push({name:e,fn:function(){heap[e]&&heap[e].apply(heap,t)}})}};for(var p=0;p<n.length;p++)heap[n[p]]=i(n[p])};
heap.load("2282992095");
</script>
4 changes: 4 additions & 0 deletions site/environments/heap-staging.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<script type="text/javascript">
window.heapReadyCb=window.heapReadyCb||[],window.heap=window.heap||[],heap.load=function(e,t){window.heap.envId=e,window.heap.clientConfig=t=t||{},window.heap.clientConfig.shouldFetchServerConfig=!1;var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://cdn.us.heap-api.com/config/"+e+"/heap_config.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(a,r);var n=["init","startTracking","stopTracking","track","resetIdentity","identify","getSessionId","getUserId","getIdentity","addUserProperties","addEventProperties","removeEventProperty","clearEventProperties","addAccountProperties","addAdapter","addTransformer","addTransformerFn","onReady","addPageviewProperties","removePageviewProperty","clearPageviewProperties","trackPageview"],i=function(e){return function(){var t=Array.prototype.slice.call(arguments,0);window.heapReadyCb.push({name:e,fn:function(){heap[e]&&heap[e].apply(heap,t)}})}};for(var p=0;p<n.length;p++)heap[n[p]]=i(n[p])};
heap.load("3193732798");
</script>