From c770e6883695e8b5d92a1107d3a49b1cb63655b6 Mon Sep 17 00:00:00 2001 From: Tanguy Krotoff Date: Tue, 5 Sep 2017 00:29:05 +0200 Subject: Drop Bower support (#23568) --- docs/4.0/getting-started/download.md | 10 +--------- docs/4.0/getting-started/javascript.md | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'docs/4.0/getting-started') diff --git a/docs/4.0/getting-started/download.md b/docs/4.0/getting-started/download.md index 29d09a5c5..a5a586e9c 100644 --- a/docs/4.0/getting-started/download.md +++ b/docs/4.0/getting-started/download.md @@ -1,7 +1,7 @@ --- layout: docs title: Download -description: Download Bootstrap to get the compiled CSS and JavaScript, source code, or include it with your favorite package managers like npm, Bower, RubyGems, and more. +description: Download Bootstrap to get the compiled CSS and JavaScript, source code, or include it with your favorite package managers like npm, RubyGems, and more. group: getting-started toc: true --- @@ -87,14 +87,6 @@ You can also install and manage Bootstrap's Sass and JavaScript using [Composer] composer require twbs/bootstrap:{{ site.current_version }} {% endhighlight %} -### Bower - -Install and manage Bootstrap's Sass and JavaScript using [Bower](https://bower.io). - -{% highlight bash %} -bower install bootstrap#v{{ site.current_version }} -{% endhighlight %} - ### NuGet 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): diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md index b33789b72..12e7f89ca 100644 --- a/docs/4.0/getting-started/javascript.md +++ b/docs/4.0/getting-started/javascript.md @@ -12,7 +12,7 @@ Plugins can be included individually (using Bootstrap's individual `*.js` files) ## Dependencies -Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs. Also note that **all plugins depend on jQuery** (this means jQuery must be included **before** the plugin files). [Consult our `bower.json`]({{ site.repo }}/blob/v{{ site.current_version }}/bower.json) to see which versions of jQuery are supported. +Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs. Also note that **all plugins depend on jQuery** (this means jQuery must be included **before** the plugin files). [Consult our `package.json`]({{ site.repo }}/blob/v{{ site.current_version }}/package.json) to see which versions of jQuery are supported. Our tooltips and popovers also depend on [Popper.js](https://github.com/FezVrasta/popper.js). -- cgit v1.2.3 From d8881c2f97a082f09fb37ae2c29ccf02e445f320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morva=20Krist=C3=B3f?= Date: Tue, 5 Sep 2017 00:39:00 +0200 Subject: Removing extra bracket in introduction docs. (#23791) --- docs/4.0/getting-started/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/4.0/getting-started') diff --git a/docs/4.0/getting-started/introduction.md b/docs/4.0/getting-started/introduction.md index 6423209be..67aa01203 100644 --- a/docs/4.0/getting-started/introduction.md +++ b/docs/4.0/getting-started/introduction.md @@ -20,7 +20,7 @@ Copy-paste the stylesheet `` into your `` before all other styleshee {% endhighlight %} -Add our optional JavaScript plugins, jQuery, and [Popper.js](https://github.com/FezVrasta/popper.js)) near the end of your pages, right before the closing `` tag. Be sure to place jQuery and Popper.js first, as our JavaScript plugins depend on them. While we use [jQuery's slim build](https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/) in our docs, the full version is also supported. +Add our optional JavaScript plugins, jQuery, and [Popper.js](https://github.com/FezVrasta/popper.js) near the end of your pages, right before the closing `` tag. Be sure to place jQuery and Popper.js first, as our JavaScript plugins depend on them. While we use [jQuery's slim build](https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/) in our docs, the full version is also supported. {% highlight html %} -- cgit v1.2.3 From 88eca66a34ed511591fa22e7f1ce214b40cb3106 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 5 Sep 2017 20:42:16 -0700 Subject: add title to starter template code snippet --- docs/4.0/getting-started/introduction.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/4.0/getting-started') diff --git a/docs/4.0/getting-started/introduction.md b/docs/4.0/getting-started/introduction.md index 67aa01203..08dd83209 100644 --- a/docs/4.0/getting-started/introduction.md +++ b/docs/4.0/getting-started/introduction.md @@ -38,6 +38,7 @@ Be sure to have your pages set up with the latest design and development standar + Hello, world! -- cgit v1.2.3 From fbd1f52f896c599211c24c5c86d04fbbb3e88165 Mon Sep 17 00:00:00 2001 From: vsn4ik Date: Tue, 5 Sep 2017 01:36:09 +0300 Subject: Use site.repo in docs --- docs/4.0/getting-started/browsers-devices.md | 2 +- docs/4.0/getting-started/build-tools.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/4.0/getting-started') diff --git a/docs/4.0/getting-started/browsers-devices.md b/docs/4.0/getting-started/browsers-devices.md index 6ecec961b..fdad8fffd 100644 --- a/docs/4.0/getting-started/browsers-devices.md +++ b/docs/4.0/getting-started/browsers-devices.md @@ -133,7 +133,7 @@ Bootstrap includes a workaround for this, although it is disabled by default. By Even in some modern browsers, printing can be quirky. -As of Safari v8.0, use of the fixed-width `.container` class can cause Safari to use an unusually small font size when printing. See [issue #14868](https://github.com/twbs/bootstrap/issues/14868) and [WebKit bug #138192](https://bugs.webkit.org/show_bug.cgi?id=138192) for more details. One potential workaround is the following CSS: +As of Safari v8.0, use of the fixed-width `.container` class can cause Safari to use an unusually small font size when printing. See [issue #14868]({{ site.repo }}/issues/14868) and [WebKit bug #138192](https://bugs.webkit.org/show_bug.cgi?id=138192) for more details. One potential workaround is the following CSS: {% highlight css %} @media print { diff --git a/docs/4.0/getting-started/build-tools.md b/docs/4.0/getting-started/build-tools.md index dd3cac0be..f8fb03fdc 100644 --- a/docs/4.0/getting-started/build-tools.md +++ b/docs/4.0/getting-started/build-tools.md @@ -8,13 +8,13 @@ toc: true ## Tooling setup -Bootstrap uses [NPM scripts](https://docs.npmjs.com/misc/scripts) for its build system. Our [package.json](https://github.com/twbs/bootstrap/blob/v4-dev/package.json) includes convenient methods for working with the framework, including compiling code, running tests, and more. +Bootstrap uses [NPM scripts](https://docs.npmjs.com/misc/scripts) for its build system. Our [package.json]({{ site.repo }}/blob/v{{ site.current_version }}/package.json) includes convenient methods for working with the framework, including compiling code, running tests, and more. To use our build system and run our documentation locally, you'll need a copy of Bootstrap's source files and Node. Follow these steps and you should be ready to rock: 1. [Download and install Node](https://nodejs.org/download/), which we use to manage our dependencies. -2. Navigate to the root `/bootstrap` directory and run `npm install` to install our local dependencies listed in [package.json](https://github.com/twbs/bootstrap/blob/master/package.json). -4. [Install Ruby][install-ruby], install [Bundler][gembundler] with `gem install bundler`, and finally run `bundle install`. This will install all Ruby dependencies, such as Jekyll and plugins. +2. Navigate to the root `/bootstrap` directory and run `npm install` to install our local dependencies listed in [package.json]({{ site.repo }}/blob/v{{ site.current_version }}/package.json). +3. [Install Ruby][install-ruby], install [Bundler][gembundler] with `gem install bundler`, and finally run `bundle install`. This will install all Ruby dependencies, such as Jekyll and plugins. - **Windows users:** Read [this unofficial guide](http://jekyll-windows.juthilo.com/) to get Jekyll up and running without problems. When completed, you'll be able to run the various commands provided from the command line. @@ -24,7 +24,7 @@ When completed, you'll be able to run the various commands provided from the com ## Using NPM scripts -Our [package.json](https://github.com/twbs/bootstrap/blob/master/package.json) includes the following commands and tasks: +Our [package.json]({{ site.repo }}/blob/v{{ site.current_version }}/package.json) includes the following commands and tasks: | Task | Description | | --- | --- | @@ -36,7 +36,7 @@ Our [package.json](https://github.com/twbs/bootstrap/blob/master/package.json) i Bootstrap uses [Autoprefixer][autoprefixer] (included in our build process) to automatically add vendor prefixes to some CSS properties at build time. Doing so saves us time and code by allowing us to write key parts of our CSS a single time while eliminating the need for vendor mixins like those found in v3. -We maintain the list of browsers supported through Autoprefixer in a separate file within our GitHub repository. See [`/build/postcss.config.js`](https://github.com/twbs/bootstrap/blob/v4-dev/build/postcss.config.js) for details. +We maintain the list of browsers supported through Autoprefixer in a separate file within our GitHub repository. See [/build/postcss.config.js]({{ site.repo }}/blob/v{{ site.current_version }}/build/postcss.config.js) for details. ## Local documentation -- cgit v1.2.3 From 02c7eae47efc11b533d3b2fd076c60154715ebfd Mon Sep 17 00:00:00 2001 From: Herst Date: Thu, 7 Sep 2017 19:11:26 +0200 Subject: Don't create empty columns in documentation --- docs/4.0/getting-started/options.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/4.0/getting-started') diff --git a/docs/4.0/getting-started/options.md b/docs/4.0/getting-started/options.md index 0b83c47f8..2547ef1ad 100644 --- a/docs/4.0/getting-started/options.md +++ b/docs/4.0/getting-started/options.md @@ -46,11 +46,11 @@ All colors available in Bootstrap 4, available as Sass variables and a Sass map
{% for color in site.data.colors %} + {% unless color.name == "white" or color.name == "gray" or color.name == "gray-dark" %}
- {% unless color.name == "white" or color.name == "gray" or color.name == "gray-dark" %}
{{ color.name | capitalize }}
- {% endunless %}
+ {% endunless %} {% endfor %}
-- cgit v1.2.3 From 5da8ff61ad6dbe080f32f1bdc999466f247a3f7e Mon Sep 17 00:00:00 2001 From: vsn4ik Date: Fri, 8 Sep 2017 03:06:02 +0300 Subject: Use CSS3 pseudo elements in documentation --- docs/4.0/getting-started/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/4.0/getting-started') diff --git a/docs/4.0/getting-started/introduction.md b/docs/4.0/getting-started/introduction.md index 08dd83209..4035ae8f4 100644 --- a/docs/4.0/getting-started/introduction.md +++ b/docs/4.0/getting-started/introduction.md @@ -97,7 +97,7 @@ On the rare occasion you need to override it, use something like the following: } {% endhighlight %} -With the above snippet, nested elements—including generated content via `:before` and `:after`—will all inherit the specified `box-sizing` for that `.selector-for-some-widget`. +With the above snippet, nested elements—including generated content via `::before` and `::after`—will all inherit the specified `box-sizing` for that `.selector-for-some-widget`. Learn more about [box model and sizing at CSS Tricks](https://css-tricks.com/box-sizing/). -- cgit v1.2.3