Skip to content

Commit 4b27cc9

Browse files
authored
Merge pull request #20878 from twbs/downloads-copy
Updated Download docs
2 parents 259fa88 + ffdf64e commit 4b27cc9

File tree

2 files changed

+18
-27
lines changed

2 files changed

+18
-27
lines changed

docs/getting-started/download.md

+16-25
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,26 @@ group: getting-started
77

88
**Bootstrap v{{ site.current_version}}** is available for download in several ways, including some of your favorite package managers. Choose from the options below to snag just what you need.
99

10+
### Bootstrap CSS and JS
11+
12+
**Download Bootstrap's ready-to-use code to easily drop into your project.** Includes compiled and minified versions of all our CSS bundles (default, flexbox-enabled, grid only, or Reboot only) and JavaScript plugins. Doesn't include documentation or source files.
13+
14+
<a href="{{ site.download.dist }}" class="btn btn-lg btn-bs btn-outline" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download Bootstrap');">Download Bootstrap</a>
15+
1016
### Source files
11-
Download everything: source Sass, JavaScript, and documentation files. **Requires a Sass compiler, [Autoprefixer](https://github.com/postcss/autoprefixer), [postcss-flexbugs-fixes](https://github.com/luisrudge/postcss-flexbugs-fixes), and [some setup]({{ site.baseurl }}/getting-started/build-tools/#tooling-setup).**
17+
**Want to compile Bootstrap with your project's asset pipeline?** Choose this option to download our source Sass, JavaScript, and documentation files. Requires a Sass compiler, [Autoprefixer](https://github.com/postcss/autoprefixer), [postcss-flexbugs-fixes](https://github.com/luisrudge/postcss-flexbugs-fixes), and [some setup]({{ site.baseurl }}/getting-started/build-tools/#tooling-setup).
1218

1319
<a href="{{ site.download.source }}" class="btn btn-bs btn-outline" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download source');">Download source</a>
1420

21+
### Bootstrap CDN
22+
23+
Skip the download and use the Bootstrap CDN to deliver Bootstrap's compiled CSS and JS to your project.
24+
25+
{% highlight html %}
26+
<link rel="stylesheet" href="{{ site.cdn.css }}" integrity="{{ site.cdn.css_hash }}" crossorigin="anonymous">
27+
<script src="{{ site.cdn.js }}" integrity="{{ site.cdn.js_hash }}" crossorigin="anonymous"></script>
28+
{% endhighlight %}
29+
1530
## Package managers
1631

1732
Pull in Bootstrap's **source files** into nearly any project with some of the most popular package managers. No matter the package manager, Bootstrap will **require a Sass compiler, [Autoprefixer](https://github.com/postcss/autoprefixer), and [postcss-flexbugs-fixes](https://github.com/luisrudge/postcss-flexbugs-fixes)** for a setup that matches our official compiled versions.
@@ -86,27 +101,3 @@ Install-Package bootstrap.sass -Pre
86101
{% endhighlight %}
87102

88103
The `-Pre` is required until Bootstrap v4 has a stable release.
89-
90-
{% comment %}
91-
## Custom builds
92-
93-
Need only a part of Bootstrap's CSS or JS? Use one of the custom builds to snag just what you need.
94-
95-
<div class="row">
96-
<div class="col-sm-4">
97-
<h3>Reboot</h3>
98-
<p>Includes variables/mixins, Normalize, and Reboot. No JavaScript.</p>
99-
<a class="btn btn-bs btn-outline" href="#">Download</a>
100-
</div>
101-
<div class="col-sm-4">
102-
<h3>Grid only</h3>
103-
<p>Includes variables/mixins and our grid system. No JavaScript.</p>
104-
<a class="btn btn-bs btn-outline" href="#">Download</a>
105-
</div>
106-
<div class="col-sm-4">
107-
<h3>Flexbox</h3>
108-
<p>All of Bootstrap with flexbox enabled and <strong>lower browser support</strong>.</p>
109-
<a class="btn btn-bs btn-outline" href="#">Download</a>
110-
</div>
111-
</div>
112-
{% endcomment %}

docs/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ <h4>Bootstrap CDN</h4>
3939

4040
<hr class="half-rule m-t-0">
4141

42-
<p><strong>Looking for something simpler?</strong> Customized builds of Bootstrap's CSS and JS are also available.</p>
43-
<a href="{{ site.baseurl }}/getting-started/download/#custom-builds" class="btn btn-bs btn-outline">More download options</a>
42+
<p><strong>Looking for something else?</strong> Compiled builds of Bootstrap's CSS and JS are also available.</p>
43+
<a href="{{ site.baseurl }}/getting-started/download/" class="btn btn-bs btn-outline">More download options</a>
4444
</div>
4545
</div>
4646

0 commit comments

Comments
 (0)