diff options
| author | Mark Otto <[email protected]> | 2015-06-13 14:05:25 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2015-06-13 14:05:25 -0700 |
| commit | e615ae053c816fa477d158562e20ecaf2609128d (patch) | |
| tree | ac3f31f94e9dd82a2fd51af185aa66ad68e0a24a /docs/getting-started/overview.md | |
| parent | ea803e55ffed3e75d1049b14e448c05235229f94 (diff) | |
| download | bootstrap-e615ae053c816fa477d158562e20ecaf2609128d.tar.xz bootstrap-e615ae053c816fa477d158562e20ecaf2609128d.zip | |
overhaul nav and shit again
- drop the index pages save for examples
- comment out the extend section for now
- fix up spacing fix on team list
Diffstat (limited to 'docs/getting-started/overview.md')
| -rw-r--r-- | docs/getting-started/overview.md | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/docs/getting-started/overview.md b/docs/getting-started/overview.md new file mode 100644 index 000000000..6127f3873 --- /dev/null +++ b/docs/getting-started/overview.md @@ -0,0 +1,54 @@ +--- +layout: page +title: Getting started +--- + +Quickly add Bootstrap to your project via the [Bootstrap CDN](http://bootstrapcdn.com), graciously provided by the [MaxCDN](http://www.maxcdn.com/) folks. + +## Include CSS and JS + +Copy-paste the stylesheet `<link>` into your `<head>` before all other stylesheets. + +<div class="alert alert-warning"> + <strong>Heads up!</strong> Much of this page will be inaccurate during the v4 alpha releases. +</div> + +{% highlight html %} +<link rel="stylesheet" href="{{ site.cdn.css }}"> +{% endhighlight %} + +Then, add the Bootstrap JavaScript—and jQuery—near the end of your pages. It's best placed right before the closing `</body>` tag. Be sure to place jQuery first as our code depends on it. + +{% highlight html %} +<script src="{{ site.cdn.jquery }}"></script> +<script src="{{ site.cdn.js }}"></script> +{% endhighlight %} + +## Page template + +Be sure to have your pages set up with the latest design and development standards. That means: + +* Using an HTML5 doctype +* Forcing Internet Explorer to use its latest rendering mode ([read more]()) +* And, utilizing the viewport meta tag. + +Put it all together and your pages should look like this: + +{% highlight html %} +<!DOCTYPE html> +<html lang="en"> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <link rel="stylesheet" href="{{ site.cdn.css }}"> + </head> + <body> + <h1>Hello, world!</h1> + + <script src="{{ site.cdn.jquery }}"></script> + <script src="{{ site.cdn.js }}"></script> + </body> +</html> +{% endhighlight %} + +And that's it. Happy Bootstrapping! |
