diff --git a/site/docs/4.2/assets/js/src/application.js b/site/docs/4.2/assets/js/src/application.js index 0deb862eef3df4f3927dca81d6b4db0eda2aeaa7..863af68286ea59b17a20a12704b5ac7269d58e81 100644 --- a/site/docs/4.2/assets/js/src/application.js +++ b/site/docs/4.2/assets/js/src/application.js @@ -6,8 +6,8 @@ * JavaScript for Bootstrap's docs (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors * Copyright 2011-2019 Twitter, Inc. - * Licensed under the Creative Commons Attribution 3.0 Unported License. For - * details, see https://creativecommons.org/licenses/by/3.0/. + * Licensed under the Creative Commons Attribution 3.0 Unported License. + * For details, see https://creativecommons.org/licenses/by/3.0/. */ /* global ClipboardJS: false, anchors: false, bsCustomFileInput: false */ diff --git a/site/docs/4.2/assets/scss/docs.scss b/site/docs/4.2/assets/scss/docs.scss index 267cb562bd7c6764a1935c68e331a80e2aa61146..6b1814dc8a1da36517dccf18487630b61403bc22 100644 --- a/site/docs/4.2/assets/scss/docs.scss +++ b/site/docs/4.2/assets/scss/docs.scss @@ -2,8 +2,8 @@ * Bootstrap Docs (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors * Copyright 2011-2019 Twitter, Inc. - * Licensed under the Creative Commons Attribution 3.0 Unported License. For - * details, see https://creativecommons.org/licenses/by/3.0/. + * Licensed under the Creative Commons Attribution 3.0 Unported License. + * For details, see https://creativecommons.org/licenses/by/3.0/. */ // Dev notes diff --git a/site/docs/4.2/components/carousel.md b/site/docs/4.2/components/carousel.md index 26c81b48d6df36c413ec087bd0823d5981729b36..dbe321cd9d22f70e4f5379f9128b71f0f7090ffd 100644 --- a/site/docs/4.2/components/carousel.md +++ b/site/docs/4.2/components/carousel.md @@ -112,6 +112,7 @@ You can also add the indicators to the carousel, alongside the controls, too. Add captions to your slides easily with the `.carousel-caption` element within any `.carousel-item`. They can be easily hidden on smaller viewports, as shown below, with optional [display utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/display/). We hide them initially with `.d-none` and bring them back on medium-sized devices with `.d-md-block`. +{% capture example %} <div class="bd-example"> <div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel"> <ol class="carousel-indicators"> @@ -152,16 +153,8 @@ Add captions to your slides easily with the `.carousel-caption` element within a </a> </div> </div> - -{% highlight html %} -<div class="carousel-item"> - <img src="..." alt="..."> - <div class="carousel-caption d-none d-md-block"> - <h5>...</h5> - <p>...</p> - </div> -</div> -{% endhighlight %} +{% endcapture %} +{% include example.html content=example %} ### Crossfade diff --git a/site/docs/4.2/getting-started/introduction.md b/site/docs/4.2/getting-started/introduction.md index 0ca22507c060e03c63384732e29c05ebacd30a6d..956b6489aa5369e1801ae030b4f65a9f7ade5fb3 100644 --- a/site/docs/4.2/getting-started/introduction.md +++ b/site/docs/4.2/getting-started/introduction.md @@ -26,7 +26,7 @@ Copy-paste the stylesheet `<link>` into your `<head>` before all other styleshee ### JS -Many of our components require the use of JavaScript to function. Specifically, they require [jQuery](https://jquery.com), [Popper.js](https://popper.js.org/), and our own JavaScript plugins. Place the following `<script>`s near the end of your pages, right before the closing `</body>` tag, to enable them. jQuery must come first, then Popper.js, and then our JavaScript plugins. +Many of our components require the use of JavaScript to function. Specifically, they require [jQuery](https://jquery.com/), [Popper.js](https://popper.js.org/), and our own JavaScript plugins. Place the following `<script>`s near the end of your pages, right before the closing `</body>` tag, to enable them. jQuery must come first, then Popper.js, and then our JavaScript plugins. We use [jQuery's slim build](https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/), but the full version is also supported.