]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes #21195: Add more table of contents to pages with longer contents
authorMark Otto <markdotto@gmail.com>
Fri, 25 Nov 2016 22:01:06 +0000 (14:01 -0800)
committerMark Otto <markdotto@gmail.com>
Fri, 25 Nov 2016 22:01:06 +0000 (14:01 -0800)
docs/about/brand.md
docs/components/badge.md
docs/getting-started/accessibility.md
docs/getting-started/build-tools.md
docs/getting-started/download.md
docs/layout/overview.md
docs/layout/responsive-utilities.md
docs/utilities/spacing.md
docs/utilities/typography.md

index 3687bdceb009bdd00d7bc07a5b1ef27fbe43e333..601051c2f87decb2a982a4fb15a8356fc8d6ccaf 100644 (file)
@@ -7,6 +7,11 @@ group: about
 
 Have a need for Bootstrap's brand resources? Great! We have only a few guidelines we follow, and in turn ask you to follow as well. These guidelines were inspired by MailChimp's [Brand Assets](https://mailchimp.com/about/brand-assets/).
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Mark and logo
 
 Use either the Bootstrap mark (a capital **B**) or the standard logo (just **Bootstrap**). It should always appear in Helvetica Neue Bold. **Do not use the Twitter bird** in association with Bootstrap.
index 55a6df4f7d8b2fbab955a946b724c3641904f413..4e4bafcde06ed2f553721e19935ef2b2ab171e0f 100644 (file)
@@ -7,6 +7,11 @@ group: components
 
 Small and adaptive tag for adding context to just about any content.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Example
 
 Badges scale to match the size of the immediate parent element by using relative font sizing and `em` units.
index 9b2fc37db1ec2b6093e14626985abc130959f70f..a13ea286ef9c5f9e3231b7a7037723d9286215b4 100644 (file)
@@ -7,6 +7,11 @@ group: getting-started
 
 Bootstrap follows common web standards and—with minimal extra effort—can be used to create sites that are accessible to those using <abbr title="Assistive Technology" class="initialism">AT</abbr>.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Component requirements
 
 Some common HTML elements are always in need for basic accessibility enhancements through `role`s and Aria attributes. Below is a list of some of the most frequently used ones.
index e629616634a98fa60b6cbdfa59d5437fc1c1c166..a48304ebcc4c27b60af61988cbed5e84233ddc96 100644 (file)
@@ -7,6 +7,11 @@ group: getting-started
 
 Bootstrap uses [Grunt](http://gruntjs.com) for its CSS and JavaScript build system and Jekyll for the written documentation. Our Gruntfile includes convenient methods for working with the framework, including compiling code, running tests, and more.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Tooling setup
 
 To use our Gruntfile and run our documentation locally, you'll need a copy of Bootstrap's source files, Node, and Grunt. Follow these steps and you should be ready to rock:
index a8168d9fa79ae13af0f38e907a5ae7f65333df2d..4a1b74a9b644059aa9bebbd359f7c8ec954f3361 100644 (file)
@@ -7,18 +7,23 @@ group: getting-started
 
 **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.
 
-### Bootstrap CSS and JS
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
+## Bootstrap CSS and JS
 
 **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.
 
 <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>
 
-### Source files
+## Source files
 **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).
 
 <a href="{{ site.download.source }}" class="btn btn-bs btn-outline" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download source');">Download source</a>
 
-### Bootstrap CDN
+## Bootstrap CDN
 
 Skip the download and use the Bootstrap CDN to deliver Bootstrap's compiled CSS and JS to your project.
 
index e4d6bc49ed891e23d403c0d23cffd2dabeadbe5a..758854b8aa875324303adfe9735494413fc94017 100644 (file)
@@ -8,6 +8,11 @@ redirect_from: "/layout/"
 
 Bootstrap includes several components and options for laying out your project, including wrapping containers, a powerful grid system, a flexible media object, and responsive utility classes.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Containers
 
 Containers are the most basic layout element in Bootstrap and are **required when using our grid system**. Choose from a responsive, fixed-width container (meaning its `max-width` changes at each breakpoint) or fluid-width (meaning it's `100%` wide all the time).
index 6a7a1bb0914da4e29aaa1fa1c92b0658b1e5864b..69f6ae1be933be323c9e5f11c1593d3d64275402 100644 (file)
@@ -9,6 +9,11 @@ For faster mobile-friendly development, use these utility classes for showing an
 
 Try to use these on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ##  Available classes
 
 * The `.hidden-*-up` classes hide the element when the viewport is at the given breakpoint or wider. For example, `.hidden-md-up` hides an element on medium, large, and extra-large viewports.
index 91dab4f02d97ebf4e40623663a05da728e075746..0a513294146c7e0dc825c4a47d8827f465b1d977 100644 (file)
@@ -6,6 +6,11 @@ group: utilities
 
 Assign responsive-friendly `margin` or `padding` values to an element or a subset of its sides with shorthand classes. Includes support for individual properties, all properties, and vertical and horizontal properties. Classes are built from a default Sass map ranging from `.25rem` to `3rem`.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Notation
 
 Spacing utilities that apply to all breakpoints, from `xs` to `xl`, have no breakpoint abbreviation in them. This is because those classes are applied from `min-width: 0` and up, and thus are not bound by a media query. The remaining breakpoints, however, do include a breakpoint abbreviation.
index c5628dad1be0b0f0b705ede3f32d5c9cf59e19fd..7db133d054e7b62b8ec09ab561d6604601ec05d3 100644 (file)
@@ -6,6 +6,11 @@ group: utilities
 
 The following utilities can be used to add additional styles to texts.
 
+## Contents
+
+* Will be replaced with the ToC, excluding the "Contents" header
+{:toc}
+
 ## Text alignment
 
 Easily realign text to components with text alignment classes.