From 0d340a35b625ac6229ff1a0e3b0ad268194eea7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Thu, 23 Mar 2023 15:54:43 +0100 Subject: [PATCH 1/6] Fix reference to twbs/examples/icons-font + fine-tune index.html SB location target --- site/content/docs/5.3/examples/_index.md | 2 +- site/data/examples.yml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/site/content/docs/5.3/examples/_index.md b/site/content/docs/5.3/examples/_index.md index 4ab6ffe5bff9..d1dc475020bf 100644 --- a/site/content/docs/5.3/examples/_index.md +++ b/site/content/docs/5.3/examples/_index.md @@ -32,7 +32,7 @@ aliases: "/examples/"

{{ $example.description }}

- + Edit in StackBlitz diff --git a/site/data/examples.yml b/site/data/examples.yml index 017aaa7c5ec9..4b85c57b1fe0 100644 --- a/site/data/examples.yml +++ b/site/data/examples.yml @@ -14,15 +14,18 @@ - name: Webpack description: "Import and bundle Bootstrap's source Sass and JavaScript with Webpack." url: /examples/tree/main/webpack + htmlIndexLocation: src - name: Parcel description: "Import and bundle Bootstrap's source Sass and JavaScript via Parcel." url: /examples/tree/main/parcel + htmlIndexLocation: src - name: Vite description: "Import and bundle Bootstrap's source Sass and JavaScript with Vite." url: /examples/tree/main/vite + htmlIndexLocation: src - name: Bootstrap Icons description: "Import and compile Bootstrap's Sass with Stylelint, PurgeCSS, and the Bootstrap Icons web font." - url: /examples/tree/main/bootstrap-icons + url: /examples/tree/main/icons-font - category: Snippets description: "Common patterns for building sites and apps that build on existing components and utilities with custom CSS and more." From b2b370f68e9e81ac92a5af918e02f0f0ec6ca2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Thu, 23 Mar 2023 16:22:08 +0100 Subject: [PATCH 2/6] Change / to %2F --- site/content/docs/5.3/examples/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/5.3/examples/_index.md b/site/content/docs/5.3/examples/_index.md index d1dc475020bf..82f55f65f8d6 100644 --- a/site/content/docs/5.3/examples/_index.md +++ b/site/content/docs/5.3/examples/_index.md @@ -32,7 +32,7 @@ aliases: "/examples/"

{{ $example.description }}

- + Edit in StackBlitz From 6c8e4290a7d407d6e18ff49c89a2458b6b2ae486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Fri, 24 Mar 2023 14:45:07 +0100 Subject: [PATCH 3/6] Use urlquery --- site/content/docs/5.3/examples/_index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site/content/docs/5.3/examples/_index.md b/site/content/docs/5.3/examples/_index.md index 82f55f65f8d6..bc2c0699b304 100644 --- a/site/content/docs/5.3/examples/_index.md +++ b/site/content/docs/5.3/examples/_index.md @@ -32,7 +32,11 @@ aliases: "/examples/"

{{ $example.description }}

- + {{ $htmlIndexLocation := "index.html" }} + {{ if $example.htmlIndexLocation }} + {{ $htmlIndexLocation = printf "%s/index.html" $example.htmlIndexLocation }} + {{ end }} + Edit in StackBlitz From 11c83d639abb764539742c12cefaf172f6fdd655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Fri, 24 Mar 2023 14:51:12 +0100 Subject: [PATCH 4/6] Fix Cspell --- .cspell.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.cspell.json b/.cspell.json index 752acd521874..e477ef83d393 100644 --- a/.cspell.json +++ b/.cspell.json @@ -108,6 +108,7 @@ "unstyled", "Uppercased", "urlize", + "urlquery", "vbtn", "viewports", "Vite", From d6297ae7aafc77e51aec9032986010802194e16d Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 24 Mar 2023 15:55:55 +0200 Subject: [PATCH 5/6] Update _index.md --- site/content/docs/5.3/examples/_index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/site/content/docs/5.3/examples/_index.md b/site/content/docs/5.3/examples/_index.md index bc2c0699b304..496efa5a3d8f 100644 --- a/site/content/docs/5.3/examples/_index.md +++ b/site/content/docs/5.3/examples/_index.md @@ -32,11 +32,11 @@ aliases: "/examples/"

{{ $example.description }}

- {{ $htmlIndexLocation := "index.html" }} - {{ if $example.htmlIndexLocation }} - {{ $htmlIndexLocation = printf "%s/index.html" $example.htmlIndexLocation }} - {{ end }} - + {{- $htmlIndexLocation := "index.html" -}} + {{- if $example.htmlIndexLocation -}} + {{- $htmlIndexLocation = printf "%s/index.html" $example.htmlIndexLocation -}} + {{- end }} + Edit in StackBlitz From 401c3cc68511aebbdc8afbc9c308a8c503da16b1 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 24 Mar 2023 15:57:42 +0200 Subject: [PATCH 6/6] Update _index.md --- site/content/docs/5.3/examples/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/5.3/examples/_index.md b/site/content/docs/5.3/examples/_index.md index 496efa5a3d8f..2fa9a45285f5 100644 --- a/site/content/docs/5.3/examples/_index.md +++ b/site/content/docs/5.3/examples/_index.md @@ -26,7 +26,7 @@ aliases: "/examples/"

- + {{ $example.name }}