1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-24 12:40:58 +00:00

clearer js instructions on how to include plugins

This commit is contained in:
Mark Otto 2013-03-29 13:43:30 -07:00
parent 3055f09a90
commit d3fe506f04

View File

@ -77,6 +77,7 @@ title: Bootstrap Documentation
<p class="lead">Make use of a super basic HTML template, or dive into a few examples we've started for you. We encourage folks to iterate on these examples and not simply use them as an end result.</p>
<h3>HTML template</h3>
<p>Copy and paste the HTML from below to get started with a bare bones Bootstrap document.</p>
{% highlight html linenos %}
<!DOCTYPE html>
<html>
@ -88,7 +89,10 @@ title: Bootstrap Documentation
</head>
<body>
<h1>Hello, world!</h1>
<!-- JavaScript plugins (requires jQuery) -->
<script src="http://code.jquery.com/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<!-- Optionally enable responsive features in IE8 -->
@ -4501,6 +4505,8 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<div class="bs-docs-section-header" id="js">
<h1>JavaScript plugins</h1>
</div>
@ -4514,7 +4520,7 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
</div>
<h3>Individual or compiled</h3>
<p>Plugins can be included individually (though some have required dependencies), or all at once. Both <strong>bootstrap.js</strong> and <strong>bootstrap.min.js</strong> contain all plugins in a single file.</p>
<p>Plugins can be included individually (though some have required dependencies), or all at once. <strong>Do attempt to include both.</strong> Both <strong>bootstrap.js</strong> and <strong>bootstrap.min.js</strong> contain all plugins in a single file.</p>
<h3>Data attributes</h3>
<p>You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first class API and should be your first consideration when using a plugin.</p>