Skip to content

Publishing changes from PR #359 onwards #421

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 66 commits into from
Sep 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
d69a03f
Add staging docs site deploy and update prod deploy (#309)
nrichers Sep 4, 2024
e6f2ae9
Merging latest changes from main into staging
github-actions[bot] Sep 4, 2024
4beb606
Merge pull request #327 from validmind/update-staging-10710813001
github-actions[bot] Sep 4, 2024
bc0855d
Delete site/_site directory in staging (#326)
nrichers Sep 5, 2024
b99ec06
Revamped Model Activity docs (#315)
validbeck Sep 6, 2024
0474879
Merging latest changes from main into staging
github-actions[bot] Sep 6, 2024
f9d04e3
Release notes for Sept 9 2024 (#329)
validbeck Sep 6, 2024
0d85544
Merge pull request #332 from validmind/update-staging-10730152504
github-actions[bot] Sep 6, 2024
2e442f1
Merging latest changes from main into staging
github-actions[bot] Sep 6, 2024
5805f80
Merge pull request #333 from validmind/update-staging-10730156583
github-actions[bot] Sep 6, 2024
e9366ca
Only running the PR previews bot when a PR is ready for review (#330)
validbeck Sep 6, 2024
b687ac9
Merging latest changes from main into staging
github-actions[bot] Sep 6, 2024
548d53e
Merge pull request #335 from validmind/update-staging-10743615533
github-actions[bot] Sep 6, 2024
0eaad2a
Modify make python-docs to support rendering online (#336)
nrichers Sep 6, 2024
0f78590
Merging latest changes from main into staging
github-actions[bot] Sep 6, 2024
2e2f0f0
Merge pull request #337 from validmind/update-staging-10745632571
github-actions[bot] Sep 6, 2024
5a62177
Delete .github/workflows/render-site.yaml (#344)
nrichers Sep 9, 2024
cd115ca
Investigate listing page issue (#334)
nrichers Sep 9, 2024
b2987ff
Merging latest changes from main into staging
github-actions[bot] Sep 9, 2024
dedc4ee
Merge pull request #345 from validmind/update-staging-10779461419
github-actions[bot] Sep 9, 2024
d438eea
Fix Heap embeds for docs sites — `main` branch (#339)
nrichers Sep 9, 2024
a656767
Merging latest changes from main into staging
github-actions[bot] Sep 9, 2024
62a3b52
Merge pull request #346 from validmind/update-staging-10779486310
github-actions[bot] Sep 9, 2024
e7ab053
Fix heap embeds for docs sites — staging branch (#340)
nrichers Sep 9, 2024
eb73a8f
Doc: Archive and delete inventory models (#351)
validbeck Sep 12, 2024
a1c442b
Merging latest changes from main into staging
github-actions[bot] Sep 12, 2024
c092a0e
Merge pull request #353 from validmind/update-staging-10837056322
github-actions[bot] Sep 12, 2024
f67e76d
Revamped model findings docs for attachments (#352)
validbeck Sep 12, 2024
0a663e6
Merging latest changes from main into staging
github-actions[bot] Sep 12, 2024
5effc44
Merge pull request #354 from validmind/update-staging-10837149819
github-actions[bot] Sep 12, 2024
3012849
Pulling in latest changes from PR184 (#350)
validbeck Sep 12, 2024
5174a56
Merging latest changes from main into staging
github-actions[bot] Sep 12, 2024
c597efd
Merge pull request #356 from validmind/update-staging-10838565124
github-actions[bot] Sep 12, 2024
f1dc81b
Delete finding docs update (#355)
validbeck Sep 12, 2024
f2a594e
Merging latest changes from main into staging
github-actions[bot] Sep 12, 2024
f1be162
Merge pull request #357 from validmind/update-staging-10839075611
github-actions[bot] Sep 12, 2024
f7b0fac
Moved activity to model inventory & adjusted pages (#358)
validbeck Sep 12, 2024
cd1fd93
Merging latest changes from main into staging
github-actions[bot] Sep 12, 2024
0c4a25d
Merge pull request #359 from validmind/update-staging-10840017604
github-actions[bot] Sep 12, 2024
29cbbe1
Training updates related to creating videos (#227)
nrichers Sep 12, 2024
0237d86
Merging latest changes from main into staging
github-actions[bot] Sep 12, 2024
fe7627f
Merge pull request #360 from validmind/update-staging-10840290103
github-actions[bot] Sep 12, 2024
99437fd
Clarified style guidelines for links & training (#363)
validbeck Sep 13, 2024
88ac0f4
Merging latest changes from main into staging
github-actions[bot] Sep 13, 2024
d05a9eb
Merge pull request #364 from validmind/update-staging-10857170672
github-actions[bot] Sep 13, 2024
2b70478
Adding new ValidMind colors & logo (#366)
nrichers Sep 16, 2024
583556a
Merging latest changes from main into staging
github-actions[bot] Sep 16, 2024
e9fc4da
Merge pull request #367 from validmind/update-staging-10890697295
github-actions[bot] Sep 16, 2024
a727cee
Update workflows to trigger on workflow_run (#368)
nrichers Sep 16, 2024
b749c3f
Merging latest changes from main into staging
github-actions[bot] Sep 16, 2024
7c4736a
Merge pull request #370 from validmind/update-staging-10893066487
github-actions[bot] Sep 16, 2024
f8c77eb
Update README.md (#369)
nrichers Sep 16, 2024
df98f9f
Merging latest changes from main into staging
github-actions[bot] Sep 16, 2024
150248a
Merge pull request #371 from validmind/update-staging-10893081950
github-actions[bot] Sep 16, 2024
10e2fc6
Use Quarto profiles for rendering the site on GitHub and locally (#372)
nrichers Sep 17, 2024
10d99cd
Merging latest changes from main into staging
github-actions[bot] Sep 17, 2024
892f784
Merge pull request #374 from validmind/update-staging-10908524111
github-actions[bot] Sep 17, 2024
bd6957b
Docs site audit accuracy tone review — Guides p1 (#377)
validbeck Sep 17, 2024
273fd3a
Merging latest changes from main into staging
github-actions[bot] Sep 17, 2024
a5f62dc
Merge pull request #384 from validmind/update-staging-10911746021
github-actions[bot] Sep 17, 2024
73055e8
Revamped View reports (#409)
validbeck Sep 19, 2024
b73f018
Merging latest changes from main into staging
github-actions[bot] Sep 19, 2024
28a3dbd
Merge pull request #411 from validmind/update-staging-10948808034
github-actions[bot] Sep 19, 2024
3672d1f
Updated Work with content blocks (#390)
validbeck Sep 19, 2024
d4324fc
Make training slides more photogenic (#412)
nrichers Sep 20, 2024
60d6557
Documented user registration process (#410)
validbeck Sep 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/ai_explain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ permissions:

on:
pull_request:
types: [opened, synchronize]
types: [review_requested]

jobs:
explain-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Check out repository
uses: actions/checkout@v3

- name: Set up Python
Expand All @@ -32,4 +32,4 @@ jobs:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REF: ${{ github.ref }}
run: python .github/workflows/ai_explain.py
run: python .github/workflows/ai_explain.py
2 changes: 1 addition & 1 deletion .github/workflows/delete-pr-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
run: aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} && aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} && aws configure set default.region us-east-1

- name: Delete PR preview
run: aws s3 rm s3://${{ vars.S3_BUCKET_DEMO }}/site/pr_previews/${{ github.head_ref }}/ --recursive && aws cloudfront create-invalidation --distribution-id E38AINJY5CYN6P --paths "/*" --no-cli-pager > /dev/null
run: aws s3 rm s3://docs-ci-cd-demo/site/pr_previews/${{ github.head_ref }}/ --recursive && aws cloudfront create-invalidation --distribution-id E38AINJY5CYN6P --paths "/*" --no-cli-pager > /dev/null
37 changes: 30 additions & 7 deletions .github/workflows/deploy-docs-prod.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,47 @@
# Deploy our docs site to S3 whenever we push a commit to the main branch

name: Deploy to S3 production bucket
name: Deploy docs site to production

on:
push:
branches:
- prod
workflow_run:
workflows: ["Merge staging into prod"]
types:
- completed
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
- name: Check out repository
uses: actions/checkout@v2

- name: Get latest Quarto release URL
id: get-quarto-url
run: |
API_URL="https://api.github.com/repos/quarto-dev/quarto-cli/releases/latest"
DOWNLOAD_URL=$(curl -s $API_URL | jq -r '.assets[] | select(.name | endswith("linux-amd64.deb")).browser_download_url')
echo "DOWNLOAD_URL=$DOWNLOAD_URL" >> $GITHUB_ENV

- name: Download and install Quarto
run: |
wget ${{ env.DOWNLOAD_URL }} -O quarto-latest-linux-amd64.deb
sudo dpkg -i quarto-latest-linux-amd64.deb

- name: Render docs site
run: |
cd site
quarto render --profile production &> render_errors.log || {
echo "Quarto render failed immediately";
cat render_errors.log;
exit 1;
}

# Prod bucket is in us-east-1
- name: Configure AWS credentials
run: aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} && aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} && aws configure set default.region us-east-1

- name: Sync to S3
run:
aws s3 sync site/_site s3://${{ vars.S3_BUCKET_PROD }}/site --delete && aws cloudfront create-invalidation --distribution-id E2I9R40IH01NW3 --paths "/*" --no-cli-pager
- name: Deploy docs site
run: aws s3 sync site/_site s3://docs-ci-cd-prod/site --delete && aws cloudfront create-invalidation --distribution-id E2I9R40IH01NW3 --paths "/*" --no-cli-pager
47 changes: 47 additions & 0 deletions .github/workflows/deploy-docs-staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy docs site to staging

on:
push:
branches:
- staging
workflow_run:
workflows: ["Merge main into staging"]
types:
- completed
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Get latest Quarto release URL
id: get-quarto-url
run: |
API_URL="https://api.github.com/repos/quarto-dev/quarto-cli/releases/latest"
DOWNLOAD_URL=$(curl -s $API_URL | jq -r '.assets[] | select(.name | endswith("linux-amd64.deb")).browser_download_url')
echo "DOWNLOAD_URL=$DOWNLOAD_URL" >> $GITHUB_ENV

- name: Download and install Quarto
run: |
wget ${{ env.DOWNLOAD_URL }} -O quarto-latest-linux-amd64.deb
sudo dpkg -i quarto-latest-linux-amd64.deb

- name: Render docs site
run: |
cd site
quarto render --profile staging &> render_errors.log || {
echo "Quarto render failed immediately";
cat render_errors.log;
exit 1;
}

# Staging bucket is in us-west-2
- name: Configure AWS credentials
run: aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID_STAGING }} && aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY_STAGING }} && aws configure set default.region us-west-2

- name: Deploy docs site
run: aws s3 sync site/_site s3://docs-ci-cd-staging/site --delete && aws cloudfront create-invalidation --distribution-id E2FB73KGY63MV6 --paths "/*" --no-cli-pager
2 changes: 1 addition & 1 deletion .github/workflows/release_notes_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: github.event.pull_request.draft == false

steps:
- name: Checkout repository
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Python
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/render-site.yaml

This file was deleted.

9 changes: 5 additions & 4 deletions .github/workflows/validate-docs-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
if: github.event.pull_request.draft == false

steps:
- name: Checkout repository
- name: Check out repository
uses: actions/checkout@v2

- name: Get latest Quarto release URL
Expand All @@ -31,8 +31,8 @@ jobs:

- name: Render site
run: |
cd ./site
quarto render &> render_errors.log || {
cd site
quarto render --profile development &> render_errors.log || {
echo "Quarto render failed immediately";
cat render_errors.log;
exit 1;
Expand All @@ -48,11 +48,12 @@ jobs:
echo "No warnings or errors detected during Quarto render"
fi

# Demo bucket is in us-east-1
- name: Configure AWS credentials
run: aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} && aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} && aws configure set default.region us-east-1

- name: Deploy PR preview
run: aws s3 sync site/_site s3://${{ vars.S3_BUCKET_DEMO }}/site/pr_previews/${{ github.head_ref }} --delete && aws cloudfront create-invalidation --distribution-id E38AINJY5CYN6P --paths "/*" --no-cli-pager
run: aws s3 sync site/_site s3://docs-ci-cd-demo/site/pr_previews/${{ github.head_ref }} --delete && aws cloudfront create-invalidation --distribution-id E38AINJY5CYN6P --paths "/*" --no-cli-pager

- name: Post comment with preview URL
uses: actions/github-script@v6
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ make get-source

After you pull in the changes, commit them to this repo as part of the release notes process.

<!-- Aug 2024: Need to mention rendered Python `.html` docs and generated `.md` test descriptions -->
<!-- September 16, 2024: Need to mention rendered Python `.html` docs and generated `.md` test descriptions -->
25 changes: 25 additions & 0 deletions internal/templates/_single-source.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!-- REPLACE WITH YOUR ACTUAL INSTRUCTIONS -->


<!-- VISIBLE IN USER GUIDES ONlY -->

:::: {.content-visible unless-format="revealjs"}
1. In the left sidebar, click **Model Inventory**.

1. Select a model by clicking on it or find your model by applying a filter or searching for it.^[[Working with the model inventory](/guide/model-inventory/working-with-model-inventory.qmd#search-filter-and-sort-models)]

1. In the expanded sidebar that appears for your model, click **Model Activity**.

::::


<!-- VISIBLE IN TRAINING SLIDES ONLY -->

:::: {.content-hidden unless-format="revealjs"}
1. In the left sidebar, click **Model Inventory**.

1. Select a model by clicking on it or [find your model by applying a filter or searching for it](/guide/model-inventory/working-with-model-inventory.qmd#search-filter-and-sort-models).

1. In the expanded sidebar that appears for your model, click **Model Activity**.

::::
2 changes: 1 addition & 1 deletion internal/templates/about-validmind.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you haven't already seen our [Get started with the ValidMind Developer Framew

For access to all features available in this notebook, create a free ValidMind account.

Signing up is FREE — [**Sign up now**](https://app.prod.validmind.ai)
Signing up is FREE — {{< var link.register >}}

:::

Expand Down
37 changes: 25 additions & 12 deletions site/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Define source and destination directories
SRC_DIR := _source/developer-framework
DEST_DIR_NB := notebooks
SRC_DIR_PYTHON := python-docs
DEST_DIR_PYTHON := _site/validmind
DEST_DIR_TESTS := tests
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)

# 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 release-notes
.PHONY: help clean clone notebooks python-docs docs-site deploy-demo deploy-demo-branch delete-demo-branch deploy-prod deploy-staging release-notes

# Help section
help:
Expand All @@ -21,6 +22,7 @@ help:
@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/"
@echo " deploy-staging Deploy docs staging site to s3://docs-ci-cd-staging/site/"
@echo " help Display this help message (default target)"
@echo " release-notes Generate release notes from pull requests since latest tag and update _quarto.yml"

Expand Down Expand Up @@ -54,13 +56,14 @@ notebooks:
python-docs:
@if [ -d "$(SRC_DIR)/docs/_build/" ]; then \
echo "\nUpdating Python documentation ..."; \
rm -rf $(DEST_DIR_PYTHON); \
mkdir -p $(DEST_DIR_PYTHON); \
cp -r $(SRC_DIR)/docs/_build/. $(DEST_DIR_PYTHON); \
else \
echo "\nNo updated Python documentation available locally, skipping step ..."; \
fi

rm -rf $(SRC_DIR_PYTHON); \
mkdir -p $(SRC_DIR_PYTHON); \
cp -r $(SRC_DIR)/docs/_build/. $(SRC_DIR_PYTHON); \
fi; \
echo "Copying Python documentation into docs site ..."; \
rm -rf $(DEST_DIR_PYTHON); \
mkdir -p $(DEST_DIR_PYTHON); \
cp -r $(SRC_DIR_PYTHON)/. $(DEST_DIR_PYTHON);

test-descriptions:
@echo "\nUpdating test descriptions source ..."
Expand All @@ -75,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 @@ -85,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 @@ -104,7 +107,17 @@ 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/
# TO DO Fix Cloudfront distribution ID
deploy-staging:
@if [ "`git rev-parse --abbrev-ref HEAD`" != "nrichers/sc-6277/deploy-staging-docs-site-workflow" ]; then \
echo "You're not on the staging branch, no action taken."; \
else \
echo "\nDeploying staging site ..."; \
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
Loading
Loading