Skip to content

Pushing to prod — Dec 12, 2024 #589

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 18 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
271191c
Huge product renaming release & cleanup (#562)
validbeck Dec 6, 2024
3fd64bc
Pulling in latest from main & resolving merge conflicts
validbeck Dec 6, 2024
d41b577
Docs — Customize inventory & findings lists (#581)
validbeck Dec 11, 2024
b11521a
Merge remote-tracking branch 'origin/main' into staging
github-actions[bot] Dec 11, 2024
763b3a1
Merge pull request #584 from validmind/update-staging-12281856121
github-actions[bot] Dec 11, 2024
a277915
Docs — Adding custom dashboards & widgets (#583)
validbeck Dec 11, 2024
e7a04c9
Merge remote-tracking branch 'origin/main' into staging
github-actions[bot] Dec 11, 2024
45547ae
Add support chatbot to docs site (#582)
nrichers Dec 12, 2024
ce68636
Merge remote-tracking branch 'origin/main' into staging
github-actions[bot] Dec 12, 2024
85562e0
Workflow Python version fix (#586)
validbeck Dec 12, 2024
5d4256b
Fix link to SR 11-7 (#588)
nrichers Dec 12, 2024
7c681bb
Updated Log In button to match main site + CSS updates to Training & …
validbeck Dec 12, 2024
12c4b5d
Merge pull request #587 from validmind/update-staging-12301484239
validbeck Dec 12, 2024
c643de4
Merge pull request #585 from validmind/update-staging-12282633650
validbeck Dec 12, 2024
5596d15
Merge 'main' into staging
validbeck Dec 12, 2024
b5d0553
Forgot the guides in the dropdown (#591)
validbeck Dec 12, 2024
5f60d56
Merge remote-tracking branch 'origin/main' into staging
github-actions[bot] Dec 12, 2024
74c8376
Merge pull request #592 from validmind/update-staging-12305414285
github-actions[bot] Dec 12, 2024
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
8 changes: 1 addition & 7 deletions .github/actions/demo-notebook/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ runs:
pip install fairlearn aequitas
pip install shap==0.44.1

- name: Check dependencies
shell: bash
run: |
pip install pycairo
pip check

- name: Ensure .env file is available
shell: bash
id: find_env
Expand All @@ -48,4 +42,4 @@ runs:
echo "Execute for intro_for_model_developers_EXECUTED.ipynb failed";
cat render_errors.log;
exit 1;
}
}
6 changes: 0 additions & 6 deletions .github/actions/prod-notebook/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ runs:
pip install fairlearn aequitas
pip install shap==0.44.1

- name: Check dependencies
shell: bash
run: |
pip install pycairo
pip check

- name: Ensure .env file is available
shell: bash
id: find_env
Expand Down
6 changes: 0 additions & 6 deletions .github/actions/staging-notebook/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ runs:
pip install fairlearn aequitas
pip install shap==0.44.1

- name: Check dependencies
shell: bash
run: |
pip install pycairo
pip check

- name: Ensure .env file is available
shell: bash
id: find_env
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/deploy-docs-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Fetch Quarto
uses: ./.github/actions/fetch-quarto
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/deploy-docs-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Fetch Quarto
uses: ./.github/actions/fetch-quarto
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/validate-docs-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Fetch Quarto
uses: ./.github/actions/fetch-quarto

Expand Down
4 changes: 2 additions & 2 deletions internal/templates/_single-source.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- VISIBLE IN USER GUIDES ONlY -->

:::: {.content-visible unless-format="revealjs"}
1. In the left sidebar, click **{{< fa cubes >}} Model Inventory**.
1. In the left sidebar, click **{{< fa cubes >}} 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)]

Expand All @@ -16,7 +16,7 @@
<!-- VISIBLE IN TRAINING SLIDES ONLY -->

:::: {.content-hidden unless-format="revealjs"}
1. In the left sidebar, click **{{< fa cubes >}} Model Inventory**.
1. In the left sidebar, click **{{< fa cubes >}} 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).

Expand Down
2 changes: 0 additions & 2 deletions internal/templates/tachyons-flexbox.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: "Tachyons Flexbox"
subtitle: "Template"
search: false
filters:
- tachyons
---

<!-- LAYOUT FOR 2 COLUMNS USING TACHYONS FLEXBOX: https://tachyons.io/docs/layout/flexbox/ -->
Expand Down
2 changes: 0 additions & 2 deletions internal/templates/videos/example.qmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
title: "Tachyons quarto filter"
filters:
- tachyons
self-contained: true
---

Expand Down
2 changes: 0 additions & 2 deletions internal/templates/videos/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ format:
title-slide-attributes:
data-background-color: "#083E44"
data-background-image: "home-hero.svg"
filters:
- tachyons
---

# Intros for training modules
Expand Down
2 changes: 0 additions & 2 deletions internal/testing/css-grid/tachyons-grid.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: "Tachyons Grid"
subtitle: "Testing page"
search: false
filters:
- tachyons
---

## Content template test
Expand Down
2 changes: 0 additions & 2 deletions internal/testing/lightbox.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: "Lightbox gallery"
lightbox: true
subtitle: "CSS styling"
search: false
filters:
- tachyons
---

:::: {.flex .flex-wrap .justify-around}
Expand Down
2 changes: 0 additions & 2 deletions site/404.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: "inValidPage (404)"
html:
page-layout: full
filters:
- tachyons
---

```{=html}
Expand Down
4 changes: 4 additions & 0 deletions site/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ notebooks:
@rm -rf $(DEST_DIR_NB)/code_sharing
@echo "Moving Quickstart notebook into the root of notebooks/ ..."
@if [ -f "$(DEST_DIR_NB)/code_samples/quickstart_customer_churn_full_suite.ipynb" ]; then mv $(DEST_DIR_NB)/code_samples/quickstart_customer_churn_full_suite.ipynb $(DEST_DIR_NB)/quickstart_customer_churn_full_suite.ipynb; fi
@echo "Copying _metadata.yml into notebooks/ ..."
@cp developer/_metadata.yml $(DEST_DIR_NB)/_metadata.yml
@echo "Zip up notebooks.zip ..."
@zip -r notebooks.zip $(DEST_DIR_NB) > /dev/null 2>&1

Expand All @@ -73,6 +75,8 @@ test-descriptions:
@rm -rf $(DEST_DIR_TESTS)
@mkdir -p $(DEST_DIR_TESTS)
@cp -r $(SRC_DIR)/build/_test_descriptions/validmind/tests/. $(DEST_DIR_TESTS)
@echo "Copying _metadata.yml into tests/ ..."
@cp developer/_metadata.yml $(DEST_DIR_TESTS)/_metadata.yml

# Get all source files
get-source: clean clone notebooks python-docs test-descriptions
Expand Down
19 changes: 19 additions & 0 deletions site/_extensions/nrichers/preview/preview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

-- Track if CSS has already been added to prevent duplication
local css_added = false
local skip_filter = false -- Default: Do not skip

-- Helper function to add a CSS file to the document header
function add_css(doc)
Expand All @@ -12,8 +13,21 @@ function add_css(doc)
end
end

-- Function to check metadata for `skip_preview`
function Meta(meta)
-- Set `skip_filter` to true if `skip_preview` is set in the metadata
if meta.skip_preview and meta.skip_preview == true then
skip_filter = true
end
end

-- Main function to apply preview
function Div(el)
-- If the filter is skipped, do nothing
if skip_filter then
return nil
end

if el.classes:includes("preview") then
-- Get the `source`, `target`, `width`, `height`, and `offset` attributes, with defaults if not specified
local source = el.attributes.source or "index.qmd"
Expand Down Expand Up @@ -45,6 +59,11 @@ end

-- Ensure CSS is added once per document
function Pandoc(doc)
-- If the filter is skipped, do nothing
if skip_filter then
return doc
end

add_css(doc)
return doc
end
3 changes: 2 additions & 1 deletion site/_quarto-development.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
format:
html:
include-in-header:
- environments/heap-development.html
- environments/heap-development.html
- zendesk-chat.html
3 changes: 2 additions & 1 deletion site/_quarto-production.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
format:
html:
include-in-header:
- environments/heap-production.html
- environments/heap-production.html
- zendesk-chat.html
3 changes: 2 additions & 1 deletion site/_quarto-staging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
format:
html:
include-in-header:
- environments/heap-staging.html
- environments/heap-staging.html
- zendesk-chat.html
51 changes: 49 additions & 2 deletions site/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,48 @@ website:
file: https://validmind.com/
target: _blank
right:
- text: "Login"
# HOME BUTTON FOR DEVELOPER & TRAINING SECTIONS
- text: "{{< fa house >}}"
file: index.qmd
# DOCUMENTATION MENU FOR DEVELOPER & TRAINING SECTIONS
- text: "{{< fa book-open >}} Documentation"
menu:
- text: "{{< fa circle-info >}} About {{< var vm.product >}}"
file: about/overview.qmd
- text: "{{< fa rocket >}} Get Started"
file: get-started/get-started.qmd
- text: "{{< fa circle-info >}} Guides"
file: guide/guides.qmd
- text: "{{< fa circle-question >}} FAQ"
file: faq/faq.qmd
- text: "{{< fa envelope-open-text >}} Support"
file: support/support.qmd
- text: "---"
- text: "{{< fa cube >}} Developers"
- text: "{{< fa code >}} {{< var validmind.developer >}}"
file: developer/get-started-validmind-library.qmd
- text: "---"
- text: "{{< fa graduation-cap >}} {{< var validmind.training >}}"
- text: "{{< fa building-columns >}} Training Courses"
file: training/training.qmd
- text: "---"
- text: "{{< fa square-check >}} validmind.com {{< fa external-link >}}"
file: https://validmind.com/
target: _blank
# TRAINING MENU FOR ACADEMY SECTION
- text: "{{< fa graduation-cap >}} Training"
menu:
- text: "{{< fa house >}} ValidMind Academy"
file: training/training.qmd
- text: "---"
- text: "{{< fa building-columns >}} Fundamentals"
- text: "{{< fa gear >}} For Administrators"
file: training/administrator-fundamentals/administrator-fundamentals-register.qmd
- text: "{{< fa code >}} For Developers"
file: training/developer-fundamentals/developer-fundamentals-register.qmd
- text: "{{< fa user-check >}} For Validators"
file: training/validator-fundamentals/validator-fundamentals-register.qmd
- text: "Log In"
menu:
- text: "Public Internet"
- text: "{{< var validmind.platform >}} · `US1` {{< fa right-to-bracket >}}"
Expand Down Expand Up @@ -129,6 +170,7 @@ website:
- text: "---"
- text: "Releases"
# MAKE-RELEASE-NOTES-EMBED-MARKER
- releases/2024-dec-06/release-notes.qmd
- releases/2024-oct-22/release-notes.qmd
- releases/2024-sep-25/release-notes.qmd
- releases/2024-sep-09/release-notes.qmd
Expand Down Expand Up @@ -391,4 +433,9 @@ format:
link-external-newwindow: true
link-external-icon: true
callout-appearance: simple
link-external-filter: '^https:\/\/(docs\.validmind\.ai|docs-staging\.validmind\.ai|docs-demo\.vm\.validmind\.ai)\/.*'
link-external-filter: '^https:\/\/(docs\.validmind\.ai|docs-staging\.validmind\.ai|docs-demo\.vm\.validmind\.ai)\/.*'
lightbox: true

filters:
- tachyons
- preview
Loading
Loading