]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add markdown toc stuff
authorMark Otto <markdotto@gmail.com>
Fri, 29 May 2015 08:58:52 +0000 (01:58 -0700)
committerMark Otto <markdotto@gmail.com>
Fri, 29 May 2015 08:58:52 +0000 (01:58 -0700)
35 files changed:
docs/components/alerts.md
docs/components/badges.md
docs/components/button-dropdown.md
docs/components/button-group.md
docs/components/buttons.md
docs/components/card.md
docs/components/carousel.md
docs/components/code.md
docs/components/collapse.md
docs/components/dropdowns.md
docs/components/forms.md
docs/components/images.md
docs/components/input-group.md
docs/components/list-group.md
docs/components/modal.md
docs/components/navbar.md
docs/components/navs.md
docs/components/pagination.md
docs/components/popovers.md
docs/components/progress.md
docs/components/reboot.md
docs/components/scrollspy.md
docs/components/tables.md
docs/components/tooltips.md
docs/components/typography.md
docs/components/utilities.md
docs/getting-started/compiling.md
docs/getting-started/contents.md
docs/getting-started/download.md
docs/getting-started/javascript.md
docs/getting-started/support.md
docs/layout/flexbox.md
docs/layout/grid.md
docs/layout/media.md
docs/layout/scaffolding.md

index a7d43400ad08b561c0349ce16fa69ab55a46d3a8..b3a2e1b00cdc7d1b0e3e4b90c603e86730398c5e 100644 (file)
@@ -5,6 +5,11 @@ title: Alerts
 
 Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Examples
 
 Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use one of the four **required** contextual classes (e.g., `.alert-success`). For inline dismissal, use the [alerts jQuery plugin](#dismissing).
index 0828f151d27b89cd4ecc9361b1998d554e66c8c5..324053fec3129d238fe9954d9f09bfb9ddb1b4fb 100644 (file)
@@ -5,6 +5,11 @@ title: Badges
 
 Badges are indicators for new or unread activity and include support for the active states of our [navigation components](/components/navs/), links, buttons, and more.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 {% example html %}
 <a href="#">Inbox <span class="badge">42</span></a>
 {% endexample %}
index 1e44d7853f544507242a79934dbd851ec9187de0..2e7b9d8dea32d4c1c401fcfe5ab1d76ab2e236f9 100644 (file)
@@ -11,6 +11,11 @@ Use any button to trigger a dropdown menu by placing it within a `.btn-group` an
 Button dropdowns require the [dropdown plugin](../javascript/#dropdowns) to be included in your version of Bootstrap.
 {% endcallout %}
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ### Single button dropdowns
 
 Turn a button into a dropdown toggle with some basic markup changes.
index 9f223c7de9232f36854ece6f1287a112fe916c09..979dac1c1bf22c524c5b5e4c838f289fdf941791 100644 (file)
@@ -5,6 +5,11 @@ title: Button group
 
 Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with [our buttons plugin](../javascript/#buttons).
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 {% callout warning %}
 #### Tooltips & popovers in button groups require special setting
 
index 62727fba49731d4736a63511389b4579e9ea7d8f..4d2fc47be33565287980b287285458f83aa93075 100644 (file)
@@ -5,6 +5,11 @@ title: Buttons
 
 Buttons are used to execute actions in forms, dialogs, and more. Use any of the available button classes to quickly create a styled button.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Examples
 
 Bootstrap includes six predefined button styles, each serving its own semantic purpose.
index 1a7a2aaca86c3cde268c21a57f2a2dc7b8e4bbb8..8c5bcc9b4d182f7f3f9b216e92b9e96ef53b250c 100644 (file)
@@ -7,6 +7,11 @@ A **card** is a flexible and extensible content container. It includes options f
 
 If you're familiar with Bootstrap 3, cards replace our old panels, wells, and thumbnails. Similar functionality to those components is available as modifier classes for cards.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Example
 
 Cards require a small amount of markup and classes to provide you with as much control as possible. These classes and markup are flexible though and can typically be remixed and extended with ease.
@@ -154,7 +159,9 @@ Add an optional header and/or footer within a card.
     <a href="#" class="btn btn-primary">Go somewhere</a>
   </div>
 </div>
+{% endexample %}
 
+{% example html %}
 <div class="card">
   <div class="card-header">
     Quote
@@ -182,21 +189,6 @@ Add an optional header and/or footer within a card.
     2 days ago
   </div>
 </div>
-
-<div class="card text-center">
-  <div class="card-header">
-    Quote
-  </div>
-  <div class="card-block">
-    <blockquote class="card-blockquote">
-      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
-      <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
-    </blockquote>
-  </div>
-  <div class="card-footer text-muted">
-    2 days ago
-  </div>
-</div>
 {% endexample %}
 
 ## Image caps
@@ -228,7 +220,7 @@ Turn an image into a card background and overlay your card's text. Depending on
 
 {% example html %}
 <div class="card card-inverse">
-  <img class="card-img" data-src="holder.js/270x270/#55595c:#373a3c/text:Card image" alt="Card image">
+  <img class="card-img" data-src="holder.js/100%x270/#55595c:#373a3c/text:Card image" alt="Card image">
   <div class="card-img-overlay">
     <h4 class="card-title">Card title</h4>
     <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
index 138358f37acafadb718797ba16fab19bb60d2c08..0beb89f1c3d7eeb10e4d52d95c627ffacbaea0fe 100644 (file)
@@ -5,6 +5,11 @@ title: Carousel
 
 A slideshow component for cycling through elements—images or slides of text—like a carousel. **Nested carousels are not supported.**
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Example
 
 {% example html %}
index 423987d92fdf1a36bc0e1a164a86c430290907ae..9c7f92bae151ab9bfec972d7a833725db67f5489 100644 (file)
@@ -5,6 +5,11 @@ title: Code
 
 Styles for inline code snippets and longer, multiline blocks of code.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Inline code
 
 Wrap inline snippets of code with `code`. Be sure to escape HTML angle brackets.
index e61fb82b5268ea66dda29d2675c1c16a090920e1..e3eff9e69c5e44c5df3cbe1d18c8b1254b01786f 100644 (file)
@@ -5,6 +5,11 @@ title: Collapse
 
 Flexible plugin that utilizes a handful of classes for easy toggle behavior.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 {% callout danger %}
 #### Plugin dependency
 
index a24093d9a129c6543060d4b2e28eceeb86a25bdc..f806f925684d989ea41acd38b5bcdc326dbe58f9 100644 (file)
@@ -5,6 +5,11 @@ title: Dropdowns
 
 Toggleable, contextual menu for displaying lists of links. Made interactive with the included dropdown JavaScript plugin.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Example
 
 Wrap the dropdown's trigger and the dropdown menu within `.dropdown`, or another element that declares `position: relative;`. Then add the menu's HTML.
index b2e2263b62ae9ea41a83489e4df5286d3c6e8f97..2c4e3979d300ac8a58b02996b58103d145a598ef 100644 (file)
@@ -5,6 +5,11 @@ title: Forms
 
 Bootstrap provides several form control styles, layout options, and custom components for creating a wide variety of forms.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Form controls
 
 Bootstrap's form controls expand on [our Rebooted form styles](/components/reboot/#forms) with classes. Use these classes to opt into their customized displays for a more consistent rendering across browsers and devices. The example form below demonstrates common HTML form elements that receive updated styles from Bootstrap with additional classes.
index dca37a5e845e5591c2804a607c27edbf7e2a0cd6..afcf1c9d2f0f8195614fac64b9fce7520d34d9ce 100644 (file)
@@ -5,6 +5,11 @@ title: Images
 
 Opt your images into responsive behavior (so they never become larger than their parent elements) and add lightweight styles to them—all via classes.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Responsive images
 
 Images in Bootstrap are made responsive with `.img-responsive`. `max-width: 100%;` and `height: auto;` are applied to the image so that it scales with the parent element.
index c89b44e87bc36ccafbd0fe6f593a4eeb021e3e63..3c933b862fb94870546a356e832a60b9e65a76d7 100644 (file)
@@ -5,6 +5,11 @@ title: Input group
 
 Easily extend form controls by adding text, buttons, or button groups on either side of textual `<input>`s.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Basic example
 
 Place one add-on or button on either side of an input. You may also place one on both sides of an input. **We do not support multiple add-ons on a single side, nor multiple form-controls in a single input group.**
index 6324032f53b61998d07d78446f99dc5ccd0dbf2c..6e6faf75f76982d1dd11068b1b4d23a0ac9ecb43 100644 (file)
@@ -5,7 +5,12 @@ title: List group
 
 List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content.
 
-<h3 id="list-group-basic">Basic example</h3>
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
+## Basic example
 <p>The most basic list group is simply an unordered list with list items, and the proper classes. Build upon it with the options that follow, or your own CSS as needed.</p>
 
 {% example html %}
@@ -18,7 +23,7 @@ List groups are a flexible and powerful component for displaying not only simple
 </ul>
 {% endexample %}
 
-### Badges
+## Badges
 
 Add the badges component to any list group item and it will automatically be positioned on the right.
 
@@ -39,7 +44,7 @@ Add the badges component to any list group item and it will automatically be pos
 </ul>
 {% endexample %}
 
-### Linked items
+## Linked items
 
 Linkify list group items by using anchor tags instead of list items (that also means a parent `<div>` instead of an `<ul>`). No need for individual parents around each element.
 
@@ -55,7 +60,7 @@ Linkify list group items by using anchor tags instead of list items (that also m
 </div>
 {% endexample %}
 
-### Disabled items
+## Disabled items
 
 Add `.disabled` to a `.list-group-item` to gray it out to appear disabled.
 
@@ -71,7 +76,7 @@ Add `.disabled` to a `.list-group-item` to gray it out to appear disabled.
 </div>
 {% endexample %}
 
-### Contextual classes
+## Contextual classes
 
 Use contextual classes to style list items, default or linked. Also includes `.active` state.
 
@@ -90,7 +95,7 @@ Use contextual classes to style list items, default or linked. Also includes `.a
 </div>
 {% endexample %}
 
-### Custom content
+## Custom content
 
 Add nearly any HTML within, even for linked list groups like the one below.
 
index b80b41405b5da63d73745c088f8bc8eb587459e5..80d0820fc70371b6284a0bb7466827425d21da49 100644 (file)
@@ -5,6 +5,11 @@ title: Modal
 
 Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 **Due to how HTML5 defines its semantics, the `autofocus` HTML attribute has no effect in Bootstrap modals.** To achieve the same effect, use some custom JavaScript:
 
 {% highlight js %}
index a28ed37147fab0fdd7a76198e6d8c69c9dab9a95..1e53de16b52808d642efd2c998467b629fa63f3f 100644 (file)
@@ -5,6 +5,11 @@ title: Navbar
 
 The navbar is a simple wrapper for positioning branding, navigation, and other elements. It's easily extensible and with the help of our collapse plugin it can easily integrate offscreen content.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ### Basics
 
 Here's what you need to know before getting started with the navbar:
index b69d063a7dff5dd42e069a8a5b01ae7adbb26f96..9096dcdce8c9fb5c40e994869e1b483fee602a88 100644 (file)
@@ -5,6 +5,11 @@ title: Navs
 
 Navigation available in Bootstrap share general markup and styles, from the base `.nav` class to the active and disabled states. Swap modifier classes to switch between each style.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Regarding accessibility
 
 If you are using navs to provide a navigation bar, be sure to add a `role="navigation"` to the most logical parent container of the `<ul>`, or wrap a `<nav>` element around the whole navigation. Do not add the role to the `<ul>` itself, as this would prevent it from being announced as an actual list by assistive technologies.
index 35cebe43517c7e9a2a3dcdd1ad2aedfbae46d828..6a49de48bc40c15a6058c78e51da9ddbf2b9bbe6 100644 (file)
@@ -5,6 +5,11 @@ title: Pagination
 
 Provide pagination links for your site or app with the multi-page pagination component, or the simpler [pager alternative](#pagination-pager).
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Default pagination
 
 Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.
index 478e75f0bd7a057fb493d649384ed15375fa954f..3a3946d819612d3e4a30b51a658a5c5bc9a81695 100644 (file)
@@ -5,6 +5,11 @@ title: Popovers
 
 Add small overlays of content, like those found in iOS, to any element for housing secondary information.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Overview
 
 Things to know when using the popover plugin:
index 47e099e624b836420e8892848e5c1904f6d47e3c..f69d6012c68ecd48907c3ed47020b0042c2c08af 100644 (file)
@@ -5,6 +5,11 @@ title: Progress
 
 Stylize the HTML5 `<progress>` element with a few extra classes and some crafty browser-specific CSS. Be sure to read up on the browser support.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ### Example
 
 {% example html %}
index d1ee0a8698ecc37ba75ce01dfe5e24872ea03a6c..b542976d54035f30edde62408a61a4abdec559fc 100644 (file)
@@ -7,6 +7,11 @@ Part of Bootstrap's job is to provide an elegant, consistent, and simple baselin
 
 Reboot builds upon Normalize, providing many HTML elements with somewhat opinionated styles using only element selectors. Additional styling is done only with classes. For example, we reboot some `<table>` styles for a simpler baseline and later provide `.table`, `.table-bordered`, and more.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Approach
 
 Here are our guidelines and reasons for choosing what to override in Reboot:
index dde50fc2af4c186c2da54d346b54e3bb098280d3..6469612c09fbed97d851d0b5a93569970418a551 100644 (file)
@@ -3,6 +3,11 @@ layout: page
 title: Srollspy
 ---
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Example in navbar
 
 The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.
index 8856a08b7697396880e6fdf361bf886fd200313d..0bcddf21b90d76aa6d89827e1b784b3ebf344932 100644 (file)
@@ -5,6 +5,11 @@ title: Tables
 
 Due to the widespread use of tables across third-party widgets like calendars and date pickers, we've designed our tables to be **opt-in**. Just add the base class `.table` to any `<table>`.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Basic example
 
 {% example html %}
index 3bb3763d504f7504655d5ad604aaf6541c001304..d59b330ff1ad5f3e7106d9866dce2d84871481ea 100644 (file)
@@ -5,6 +5,11 @@ title: Tooltips
 
 Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Overview
 
 Things to know when using the popover plugin:
index 4c94349ae195aaa05b6dfbf952d8aac2d38d0950..60cc87ead42b600e00197ac9704617589470bd66 100644 (file)
@@ -5,6 +5,11 @@ title: Typography
 
 Bootstrap includes simple and easily customized typography for headings, body text, lists, and more. For even more control, check out the [textual utility classes](/components/utilities/).
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Global settings
 
 Bootstrap sets basic global display, typography, and link styles. Specifically, we:
index 1587d660acf1dd331e96c6fc4215302f6d0aa6a9..563e4b7f678da9d805552165a4569b2d343c0a6a 100644 (file)
@@ -5,6 +5,11 @@ title: Utility classes
 
 Bootstrap includes dozens of utilities—classes with a single purpose. They're designed to keep the number of declarations in your CSS down while allowing for quick and easy development.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ### Text alignment
 
 Easily realign text to components with text alignment classes.
index bceb25bcb5bcb2f9c676d98cf1c5bb8409aa0dba..595f52b48794180cd383c5e00da1a392b3bc133b 100644 (file)
@@ -5,7 +5,12 @@ title: Compiling
 
 Bootstrap uses [Grunt](http://gruntjs.com) for its build system, with convenient methods for working with the framework. It's how we compile our code, run tests, and more.
 
-### Install Grunt
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
+## Install Grunt
 
 **To install Grunt, you must first [download and install node.js](http://nodejs.org/download/)** (which includes npm). npm stands for [node packaged modules](http://npmjs.com/) and is a way to manage development dependencies through node.js.
 
@@ -22,7 +27,7 @@ When completed, you'll be able to run the various Grunt commands provided from t
 [install-ruby]: https://www.ruby-lang.org/en/documentation/installation/
 [gembundler]: http://bundler.io/
 
-### Available Grunt commands
+## Available Grunt commands
 
 | Task | Description |
 | --- | --- |
@@ -32,9 +37,9 @@ When completed, you'll be able to run the various Grunt commands provided from t
 | `grunt docs` | Builds and tests CSS, JavaScript, and other assets which are used when running the documentation locally via `jekyll serve`. |
 | `grunt watch` | This is a convenience method for watching just Sass files and automatically building them whenever you save. |
 
-### Use another Sass compiler
-Bootstrap is compiled with [libsass][libsass] by default.
-Use another compiler by setting the `TWBS_SASS` environment variable to:
+## Use another Sass compiler
+
+Bootstrap is compiled with [libsass][libsass] by default. Use another compiler by setting the `TWBS_SASS` environment variable to:
 
 * `sass` to use [Ruby Sass][ruby-sass] via [grunt-contrib-sass][grunt-contrib-sass].
 * `libsass` (default) to use [libsass][libsass] via [grunt-sass][grunt-sass].
@@ -46,6 +51,6 @@ For example, run `TWBS_SASS=sass grunt` to test and build Bootstrap with Ruby Sa
 [libsass]: https://github.com/sass/libsass
 [grunt-sass]: https://github.com/sindresorhus/grunt-sass
 
-### Troubleshooting dependencies
+## Troubleshooting dependencies
 
 Should you encounter problems with installing dependencies or running Grunt commands, uninstall all previous dependency versions (global and local). Then, rerun `npm install`.
index 3bfbafb4c831f54b70e6c5e19f4ceba252cf921f..20f8786cd5199d0d922d53ece7df71ed6a0397db 100644 (file)
@@ -11,7 +11,12 @@ Bootstrap can come in one of two forms, as precompiled or source code. Learn mor
 Please note that **all JavaScript plugins require jQuery** to be included, as shown in the [starter template](../quick-start). [Consult our `bower.json`]({{ site.repo }}/blob/v{{ site.current_version }}/bower.json) to see which versions of jQuery are supported.
 {% endcallout %}
 
-### Precompiled Bootstrap
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
+## Precompiled Bootstrap
 
 Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:
 
@@ -30,7 +35,7 @@ bootstrap/
 
 This is the most basic form of Bootstrap: precompiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). CSS [source maps](https://developers.google.com/chrome-developer-tools/docs/css-preprocessors) (`bootstrap.*.map`) are available for use with certain browsers' developer tools.
 
-### Bootstrap source code
+## Bootstrap source code
 
 The Bootstrap source code download includes the precompiled CSS and JavaScript assets, along with source Sass, JavaScript, and documentation. More specifically, it includes the following and more:
 
index 8bebeea4ccee42eaaeaed966215f1086e4838a9d..fdb4d8d834bf993e1ffc1076945e02f3de600020 100644 (file)
@@ -5,6 +5,11 @@ title: Download
 
 Bootstrap is available for download via ZIP file in two flavors: precompiled CSS and Javascript, and the complete source code with documentation.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 {% comment %}
 ## Optional builds
 
@@ -23,25 +28,25 @@ Download the entire project and quickly get developing. Includes all CSS and Jav
 ---
 {% endcomment %}
 
-### Precompiled
+## Precompiled
 
 Compiled and minified CSS and JavaScript. No docs or original source files are included.
 
 <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>
 
-### Download source and docs
+## Download source and docs
 
 Source Sass, JavaScript, and documentation. **Requires a Sass compiler and [some setup](../compiling).**
 
 <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>
 
-### Bower
+## Bower
 
 You can also install and manage Bootstrap's Sass, CSS, and JavaScript using [Bower](http://bower.io).
 
 {% highlight bash %}$ bower install bootstrap{% endhighlight %}
 
-### npm
+## npm
 
 Bootstrap is available as [an npm package](https://www.npmjs.org/package/bootstrap). Install it into your Node powered apps with:
 
@@ -54,19 +59,18 @@ Bootstrap's `package.json` contains some additional metadata under the following
 - `less` - path to Bootstrap's main [Less](http://lesscss.org) source file
 - `style` - path to Bootstrap's non-minified CSS that's been precompiled using the default settings (no customization)
 
-### Meteor
+## Meteor
 
 {% highlight bash %}
 $ meteor add twbs:bootstrap
 {% endhighlight %}
 
-### Composer
+## Composer
 
 {% highlight bash %}
 $ composer require twbs/bootstrap
 {% endhighlight %}
 
-
-### Autoprefixer required
+## Autoprefixer required
 
 Bootstrap uses [Autoprefixer](https://github.com/postcss/autoprefixer) to deal with [CSS vendor prefixes](http://webdesign.about.com/od/css/a/css-vendor-prefixes.htm). If you're compiling Bootstrap from its source Sass and not using our Gruntfile, you'll need to integrate Autoprefixer into your build process yourself. If you're using precompiled Bootstrap or using our Gruntfile, you don't need to worry about this as Autoprefixer is already integrated into our Gruntfile.
index 759c2b80781b16c8238c519bf1807f810c465456..ec012d302b4eb4582093350db788bcdab7c0fe44 100644 (file)
@@ -5,15 +5,20 @@ title: JavaScript
 
 Bootstrap includes a handful of JavaScript to help bring some of our components to life. Learn more about how to include it, our data and programmatic API options, and more.
 
-### Individual or compiled
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
+## Individual or compiled
 
 Plugins can be included individually (using Bootstrap's individual `*.js` files), or all at once using `bootstrap.js` or the minified `bootstrap.min.js` (don't include both).
 
-### Dependencies
+## 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.
 
-### Data attributes
+## Data attributes
 
 Nearly all Bootstrap plugins can be enabled and configured through HTML alone with data attributes (our preferred way of using JavaScript functionality). Be sure to **only use one set of data attributes on a single element** (e.g., you cannot trigger a tooltip and modal from the same button.)
 
@@ -29,7 +34,7 @@ Alternatively, to target a specific plugin, just include the plugin's name as a
 $(document).off('.alert.data-api')
 {% endhighlight %}
 
-### Programmatic API
+## Programmatic API
 
 We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.
 
@@ -47,14 +52,14 @@ $('#myModal').modal('show')                // initializes and invokes show immed
 
 Each plugin also exposes its raw constructor on a `Constructor` property: `$.fn.popover.Constructor`. If you'd like to get a particular plugin instance, retrieve it directly from an element: `$('[rel="popover"]').data('popover')`.
 
-#### Default settings
+### Default settings
 You can change the default settings for a plugin by modifying the plugin's `Constructor.DEFAULTS` object:
 
 {% highlight js %}
 $.fn.modal.Constructor.DEFAULTS.keyboard = false // changes default for the modal plugin's `keyboard` option to false
 {% endhighlight %}
 
-### No conflict
+## No conflict
 
 Sometimes it is necessary to use Bootstrap plugins with other UI frameworks. In these circumstances, namespace collisions can occasionally occur. If this happens, you may call `.noConflict` on the plugin you wish to revert the value of.
 
@@ -63,7 +68,7 @@ var bootstrapButton = $.fn.button.noConflict() // return $.fn.button to previous
 $.fn.bootstrapBtn = bootstrapButton            // give $().bootstrapBtn the Bootstrap functionality
 {% endhighlight %}
 
-### Events
+## Events
 
 Bootstrap provides custom events for most plugins' unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. `show`) is triggered at the start of an event, and its past participle form (ex. `shown`) is triggered on the completion of an action.
 
@@ -75,7 +80,7 @@ $('#myModal').on('show.bs.modal', function (e) {
 })
 {% endhighlight %}
 
-### Version numbers
+## Version numbers
 
 The version of each of Bootstrap's jQuery plugins can be accessed via the `VERSION` property of the plugin's constructor. For example, for the tooltip plugin:
 
@@ -83,7 +88,7 @@ The version of each of Bootstrap's jQuery plugins can be accessed via the `VERSI
 $.fn.tooltip.Constructor.VERSION // => "{{ site.current_version }}"
 {% endhighlight %}
 
-### No special fallbacks when JavaScript is disabled
+## No special fallbacks when JavaScript is disabled
 
 Bootstrap's plugins don't fall back particularly gracefully when JavaScript is disabled. If you care about the user experience in this case, use [`<noscript>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript) to explain the situation (and how to re-enable JavaScript) to your users, and/or add your own custom fallbacks.
 
index cf87535bafe4dd2bc1ef93183ade5836cece4170..81c3986305c15989fd838e790794c17f7290952d 100644 (file)
@@ -5,6 +5,11 @@ title: Supported platforms
 
 Bootstrap is built to work best with the latest techniques. As such, older desktop and mobile browsers may display differently, but should remain fully functional.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Supported browsers
 
 Bootstrap supports the **latest, stable releases** of all major browsers and platforms. On Windows, **we support Internet Explorer 9-11**. More specific support information is provided below.
index e9087c766091552bed3dd6fd29549e03864e532e..05a407706747591f03098561e49e2c60455d0ba8 100644 (file)
@@ -5,6 +5,11 @@ title: Flexbox
 
 Flexbox support has finally come to Bootstrap. Opt-in to the new CSS layout styles with the flick of a variable or the swap of a stylesheet.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## What's included
 
 Flexbox support is available for a number of Bootstrap's components:
index 78ab7aed6341e6c2dd8141e8eeea949a1858999e..7415d33f7254934a3512f88fc6f5cac07c62e761 100644 (file)
@@ -7,6 +7,11 @@ Bootstrap includes a powerful mobile-first grid system for building layouts of a
 
 There are multiple tiers for different device sizes, available via our predefined classes or semantic mixins.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ### Quick start
 
 - Example grid class
index 5104895ecf5f08d62e9ba4c1601a6da937f3dcf3..8e3d9a6134274ea0906e02c51669982a0e4d8c9a 100644 (file)
@@ -5,7 +5,12 @@ title: Media
 
 Abstract object styles for building custom components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.
 
-### Default media
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
+## Default media
 
 The default media allow to float a media object (images, video, audio) to the left or right of a content block.
 
@@ -21,7 +26,7 @@ The default media allow to float a media object (images, video, audio) to the le
 </div>
 {% endexample %}
 
-### Nesting
+## Nesting
 
 Media components can also be nested.
 
@@ -48,7 +53,7 @@ Media components can also be nested.
 </div>
 {% endexample %}
 
-### Alignment
+## Alignment
 
 The images or other media can be aligned top, middle, or bottom. The default is top aligned.
 
@@ -97,7 +102,7 @@ The images or other media can be aligned top, middle, or bottom. The default is
 </div>
 {% endexample %}
 
-### Media list
+## Media list
 
 With a bit of extra markup, you can use media inside list (useful for comment threads or articles lists).
 
index 7087b7deb86b7162903a67b9d7024c093d5542ef..e20bc37a9cbe7b47ff0bb08eb462e85fab818c83 100644 (file)
@@ -7,7 +7,12 @@ The scaffolding of Bootstrap refers to our general approach to building the proj
 
 Bootstrap's general approach to writing HTML, CSS, and JavaScript, as well as our core settings, is referred to as scaffolding. This includes required responsive and cross browser enhancements, dependencies, and more.
 
-### HTML5 doctype
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
+## HTML5 doctype
 
 Bootstrap makes use of certain HTML elements and CSS properties that **require** the use of the HTML5 doctype. Include it at the beginning of all your projects.
 
@@ -18,7 +23,7 @@ Bootstrap makes use of certain HTML elements and CSS properties that **require**
 </html>
 {% endhighlight %}
 
-### Mobile first
+## Mobile first
 
 Bootstrap is developed *mobile first*, a strategy in which we optimize code for mobile devices first and then scale up components as necessary using CSS media queries.
 
@@ -28,11 +33,11 @@ To ensure proper rendering and touch zooming, **add the viewport meta tag** to y
 <meta name="viewport" content="width=device-width, initial-scale=1">
 {% endhighlight %}
 
-### Normalize
+## Normalize
 
 For improved cross-browser rendering, we use [Normalize.css](http://necolas.github.io/normalize.css/) to correct small inconsistencies across browsers and devices.
 
-### Important CSS resets
+## Important CSS resets
 
 Still need to do this section. Should port the third party section about box sizing and edit it for here, then add the rest of the list items.