Skip to content

Pushing to prod PR#502 onward #515

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 25 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
096d7e0
Moved training templates into their own folder
validbeck Nov 5, 2024
118fc60
Renamed administrator > administrator-fundamentals
validbeck Nov 5, 2024
8b0baad
Renamed developer > developer-fundamentals
validbeck Nov 5, 2024
bc85a5f
Renamed validator > validator-fundamentals
validbeck Nov 5, 2024
26fe44d
Quick adjust to feedback-help anchor
validbeck Nov 5, 2024
2ec43b6
Training > ValidMind Academy
validbeck Nov 5, 2024
2b6e6bf
Training templates editing
validbeck Nov 5, 2024
aa14404
Reworked training conventions
validbeck Nov 5, 2024
714b2d1
Simplified some old centering html
validbeck Nov 5, 2024
1bd12a0
custom.scss > slides.scss
validbeck Nov 5, 2024
26bdb01
Refined training templates to be a live demo
validbeck Nov 5, 2024
0446c95
Final? tweak
validbeck Nov 5, 2024
f04a659
Simplified the default listing css styles
validbeck Nov 6, 2024
1508b98
Oops forgot to remove some testing cruft
validbeck Nov 6, 2024
74988c9
Merge pull request #509 from validmind/beck/sc-7323/training-course-a…
validbeck Nov 6, 2024
a9cfbf8
Merge remote-tracking branch 'origin/main' into staging
github-actions[bot] Nov 6, 2024
1cac087
Merge pull request #511 from validmind/update-staging-11695506739
github-actions[bot] Nov 6, 2024
62b681e
Documentation for filtering test result metadata (#505)
validbeck Nov 6, 2024
cafc976
Merge remote-tracking branch 'origin/main' into staging
github-actions[bot] Nov 6, 2024
3cb0549
Merge pull request #512 from validmind/update-staging-11711889754
github-actions[bot] Nov 6, 2024
8d6ba5c
Document LLM features (#510)
nrichers Nov 7, 2024
192e085
Added a callout for workflow attachment options (#503)
validbeck Nov 7, 2024
b6109ee
Merge remote-tracking branch 'origin/main' into staging
github-actions[bot] Nov 7, 2024
4d532f7
Merge pull request #514 from validmind/update-staging-11731098805
github-actions[bot] Nov 7, 2024
5987e0b
Merge main into staging (#513)
github-actions[bot] Nov 7, 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
83 changes: 0 additions & 83 deletions internal/templates/fundamentals.qmd

This file was deleted.

2 changes: 0 additions & 2 deletions site/_extensions/nrichers/preview/preview.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.preview {
position: relative;
display: inline-block;
width: 400px;
height: 225px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
border-radius: 5px;
background: #DE257E;
Expand Down
25 changes: 16 additions & 9 deletions site/_extensions/nrichers/preview/preview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,27 @@ end
-- Main function to apply preview
function Div(el)
if el.classes:includes("preview") then
-- Get the `source` attribute, defaulting to "index.qmd" if missing
-- Get the `source`, `target`, `width`, `height`, and `offset` attributes, with defaults if not specified
local source = el.attributes.source or "index.qmd"
source = source:gsub("%.qmd$", ".html")
local target = el.attributes.target or source
local width = el.attributes.width or "400"
local height = el.attributes.height or "225"
local offset = el.attributes.offset or "0" -- Offset in pixels to crop from the top

-- Get the `target` attribute, defaulting to `source` if missing
local target = el.attributes.target or el.attributes.source or "index.qmd"
target = target:gsub("%.qmd$", ".html")
-- Convert .qmd to .html for non-external sources
if not source:match("^https?://") then
source = source:gsub("%.qmd$", ".html")
end
if not target:match("^https?://") then
target = target:gsub("%.qmd$", ".html")
end

-- Generate the HTML content for the preview div
-- Generate HTML with clip-path to crop the top content by the specified offset
local iframeHtml = string.format(
'<div class="preview">\n' ..
' <iframe src="%s" width="400" height="225"></iframe>\n' ..
'<div class="preview" style="width:%spx; height:%spx; overflow:hidden;">\n' ..
' <iframe src="%s" style="width:100%%; height:calc(100%% + %spx); position:relative; top:-%spx; border:none; border-radius:5px;"></iframe>\n' ..
' <a href="%s" target="_blank"></a>\n' ..
'</div>', source, target
'</div>', width, height, source, offset, offset, target
)

-- Return the raw HTML to be inserted
Expand Down
8 changes: 5 additions & 3 deletions site/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ website:
- text: "Automated testing & documentation"
file: about/overview-model-documentation.qmd
- about/overview-model-risk-management.qmd
- text: "LLM features"
file: about/overview-llm-features.qmd
- file: about/deployment/deployment-options.qmd
text: "Deployment options"
contents:
Expand Down Expand Up @@ -322,11 +324,11 @@ website:
# - text: "---"
# - text: "FUNDAMENTALS"
# - text: "For Administrators"
# file: training/administrator/administrator-fundamentals-register.qmd
# file: training/administrator-fundamentals/administrator-fundamentals-register.qmd
# - text: "For Developers"
# file: training/developer/developer-fundamentals-register.qmd
# file: training/developer-fundamentals/developer-fundamentals-register.qmd
# - text: "For Validators"
# file: training/validator/validator-fundamentals-register.qmd
# file: training/validator-fundamentals/validator-fundamentals-register.qmd
# - text: "For model risk governance"
# file: training/training-for-model-risk-governance.qmd

Expand Down
Loading
Loading