From 35c90fe13d65ee14283373d4afba316c68bb4e8d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 10 Jul 2014 02:24:13 -0700 Subject: rewrite getting started quick start and download in markdown --- docs/_includes/getting-started/download.html | 46 --------------- docs/_includes/getting-started/download.md | 84 ++++++++++++++++++++++++++++ docs/_includes/nav/docs.html | 5 ++ docs/_includes/nav/getting-started.html | 9 +++ 4 files changed, 98 insertions(+), 46 deletions(-) delete mode 100644 docs/_includes/getting-started/download.html create mode 100644 docs/_includes/getting-started/download.md (limited to 'docs/_includes') diff --git a/docs/_includes/getting-started/download.html b/docs/_includes/getting-started/download.html deleted file mode 100644 index 5e9bfd838..000000000 --- a/docs/_includes/getting-started/download.html +++ /dev/null @@ -1,46 +0,0 @@ -
-

Download

- -

Bootstrap (currently v{{ site.current_version }}) has a few easy ways to quickly get started, each one appealing to a different skill level and use case. Read through to see what suits your particular needs.

- -
-
-

Bootstrap

-

Compiled and minified CSS and JavaScript. No docs or original source files are included.

-

- Download Bootstrap -

-
-
-

Source code

-

Source Less, JavaScript, and documentation. Requires a Less compiler and some setup.

-

- Download source -

-
-
-

Sass

-

Bootstrap ported from Less to Sass for easy inclusion in Rails, Compass, or Sass-only projects.

-

- Download Sass -

-
-
- -

Bootstrap CDN

-

The folks over at MaxCDN graciously provide CDN support for Bootstrap's CSS and JavaScript. Just use these Bootstrap CDN links.

-{% highlight html %} - - - - - - - - -{% endhighlight %} - -

Install with Bower

-

Install and manage Bootstrap's Less, CSS, and JavaScript using Bower.

- {% highlight bash %}$ bower install bootstrap{% endhighlight %} -
diff --git a/docs/_includes/getting-started/download.md b/docs/_includes/getting-started/download.md new file mode 100644 index 000000000..e4adc1064 --- /dev/null +++ b/docs/_includes/getting-started/download.md @@ -0,0 +1,84 @@ + + +# Quick start + +Quickly add Bootstrap to your project via the [Bootstrap CDN](http://bootstrapcdn.com), graciously provided by the [MaxCDN](http://www.maxcdn.com/) folks. Copy-paste the stylesheet `` into your `` before all other stylesheets. + +{% highlight html %} + +{% endhighlight %} + +Then, add the Bootstrap JavaScript—and jQuery—near the end of your project. It's best placed right before the closing `` tag. Be sure to place jQuery first. + +{% highlight html %} + + +{% endhighlight %} + +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 it's latest rendering mode ([read more]()) +* And, utilizing the viewport meta tag. + +Put it all together and your pages should look like this: + +{% highlight html %} + + + + + + + + +

Hello, world!

+ + + + + +{% endhighlight %} + +And that's it. Happy Bootstrapping! + + + + + +# Download + +Bootstrap is available for download via ZIP file in two flavors: precompiled CSS and Javascript, and the complete source code with documentation. + + + +### Precompiled + +Compiled and minified CSS and JavaScript. No docs or original source files are included. + +Download Bootstrap + + + +### Source code and docs + +Source Less, JavaScript, and documentation. **Requires a Less compiler and [some setup](#grunt).** + +Download source + + + +### Bower + +Install and manage Bootstrap's Less, CSS, and JavaScript using [Bower](http://bower.io). + +{% highlight bash %}$ bower install bootstrap{% endhighlight %} + + + + +### npm + +Bootstrap is available as [an npm package](https://www.npmjs.org/package/bootstrap). Install it into your Node powered apps with: + +{% highlight bash %}$ npm install bootstrap{% endhighlight %} diff --git a/docs/_includes/nav/docs.html b/docs/_includes/nav/docs.html index 516f47c8c..da5aeb611 100644 --- a/docs/_includes/nav/docs.html +++ b/docs/_includes/nav/docs.html @@ -20,6 +20,7 @@ {% endif %} +
CSS {% if page.slug == "css" %} @@ -28,6 +29,7 @@ {% endif %}
+
Components {% if page.slug == "components" %} @@ -36,6 +38,7 @@ {% endif %}
+
JavaScript {% if page.slug == "js" %} @@ -44,6 +47,7 @@ {% endif %}
+
Customize {% if page.slug == "customize" %} @@ -52,6 +56,7 @@ {% endif %}
+
About {% if page.slug == "js" %} diff --git a/docs/_includes/nav/getting-started.html b/docs/_includes/nav/getting-started.html index ee67eae86..a692c304d 100644 --- a/docs/_includes/nav/getting-started.html +++ b/docs/_includes/nav/getting-started.html @@ -1,5 +1,14 @@ +
  • + Quick start +
  • Download +
  • What's included -- cgit v1.2.3