From 28f18f84a796b4d931a4850443eefbac87b16fa9 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 19 Oct 2020 11:25:31 +0300 Subject: [PATCH] docs: switch to suggesting jsDelivr as a CDN (#31894) --- config.yml | 6 +++--- site/content/docs/5.0/customize/overview.md | 2 +- site/content/docs/5.0/getting-started/download.md | 4 ++-- site/content/docs/5.0/getting-started/introduction.md | 4 ++-- site/layouts/partials/home/masthead-followup.html | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config.yml b/config.yml index 2633b3559e..81d1c794ca 100644 --- a/config.yml +++ b/config.yml @@ -68,11 +68,11 @@ params: cdn: # See https://www.srihash.org for info on how to generate the hashes - css: "https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha2/css/bootstrap.min.css" + css: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-alpha2/dist/css/bootstrap.min.css" css_hash: "sha384-DhY6onE6f3zzKbjUPRc2hOzGAdEf4/Dz+WJwBvEYL/lkkIsI3ihufq9hk9K4lVoK" - js: "https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha2/js/bootstrap.min.js" + js: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-alpha2/dist/js/bootstrap.min.js" js_hash: "sha384-5h4UG+6GOuV9qXh6HqOLwZMY4mnLPraeTrjT5v07o347pj6IkfuoASuGBhfDsp3d" - js_bundle: "https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha2/js/bootstrap.bundle.min.js" + js_bundle: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-alpha2/dist/js/bootstrap.bundle.min.js" js_bundle_hash: "sha384-BOsAfwzjNJHrJ8cZidOg56tcQWfp6y72vEJ8xQ9w6Quywb24iOsW913URv1IS4GD" popper: "https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" popper_hash: "sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" diff --git a/site/content/docs/5.0/customize/overview.md b/site/content/docs/5.0/customize/overview.md index 0f7e09e107..16847589e5 100644 --- a/site/content/docs/5.0/customize/overview.md +++ b/site/content/docs/5.0/customize/overview.md @@ -27,7 +27,7 @@ There are multiple ways to customize Bootstrap. Your best path can depend on you Our two preferred methods are: 1. Using Bootstrap [via package manager]({{< docsref "/getting-started/download#package-managers" >}}) so you can use and extend our source files. -2. Using Bootstrap's compiled distribution files or the [BootstrapCDN]({{< docsref "/getting-started/download#bootstrapcdn" >}}) so you can add onto or override Bootstrap's styles. +2. Using Bootstrap's compiled distribution files or [jsDelivr]({{< docsref "/getting-started/download#cdn-via-jsdelivr" >}}) so you can add onto or override Bootstrap's styles. While we cannot go into details here on how to use every package manager, we can give some guidance on [using Bootstrap with your own Sass compiler]({{< docsref "/customize/sass" >}}). diff --git a/site/content/docs/5.0/getting-started/download.md b/site/content/docs/5.0/getting-started/download.md index 5c710c2fb4..3de4910e37 100644 --- a/site/content/docs/5.0/getting-started/download.md +++ b/site/content/docs/5.0/getting-started/download.md @@ -34,9 +34,9 @@ If you want to download and examine our [examples]({{< docsref "/examples" >}}), }}" class="btn btn-bd-primary" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download Examples');">Download Examples -## BootstrapCDN +## CDN via jsDelivr -Skip the download with [BootstrapCDN](https://www.bootstrapcdn.com/) to deliver cached version of Bootstrap's compiled CSS and JS to your project. +Skip the download with [jsDelivr](https://www.jsdelivr.com/) to deliver cached version of Bootstrap's compiled CSS and JS to your project. {{< highlight html >}} }}" integrity="{{< param "cdn.css_hash" >}}" crossorigin="anonymous"> diff --git a/site/content/docs/5.0/getting-started/introduction.md b/site/content/docs/5.0/getting-started/introduction.md index 5e93872965..cce1423be9 100644 --- a/site/content/docs/5.0/getting-started/introduction.md +++ b/site/content/docs/5.0/getting-started/introduction.md @@ -1,7 +1,7 @@ --- layout: docs title: Introduction -description: Get started with Bootstrap, the world's most popular framework for building responsive, mobile-first sites, with BootstrapCDN and a template starter page. +description: Get started with Bootstrap, the world's most popular framework for building responsive, mobile-first sites, with jsDelivr and a template starter page. group: getting-started aliases: - "/docs/5.0/getting-started/" @@ -12,7 +12,7 @@ toc: true ## Quick start -Looking to quickly add Bootstrap to your project? Use BootstrapCDN, provided for free by the folks at StackPath. Using a package manager or need to download the source files? [Head to the downloads page]({{< docsref "/getting-started/download" >}}). +Looking to quickly add Bootstrap to your project? Use jsDelivr, a free open source CDN. Using a package manager or need to download the source files? [Head to the downloads page]({{< docsref "/getting-started/download" >}}). ### CSS diff --git a/site/layouts/partials/home/masthead-followup.html b/site/layouts/partials/home/masthead-followup.html index 75c02e03cc..0d70afa119 100644 --- a/site/layouts/partials/home/masthead-followup.html +++ b/site/layouts/partials/home/masthead-followup.html @@ -22,9 +22,9 @@
{{ partial "icons/cloud-fill.svg" (dict "width" "32" "height" "32") }}
-

BootstrapCDN

+

jsDelivr

- When you only need to include Bootstrap’s compiled CSS or JS, you can use BootstrapCDN. + When you only need to include Bootstrap’s compiled CSS or JS, you can use jsDelivr.

See it in action with our simple starter template, or browse the examples to jumpstart your next project. You can also choose to include Popper.js and our JS separately.