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", diff --git a/site/content/docs/5.3/examples/_index.md b/site/content/docs/5.3/examples/_index.md index 4ab6ffe5bff9..2fa9a45285f5 100644 --- a/site/content/docs/5.3/examples/_index.md +++ b/site/content/docs/5.3/examples/_index.md @@ -26,13 +26,17 @@ aliases: "/examples/"

- + {{ $example.name }}

{{ $example.description }}

- + {{- $htmlIndexLocation := "index.html" -}} + {{- if $example.htmlIndexLocation -}} + {{- $htmlIndexLocation = printf "%s/index.html" $example.htmlIndexLocation -}} + {{- end }} + 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."