docs: Update download page (#1290)

This commit is contained in:
Emil Godsk 2018-04-17 10:24:21 +02:00 committed by Federico Zivolo
parent 74bbccf97f
commit af1ac3a891

View File

@ -50,51 +50,52 @@ Pull in Bootstrap's **source files** into nearly any project with some of the mo
### npm ### npm
Install Bootstrap in your Node.js powered apps with [the npm package](https://www.npmjs.com/package/bootstrap): Install Bootstrap Material Design in your Node.js powered apps with [the npm package](https://www.npmjs.com/package/bootstrap-material-design):
{% highlight sh %} {% highlight sh %}
npm install bootstrap npm install bootstrap-material-design@{{ site.current_version }}
{% endhighlight %} {% endhighlight %}
`require('bootstrap')` will load all of Bootstrap's jQuery plugins onto the jQuery object. The `bootstrap` module itself does not export anything. You can manually load Bootstrap's jQuery plugins individually by loading the `/js/*.js` files under the package's top-level directory. `require('bootstrap-material-design')` will load all of Bootstrap Material Design's jQuery plugins onto the jQuery object. The `bootstrap-material-design` module itself does not export anything. You can manually load Bootstrap's jQuery plugins individually by loading the `/js/*.js` files under the package's top-level directory.
Bootstrap's `package.json` contains some additional metadata under the following keys: Bootstrap Material Design's `package.json` contains some additional metadata under the following keys:
- `sass` - path to Bootstrap's main [Sass](http://sass-lang.com/) source file - `sass` - path to Bootstrap Material Design's main [Sass](http://sass-lang.com/) source file
- `style` - path to Bootstrap's non-minified CSS that's been precompiled using the default settings (no customization) - `style` - path to Bootstrap Material Design's non-minified CSS that's been precompiled using the default settings (no customization)
### RubyGems
Install Bootstrap in your Ruby apps using [Bundler](https://bundler.io/) (**recommended**) and [RubyGems](https://rubygems.org/) by adding the following line to your [`Gemfile`](https://bundler.io/gemfile.html): <!--- ### RubyGems --->
{% highlight ruby %} <!--- Install Bootstrap in your Ruby apps using [Bundler](https://bundler.io/) (**recommended**) and [RubyGems](https://rubygems.org/) by adding the following line to your [`Gemfile`](https://bundler.io/gemfile.html): --->
gem 'bootstrap', '~> {{ site.current_ruby_version }}'
{% endhighlight %}
Alternatively, if you're not using Bundler, you can install the gem by running this command: <!--- {% highlight ruby %} --->
<!--- gem 'bootstrap', '~> {{ site.current_ruby_version }}' --->
<!--- {% endhighlight %} --->
{% highlight sh %} <!--- Alternatively, if you're not using Bundler, you can install the gem by running this command: --->
gem install bootstrap -v {{ site.current_ruby_version }}
{% endhighlight %}
[See the gem's README](https://github.com/twbs/bootstrap-rubygem/blob/master/README.md) for further details. <!--- {% highlight sh %} --->
<!--- gem install bootstrap -v {{ site.current_version }} --->
<!--- {% endhighlight %} --->
### Composer <!--- [See the gem's README](https://github.com/twbs/bootstrap-rubygem/blob/master/README.md) for further details. --->
You can also install and manage Bootstrap's Sass and JavaScript using [Composer](https://getcomposer.org/): <!--- ### Composer --->
{% highlight sh %} <!--- You can also install and manage Bootstrap's Sass and JavaScript using [Composer](https://getcomposer.org/): --->
composer require twbs/bootstrap:{{ site.current_version }}
{% endhighlight %}
### NuGet <!--- {% highlight sh %} --->
<!--- composer require twbs/bootstrap:{{ site.current_version }} --->
<!--- {% endhighlight %} --->
If you develop in .NET, you can also install and manage Bootstrap's [CSS](https://www.nuget.org/packages/bootstrap/) or [Sass](https://www.nuget.org/packages/bootstrap.sass/) and JavaScript using [NuGet](https://www.nuget.org/): <!--- ### NuGet --->
{% highlight powershell %} <!--- If you develop in .NET, you can also install and manage Bootstrap's [CSS](https://www.nuget.org/packages/bootstrap/) or [Sass](https://www.nuget.org/packages/bootstrap.sass/) and JavaScript using [NuGet](https://www.nuget.org/): --->
Install-Package bootstrap
{% endhighlight %}
{% highlight powershell %} <!--- {% highlight powershell %} --->
Install-Package bootstrap.sass <!--- Install-Package bootstrap --->
{% endhighlight %} <!--- {% endhighlight %} --->
<!--- {% highlight powershell %} --->
<!--- Install-Package bootstrap.sass --->
<!--- {% endhighlight %} --->