[POLICY-73] replace openecomp for policy-engine
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / CSS / bootstrap / docs / _includes / getting-started / download.html
1 <div class="bs-docs-section">
2   <h1 id="download" class="page-header">Download</h1>
3
4   <p class="lead">Bootstrap (currently v{{ site.current_version }}) has a few easy ways to quickly get started, each one appealing to a different skill level and use case. Read through to see what suits your particular needs.</p>
5
6   <div class="row bs-downloads">
7     <div class="col-sm-4">
8       <h3 id="download-bootstrap">Bootstrap</h3>
9       <p>Compiled and minified CSS, JavaScript, and fonts. No docs or original source files are included.</p>
10       <p>
11         <a href="{{ site.download.dist }}" class="btn btn-lg btn-outline" role="button" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download compiled');">Download Bootstrap</a>
12       </p>
13     </div>
14     <div class="col-sm-4">
15       <h3 id="download-source">Source code</h3>
16       <p>Source Less, JavaScript, and font files, along with our docs. <strong>Requires a Less compiler and <a href="#grunt">some setup.</a></strong></p>
17       <p>
18         <a href="{{ site.download.source }}" class="btn btn-lg btn-outline" role="button" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download source');">Download source</a>
19       </p>
20     </div>
21     <div class="col-sm-4">
22       <h3 id="download-sass">Sass</h3>
23       <p><a href="{{ site.sass_repo }}">Bootstrap ported from Less to Sass</a> for easy inclusion in Rails, Compass, or Sass-only projects.</p>
24       <p>
25         <a href="{{ site.download.sass }}" class="btn btn-lg btn-outline" role="button" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download Sass');">Download Sass</a>
26       </p>
27     </div>
28   </div>
29
30   <h2 id="download-cdn">Bootstrap CDN</h2>
31   <p>The folks over at <a href="http://www.maxcdn.com/">MaxCDN</a> graciously provide CDN support for Bootstrap's CSS and JavaScript. Just use these <a href="http://www.bootstrapcdn.com/">Bootstrap CDN</a> links.</p>
32 {% highlight html %}
33 <!-- Latest compiled and minified CSS -->
34 <link rel="stylesheet" href="{{ site.cdn.css }}">
35
36 <!-- Optional theme -->
37 <link rel="stylesheet" href="{{ site.cdn.css_theme }}">
38
39 <!-- Latest compiled and minified JavaScript -->
40 <script src="{{ site.cdn.js }}"></script>
41 {% endhighlight %}
42
43   <h2 id="download-bower">Install with Bower</h2>
44   <p>You can also install and manage Bootstrap's Less, CSS, JavaScript, and fonts using <a href="http://bower.io">Bower</a>:</p>
45   {% highlight bash %}$ bower install bootstrap{% endhighlight %}
46
47   <h2 id="download-npm">Install with npm</h2>
48   <p>You can also install Bootstrap using <a href="https://www.npmjs.com">npm</a>:</p>
49   {% highlight bash %}$ npm install bootstrap{% endhighlight %}
50   <p><code>require('bootstrap')</code> will load all of Bootstrap's jQuery plugins onto the jQuery object. The <code>bootstrap</code> module itself does not export anything. You can manually load Bootstrap's jQuery plugins individually by loading the <code>/js/*.js</code> files under the package's top-level directory.</p>
51   <p>Bootstrap's <code>package.json</code> contains some additional metadata under the following keys:</p>
52   <ul>
53     <li><code>less</code> - path to Bootstrap's main <a href="http://lesscss.org">Less</a> source file</li>
54     <li><code>style</code> - path to Bootstrap's non-minified CSS that's been pronapiled using the default settings (no customization)</li>
55   </ul>
56
57   <h2 id="download-autoprefixer">Autoprefixer required for Less/Sass</h2>
58   <p>Bootstrap uses <a href="https://github.com/postcss/autoprefixer">Autoprefixer</a> to deal with <a href="http://webdesign.about.com/od/css/a/css-vendor-prefixes.htm">CSS vendor prefixes</a>. If you're compiling Bootstrap from its Less/Sass source and not using our Gruntfile, you'll need to integrate Autoprefixer into your build process yourself. If you're using pronapiled Bootstrap or using our Gruntfile, you don't need to worry about this because Autoprefixer is already integrated into our Gruntfile.</p>
59 </div>