From 846d6606ec4eabe585dd0240e3d1b56256cfc8a6 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 29 Dec 2022 13:59:33 -0800 Subject: [PATCH] Include twbs/examples in the Examples page --- site/content/docs/5.3/examples/_index.md | 61 +++++++++++++++--------- site/data/examples.yml | 26 ++++++++++ 2 files changed, 64 insertions(+), 23 deletions(-) diff --git a/site/content/docs/5.3/examples/_index.md b/site/content/docs/5.3/examples/_index.md index d46e38f255..9c9cdd07e6 100644 --- a/site/content/docs/5.3/examples/_index.md +++ b/site/content/docs/5.3/examples/_index.md @@ -7,26 +7,41 @@ aliases: "/examples/" {{< list-examples.inline >}} {{ range $entry := $.Site.Data.examples -}} -
-
-

{{ $entry.category }}

-

{{ $entry.description }}

- {{ if eq $entry.category "RTL" -}} -
-

- RTL is still experimental and will evolve with feedback. Spotted something or have an improvement to suggest? -

-

Please open an issue.

-
- {{ end -}} -
- -
- {{ range $i, $example := $entry.examples -}} - {{- $len := len $entry.examples -}} - {{ if (eq $i 0) }} {{ end -}} {{< /list-examples.inline >}} diff --git a/site/data/examples.yml b/site/data/examples.yml index 97d4bfb93f..b8db98638e 100644 --- a/site/data/examples.yml +++ b/site/data/examples.yml @@ -1,3 +1,29 @@ +- category: Starters + external: true + description: "Functional examples of using Bootstrap in common JS frameworks like Webpack, Parcel, Vite, and more you can edit in StackBlitz." + examples: + - name: CDN starter + description: "Instantly include Bootstrap's compiled CSS and JavaScript via the jsDelivr CDN." + url: /examples/tree/main/starter + - name: Sass & JS + description: "Use npm to import and compile Bootstrap's Sass with Autoprefixer and Stylelint, plus our bundled JavaScript." + url: /examples/tree/main/sass-js + - name: Sass & ESM JS + description: "Import and compile Bootstrap's Sass with Autoprefixer and Stylelint, and compile our source JavaScript with an ESM shim." + url: /examples/tree/main/sass-js-esm + - name: Webpack + description: "Import and bundle Bootstrap's source Sass and JavaScript with Webpack." + url: /examples/tree/main/webpack + - name: Parcel + description: "Import and bundle Bootstrap's source Sass and JavaScript via Parcel." + url: /examples/tree/main/parcel + - name: Vite + description: "Import and bundle Bootstrap's source Sass and JavaScript with Vite." + url: /examples/tree/main/vite + - 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 + - category: Snippets description: "Common patterns for building sites and apps that build on existing components and utilities with custom CSS and more." examples: