Skip to content

Commit 7c681bb

Browse files
authored
Updated Log In button to match main site + CSS updates to Training & Developer sections (#580)
* Testing global filters * Removed page-level filters * Fixing a relative link in an include single-source file * Adding an option to disable the preview filter when set globally * Switching to a directory level _metadata.yml stylesheet for training/ * Adjusting training conventions * WIP conditional drop-down menus * Hiding conditional drop-down menus outside of developer & training * Fiddling with Log In & buttons * Developer css tweaks * Added copying over the developer/ _metadata.yml notebooks in Makefile * Added copying over the developer/ _metadata.yml tests in Makefile * Testing updates to make get-source * Global .lightbox settings * Modyifng style guide for global .lightbox * Tweak to lightbox conventions after testing * Removed image-level .lightbox * Page-level .lightbox for training slides * Sharpness of training buttons * Hm what happened to the css on the cloud * Reverting some changes to start fresh * New cleaner training theme * Simplified index page * Simplified developer css * Changed gradient angle to mimic checkmark * Color adjsutments for mobile > Developers * Checking the mobile layout/padding * Cleaning up releases section * Home button WIP * Home button for Developers * Home button for Training * Cleaned up new home button for Developers * Cleaned up new home button for Training * Final tweaks
1 parent 5d4256b commit 7c681bb

File tree

110 files changed

+3020
-378
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+3020
-378
lines changed

internal/templates/tachyons-flexbox.qmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: "Tachyons Flexbox"
33
subtitle: "Template"
44
search: false
5-
filters:
6-
- tachyons
75
---
86

97
<!-- LAYOUT FOR 2 COLUMNS USING TACHYONS FLEXBOX: https://tachyons.io/docs/layout/flexbox/ -->

internal/templates/videos/example.qmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
title: "Tachyons quarto filter"
3-
filters:
4-
- tachyons
53
self-contained: true
64
---
75

internal/templates/videos/index.qmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ format:
1919
title-slide-attributes:
2020
data-background-color: "#083E44"
2121
data-background-image: "home-hero.svg"
22-
filters:
23-
- tachyons
2422
---
2523

2624
# Intros for training modules

internal/testing/css-grid/tachyons-grid.qmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: "Tachyons Grid"
33
subtitle: "Testing page"
44
search: false
5-
filters:
6-
- tachyons
75
---
86

97
## Content template test

internal/testing/lightbox.qmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: "Lightbox gallery"
33
lightbox: true
44
subtitle: "CSS styling"
55
search: false
6-
filters:
7-
- tachyons
86
---
97

108
:::: {.flex .flex-wrap .justify-around}

site/404.qmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: "inValidPage (404)"
33
html:
44
page-layout: full
5-
filters:
6-
- tachyons
75
---
86

97
```{=html}

site/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ notebooks:
5151
@rm -rf $(DEST_DIR_NB)/code_sharing
5252
@echo "Moving Quickstart notebook into the root of notebooks/ ..."
5353
@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
54+
@echo "Copying _metadata.yml into notebooks/ ..."
55+
@cp developer/_metadata.yml $(DEST_DIR_NB)/_metadata.yml
5456
@echo "Zip up notebooks.zip ..."
5557
@zip -r notebooks.zip $(DEST_DIR_NB) > /dev/null 2>&1
5658

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

7781
# Get all source files
7882
get-source: clean clone notebooks python-docs test-descriptions

site/_extensions/nrichers/preview/preview.lua

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

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

67
-- Helper function to add a CSS file to the document header
78
function add_css(doc)
@@ -12,8 +13,21 @@ function add_css(doc)
1213
end
1314
end
1415

16+
-- Function to check metadata for `skip_preview`
17+
function Meta(meta)
18+
-- Set `skip_filter` to true if `skip_preview` is set in the metadata
19+
if meta.skip_preview and meta.skip_preview == true then
20+
skip_filter = true
21+
end
22+
end
23+
1524
-- Main function to apply preview
1625
function Div(el)
26+
-- If the filter is skipped, do nothing
27+
if skip_filter then
28+
return nil
29+
end
30+
1731
if el.classes:includes("preview") then
1832
-- Get the `source`, `target`, `width`, `height`, and `offset` attributes, with defaults if not specified
1933
local source = el.attributes.source or "index.qmd"
@@ -45,6 +59,11 @@ end
4559

4660
-- Ensure CSS is added once per document
4761
function Pandoc(doc)
62+
-- If the filter is skipped, do nothing
63+
if skip_filter then
64+
return doc
65+
end
66+
4867
add_css(doc)
4968
return doc
5069
end

site/_quarto.yml

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,46 @@ website:
7373
file: https://validmind.com/
7474
target: _blank
7575
right:
76-
- text: "Login"
76+
# HOME BUTTON FOR DEVELOPER & TRAINING SECTIONS
77+
- text: "{{< fa house >}}"
78+
file: index.qmd
79+
# DOCUMENTATION MENU FOR DEVELOPER & TRAINING SECTIONS
80+
- text: "{{< fa book-open >}} Documentation"
81+
menu:
82+
- text: "{{< fa circle-info >}} About {{< var vm.product >}}"
83+
file: about/overview.qmd
84+
- text: "{{< fa rocket >}} Get Started"
85+
file: get-started/get-started.qmd
86+
- text: "{{< fa circle-question >}} FAQ"
87+
file: faq/faq.qmd
88+
- text: "{{< fa envelope-open-text >}} Support"
89+
file: support/support.qmd
90+
- text: "---"
91+
- text: "{{< fa cube >}} Developers"
92+
- text: "{{< fa code >}} {{< var validmind.developer >}}"
93+
file: developer/get-started-validmind-library.qmd
94+
- text: "---"
95+
- text: "{{< fa graduation-cap >}} {{< var validmind.training >}}"
96+
- text: "{{< fa building-columns >}} Training Courses"
97+
file: training/training.qmd
98+
- text: "---"
99+
- text: "{{< fa square-check >}} validmind.com {{< fa external-link >}}"
100+
file: https://validmind.com/
101+
target: _blank
102+
# TRAINING MENU FOR ACADEMY SECTION
103+
- text: "{{< fa graduation-cap >}} Training"
104+
menu:
105+
- text: "{{< fa house >}} ValidMind Academy"
106+
file: training/training.qmd
107+
- text: "---"
108+
- text: "{{< fa building-columns >}} Fundamentals"
109+
- text: "{{< fa gear >}} For Administrators"
110+
file: training/administrator-fundamentals/administrator-fundamentals-register.qmd
111+
- text: "{{< fa code >}} For Developers"
112+
file: training/developer-fundamentals/developer-fundamentals-register.qmd
113+
- text: "{{< fa user-check >}} For Validators"
114+
file: training/validator-fundamentals/validator-fundamentals-register.qmd
115+
- text: "Log In"
77116
menu:
78117
- text: "Public Internet"
79118
- text: "{{< var validmind.platform >}} · `US1` {{< fa right-to-bracket >}}"
@@ -392,4 +431,9 @@ format:
392431
link-external-newwindow: true
393432
link-external-icon: true
394433
callout-appearance: simple
395-
link-external-filter: '^https:\/\/(docs\.validmind\.ai|docs-staging\.validmind\.ai|docs-demo\.vm\.validmind\.ai)\/.*'
434+
link-external-filter: '^https:\/\/(docs\.validmind\.ai|docs-staging\.validmind\.ai|docs-demo\.vm\.validmind\.ai)\/.*'
435+
lightbox: true
436+
437+
filters:
438+
- tachyons
439+
- preview

0 commit comments

Comments
 (0)