]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
adding getting started page based on Bootstrap University from awhile back, testing...
authorMark Otto <markotto@twitter.com>
Sun, 8 Jul 2012 08:47:36 +0000 (01:47 -0700)
committerMark Otto <markotto@twitter.com>
Sun, 8 Jul 2012 08:47:36 +0000 (01:47 -0700)
20 files changed:
docs/assets/css/bootstrap.css
docs/assets/css/docs.css
docs/base-css.html
docs/components.html
docs/download.html
docs/examples.html
docs/extend.html
docs/getting-started.html [new file with mode: 0644]
docs/index.html
docs/javascript.html
docs/scaffolding.html
docs/templates/layout.mustache
docs/templates/pages/base-css.mustache
docs/templates/pages/components.mustache
docs/templates/pages/getting-started.mustache [new file with mode: 0644]
docs/templates/pages/index.mustache
docs/templates/pages/javascript.mustache
docs/templates/pages/scaffolding.mustache
docs/upgrading.html
less/type.less

index d24c6f36a3702afb5a96e7d2f5aead11db3e0172..6e2ab728cd4b08e0c6be0a6a8ed186c413261d42 100644 (file)
@@ -631,7 +631,8 @@ h4 small {
 }
 
 .page-header {
-  margin: 20px 0 19px;
+  padding-bottom: 9px;
+  margin: 20px 0 30px;
   border-bottom: 1px solid #eeeeee;
 }
 
index a8398ca4d1dbe59eaade5568509d66a431b0d665..e84d118d1f9bb7518d4a5381f661d212dbe3e49f 100644 (file)
@@ -12,7 +12,7 @@
 
 body {
   position: relative;
-  padding-top: 100px;
+  padding-top: 80px;
   font-size: 14px;
   background-color: #fff;
   background-image: url(../img/grid-20px.png);
@@ -20,12 +20,6 @@ body {
   background-position: 0 40px;
 }
 
-/* Custom container for the narrow docs */
-.bs-docs-container {
-  max-width: 780px;
-  margin: 0 auto;
-}
-
 /* Code in headings */
 h3 code {
   font-size: 14px;
@@ -37,6 +31,10 @@ h3 code {
 /* Tweak navbar brand link to be super sleek
 -------------------------------------------------- */
 
+body > .navbar-fixed-top {
+  font-size: 13px;
+}
+
 /* Change the docs' brand */
 body > .navbar-fixed-top .brand {
   padding-right: 0;
@@ -52,6 +50,7 @@ body > .navbar-fixed-top .brand {
 }
 body > .navbar-fixed-top .brand:hover {
   text-decoration: none;
+  text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4);
 }
 
 
@@ -119,7 +118,7 @@ hr.soften {
 ------------------------- */
 .masthead {
   padding: 50px 0 60px;
-  margin-top: -60px;
+  margin-top: -40px;
   margin-bottom: 0;
   color: #fff;
   text-align: center;
@@ -207,10 +206,14 @@ hr.soften {
 ------------------------- */
 .subhead {
   text-align: left;
+  border-bottom: 1px solid #ddd;
 }
 .subhead h1 {
   font-size: 60px;
 }
+.subhead .navbar {
+  display: none;
+}
 
 
 
@@ -242,7 +245,7 @@ hr.soften {
 }
 .marketing img {
   display: block;
-  margin: 0 auto 20px;
+  margin: 0 auto 30px;
 }
 
 
@@ -837,3 +840,66 @@ form.bs-docs-example {
     float: none;
   }
 }
+
+
+
+/* Docs side .nav-list
+------------------------- */
+.span3 {
+  min-height: 1px;
+}
+.bs-docs-sidenav {
+  margin-top: 40px;
+  padding: 0;
+  margin-right: 10px;
+  background-color: #fff;
+  border: 1px solid #e5e5e5;
+  -webkit-border-radius: 6px;
+     -moz-border-radius: 6px;
+          border-radius: 6px;
+}
+.bs-docs-sidenav > li > a {
+  margin: 0;
+  font-size: 14px;
+  padding: 9px 14px;
+  border-top: 1px solid #eee;
+}
+.bs-docs-sidenav > li:first-child > a {
+  border-top: 0;
+  -webkit-border-radius: 5px 5px 0 0;
+     -moz-border-radius: 5px 5px 0 0;
+          border-radius: 5px 5px 0 0;
+}
+.bs-docs-sidenav > li:last-child > a {
+  -webkit-border-radius: 0 0 5px 5px;
+     -moz-border-radius: 0 0 5px 5px;
+          border-radius: 0 0 5px 5px;
+}
+/* Chevrons */
+.bs-docs-sidenav .icon-chevron-right {
+  float: right;
+  margin-top: 2px;
+  margin-right: -6px;
+  opacity: .25;
+}
+.bs-docs-sidenav > li > a:hover {
+  background-color: #f5f5f5;
+}
+.bs-docs-sidenav a:hover .icon-chevron-right {
+  opacity: .5;
+}
+.bs-docs-sidenav .active .icon-chevron-right {
+  background-image: url(../img/glyphicons-halflings-white.png);
+  opacity: .75;
+}
+
+@media (max-width: 979px) {
+
+  .bs-docs-sidenav {
+    margin-top: 30px;
+    margin-right: 0;
+  }
+
+}
+
+
index ed6f27871c689aac9966fe6ad8344b798da0bd6a..8c2879907deb3fdacdbf1c35a65a2a3bdd33a5a7 100644 (file)
@@ -27,7 +27,7 @@
 
   </head>
 
-  <body data-spy="scroll" data-target=".subnav" data-offset="50">
+  <body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
 
     <!-- Navbar
     ================================================== -->
 </header>
 
 
+<div class="row">
+  <div class="span3 bs-docs-sidebar">
+    <ul class="nav nav-list bs-docs-sidenav">
+      <li><a href="#typography">Typography</a></li>
+      <li><a href="#code">Code</a></li>
+      <li><a href="#tables">Tables</a></li>
+      <li><a href="#forms">Forms</a></li>
+      <li><a href="#buttons">Buttons</a></li>
+      <li><a href="#icons">Icons by Glyphicons</a></li>
+    </ul>
+  </div>
+  <div class="span9">
+
+
 
 <!-- Typography
 ================================================== -->
@@ -1625,6 +1639,8 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
 
 </section>
 
+</div>
+</div>
 
      <!-- Footer
       ================================================== -->
index 9a67b25e0d69717cea7a59acdbaf6dfb350ca1f1..2132478217dc0c825d9d5fdd59f63f8518b585b0 100644 (file)
@@ -27,7 +27,7 @@
 
   </head>
 
-  <body data-spy="scroll" data-target=".subnav" data-offset="50">
+  <body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
 
     <!-- Navbar
     ================================================== -->
   </div>
 </header>
 
+<div class="row">
+  <div class="span3 bs-docs-sidebar">
+    <ul class="nav nav-list bs-docs-sidenav">
+      <li><a href="#dropdowns">Dropdowns <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#buttonGroups">Button groups <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#buttonDropdowns">Button dropdowns <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#navs">Navs <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#navbar">Navbar <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#breadcrumbs">Breadcrumbs <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#pagination">Pagination <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#labels">Labels <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#badges">Badges <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#typography">Typography <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#thumbnails">Thumbnails <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#alerts">Alerts <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#progress">Progress bars <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#misc">Misc <i class="icon-chevron-right"></i></a></li>
+    </ul>
+  </div>
+  <div class="span9">
+
 
 
 <!-- Dropdowns
 ================================================== -->
 <section id="dropdowns">
   <div class="page-header">
-    <h1>Dropdown menus <small>Dropdown and dropup menus for contextual actions</small></h1>
+    <h1>Dropdown menus</h1>
   </div>
 
   <h2>Example</h2>
 ================================================== -->
 <section id="buttonDropdowns">
   <div class="page-header">
-    <h1>Button dropdown menus <small>Built on button groups to provide contextual menus</small></h1>
+    <h1>Button dropdown menus</h1>
   </div>
 
 
 ================================================== -->
 <section id="navs">
   <div class="page-header">
-    <h1>Nav, tabs, and pills <small>Highly customizable list-style navigation</small></h1>
+    <h1>Nav: tabs, pills, and lists</small></h1>
   </div>
 
   <h2>Lightweight defaults <small>Same markup, different classes</small></h2>
@@ -2213,6 +2234,9 @@ class="clearfix"
 
 </section>
 
+  </div>
+</div>
+
 
      <!-- Footer
       ================================================== -->
index 301854a031234eeebb9825e2b8298d31db301566..9aebb74d23deb84cdbe530b21094f3e22fad7b4b 100644 (file)
@@ -27,7 +27,7 @@
 
   </head>
 
-  <body data-spy="scroll" data-target=".subnav" data-offset="50">
+  <body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
 
     <!-- Navbar
     ================================================== -->
index 1c8434b751cd0ee557746e43701371c2a013ec99..a2c7447b823227f1fbd23777a9b50bca5d1fe1cc 100644 (file)
@@ -27,7 +27,7 @@
 
   </head>
 
-  <body data-spy="scroll" data-target=".subnav" data-offset="50">
+  <body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
 
     <!-- Navbar
     ================================================== -->
index b3b72f75e7e993643afa83ed823d9fe7ffc2cad8..ccd51226022de7153736066f207830f0405fcd12 100644 (file)
@@ -27,7 +27,7 @@
 
   </head>
 
-  <body data-spy="scroll" data-target=".subnav" data-offset="50">
+  <body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
 
     <!-- Navbar
     ================================================== -->
diff --git a/docs/getting-started.html b/docs/getting-started.html
new file mode 100644 (file)
index 0000000..26a9bc3
--- /dev/null
@@ -0,0 +1,255 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+    <title>Getting ยท Twitter Bootstrap</title>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="description" content="">
+    <meta name="author" content="">
+
+    <!-- Le styles -->
+    <link href="assets/css/bootstrap.css" rel="stylesheet">
+    <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
+    <link href="assets/css/docs.css" rel="stylesheet">
+    <link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
+
+    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
+    <!--[if lt IE 9]>
+      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+    <![endif]-->
+
+    <!-- Le fav and touch icons -->
+    <link rel="shortcut icon" href="assets/ico/favicon.ico">
+    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
+    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
+    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
+    <link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
+
+  </head>
+
+  <body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
+
+    <!-- Navbar
+    ================================================== -->
+    <div class="navbar navbar-fixed-top">
+      <div class="navbar-inner">
+        <div class="container">
+          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+          </button>
+          <a class="brand" href="./index.html">Bootstrap</a>
+          <div class="nav-collapse collapse">
+            <ul class="nav">
+              <li class="">
+                <a href="./index.html">Home</a>
+              </li>
+              <li class="">
+                <a href="./scaffolding.html">Scaffolding</a>
+              </li>
+              <li class="">
+                <a href="./base-css.html">Base CSS</a>
+              </li>
+              <li class="">
+                <a href="./components.html">Components</a>
+              </li>
+              <li class="">
+                <a href="./javascript.html">Javascript</a>
+              </li>
+              <li class="">
+                <a href="./extend.html">Extend</a>
+              </li>
+            </ul>
+          </div>
+        </div>
+      </div>
+    </div>
+
+    <div class="container">
+
+<!-- Masthead
+================================================== -->
+<header class="jumbotron subhead" id="overview">
+  <h1>Getting started</h1>
+  <p class="lead">Overview of the project, it's contents, and how to get started with a simple template.</p>
+</header>
+
+<div class="row">
+  <div class="span3 bs-docs-sidebar">
+    <ul class="nav nav-list bs-docs-sidenav">
+      <li><a href="#prerequisites">Prerequisites <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#file-structure">File structure <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#contents">What's included <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#html-template">HTML template <i class="icon-chevron-right"></i></a></li>
+    </ul>
+  </div>
+  <div class="span9">
+
+
+    <section id="prerequisites">
+      <div class="page-header">
+        <h1>Prerequisites</h1>
+      </div>
+      <p>Before getting started, you need the following:</p>
+      <ul>
+        <li>An unzipped copy of the <a href="https://github.com/twitter/bootstrap/zipball/master">latest version of Bootstrap</a> (which includes all CSS, JavaScript, and images).</li>
+        <li>An editor of your choice for writing code (I recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>).</li>
+        <li>Some working knowledge of HTML and CSS.</li>
+      </ul>
+      <p>When ready, proceed to the next section, <a href="#file-structure">File structure</a>.</p>
+    </section>
+
+
+
+    <section id="file-structure">
+      <div class="page-header">
+        <h1>File structure</h1>
+      </div>
+      <p>Once unzipped, the structure of Bootstrap&rsquo;s files looks like this:</p>
+      <ul>
+        <li>bootstrap/
+          <ul>
+            <li>css/
+              <ul>
+                <li>bootstrap.css</li>
+                <li>bootstrap.min.css</li>
+              </ul>
+            </li>
+            <li>js/
+              <ul>
+                <li>bootstrap.js</li>
+                <li>bootstrap.min.js</li>
+              </ul>
+            </li>
+            <li>img/
+              <ul>
+                <li>glyphicons-halflings.png</li>
+                <li>glyphicons-halflings-white.png</li>
+              </ul>
+            </li>
+            <li>README.md</li>
+          </ul>
+        </li>
+      </ul>
+      <p>This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <a href="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.</p>
+    </section>
+
+
+
+    <section id="contents">
+      <div class="page-header">
+        <h1>What's included</h1>
+      </div>
+      <p>Bootstrap comes equipped with CSS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the <a href="http://getbootstrap.com">Bootstrap documentation</a>:</p>
+      <ul>
+        <li><strong><a href="http://twitter.github.com/bootstrap/scaffolding.html">Scaffolding:</a></strong> Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.</li>
+        <li><strong><a href="http://twitter.github.com/bootstrap/base-css.html">Base CSS:</a></strong> Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes <a href="http://glyphicons.com">Glyphicons</a>, a great little icon set.</li>
+        <li><strong><a href="http://twitter.github.com/bootstrap/components.html">Components:</a></strong> Basic styles for common interface components like tabs and pills, navbar, page headers, and more.</li>
+        <li><strong><a href="http://twitter.github.com/bootstrap/javascript.html">Javascript plugins:</a></strong> Similar to the Components section, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.</li>
+      </ul>
+      <p>Together, the <strong>Components</strong> and <strong>Javascript plugins</strong> sections provide the following interface elements:</p>
+      <ul>
+        <li>Button groups</li>
+        <li>Button dropdowns</li>
+        <li>Navigational tabs, pills, and lists</li>
+        <li>Navbar</li>
+        <li>Labels</li>
+        <li>Badges</li>
+        <li>Page headers and hero unit</li>
+        <li>Thumbnails</li>
+        <li>Alerts</li>
+        <li>Progress bars</li>
+        <li>Modals</li>
+        <li>Dropdowns</li>
+        <li>Tooltips</li>
+        <li>Popovers</li>
+        <li>Accordion</li>
+        <li>Carousel</li>
+        <li>Typeahead</li>
+      </ul>
+      <p>In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.</p>
+    </section>
+
+
+
+    <section id="html-template">
+      <div class="page-header">
+        <h1>Basic HTML template</h1>
+      </div>
+      <p>Now that we&rsquo;ve got the basic information on Bootstrap out of the way, we can focus on getting started. To do that, we&rsquo;ll utilize a basic HTML template that includes everything we&rsquo;ve mentioned in the <a href="#file-structure">File structure</a>.</p>
+      <p>As previously mentioned, we won&rsquo;t cover the basics of writing HTML and CSS here. Instead, we&rsquo;ll leapfrog through various points in web development complexity to give you the broadest and most complete overview.</p>
+      <p>Now, here&rsquo;s a look at a <strong>typical HTML file</strong>:</p>
+  <pre class="prettyprint linenums">
+  &lt;html&gt;
+    &lt;head&gt;
+      &lt;title&gt;Bootstrap 101 Template&lt;/title&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+      &lt;h1&gt;Hello, world!&lt;/h1&gt;
+    &lt;/body&gt;
+  &lt;/html&gt;
+  </pre>
+      <p>To make this <strong>a Bootstrapped template</strong>, just include the appropriate CSS and JS files:</p>
+  <pre class="prettyprint linenums">
+  &lt;html&gt;
+    &lt;head&gt;
+      &lt;title&gt;Bootstrap 101 Template&lt;/title&gt;
+      &lt;!-- Bootstrap --&gt;
+      &lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt;
+      &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+      &lt;h1&gt;Hello, world!&lt;/h1&gt;
+    &lt;/body&gt;
+  &lt;/html&gt;
+  </pre>
+      <p>And you&rsquo;re set. With those two files added, you can begin to write Bootstrap-friendly HTML, CSS, and JS to build any site or application you like. Head to the Bootstrap docs for information, examples, and even code snippets for the Bootstrap grid system, base HTML styles, components, and even responsive features.</p>
+    </section>
+
+
+
+  </div>
+</div>
+
+     <!-- Footer
+      ================================================== -->
+      <footer class="footer">
+        <p class="pull-right"><a href="#">Back to top</a></p>
+        <p>Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
+        <p>Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
+        <p>Icons from <a href="http://glyphicons.com">Glyphicons Free</a>, licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
+        <ul class="footer-links">
+          <li><a href="http://blog.getbootstrap.com">Read the blog</a></li>
+          <li><a href="https://github.com/twitter/bootstrap/issues?state=open">Submit issues</a></li>
+          <li><a href="https://github.com/twitter/bootstrap/wiki">Roadmap and changelog</a></li>
+        </ul>
+      </footer>
+
+    </div>
+
+
+
+    <!-- Le javascript
+    ================================================== -->
+    <!-- Placed at the end of the document so the pages load faster -->
+    <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
+    <script src="assets/js/jquery.js"></script>
+    <script src="assets/js/google-code-prettify/prettify.js"></script>
+    <script src="assets/js/bootstrap-transition.js"></script>
+    <script src="assets/js/bootstrap-alert.js"></script>
+    <script src="assets/js/bootstrap-modal.js"></script>
+    <script src="assets/js/bootstrap-dropdown.js"></script>
+    <script src="assets/js/bootstrap-scrollspy.js"></script>
+    <script src="assets/js/bootstrap-tab.js"></script>
+    <script src="assets/js/bootstrap-tooltip.js"></script>
+    <script src="assets/js/bootstrap-popover.js"></script>
+    <script src="assets/js/bootstrap-button.js"></script>
+    <script src="assets/js/bootstrap-collapse.js"></script>
+    <script src="assets/js/bootstrap-carousel.js"></script>
+    <script src="assets/js/bootstrap-typeahead.js"></script>
+    <script src="assets/js/application.js"></script>
+
+
+  </body>
+</html>
index 1a9763bb20119a18fcc2bbfac06522b17d75b26d..ae841b3c16014a6050138d968e89d2bfa7ff14b2 100644 (file)
@@ -27,7 +27,7 @@
 
   </head>
 
-  <body data-spy="scroll" data-target=".subnav" data-offset="50">
+  <body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
 
     <!-- Navbar
     ================================================== -->
       <div class="span4">
         <img src="assets/img/bs-docs-bootstrap-features.png">
         <h2>Packed with features.</h2>
-        <p>Utilize the 12-column responsive <a href="./scaffolding.html#grid">grid</a>, dozens of components, <a href="./javascript.html">javascript plugins</a>, typography, form controls, and even a <a href="./download.html">web-based Customizer</a> to make Bootstrap your own.</p>
+        <p>A 12-column responsive <a href="./scaffolding.html#grid">grid</a>, dozens of components, <a href="./javascript.html">javascript plugins</a>, typography, form controls, and even a <a href="./download.html">web-based Customizer</a> to make Bootstrap your own.</p>
       </div>
     </div>
 
index b321e6632c70efd54fd2fbb7833083a9d8dee923..888391ba53d9bbb36f16ec5c37875b93ad2d4b97 100644 (file)
@@ -27,7 +27,7 @@
 
   </head>
 
-  <body data-spy="scroll" data-target=".subnav" data-offset="50">
+  <body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
 
     <!-- Navbar
     ================================================== -->
 </header>
 
 
+<div class="row">
+  <div class="span3 bs-docs-sidebar">
+    <ul class="nav nav-list bs-docs-sidenav">
+      <li><a href="#transitions">Transitions</a></li>
+      <li><a href="#modals">Modal</a></li>
+      <li><a href="#dropdowns">Dropdown</a></li>
+      <li><a href="#scrollspy">Scrollspy</a></li>
+      <li><a href="#tabs">Tab</a></li>
+      <li><a href="#tooltips">Tooltip</a></li>
+      <li><a href="#popovers">Popover</a></li>
+      <li><a href="#alerts">Alert</a></li>
+      <li><a href="#buttons">Button</a></li>
+      <li><a href="#collapse">Collapse</a></li>
+      <li><a href="#carousel">Carousel</a></li>
+      <li><a href="#typeahead">Typeahead</a></li>
+      <li><a href="#affix">Affix</a></li>
+    </ul>
+  </div>
+  <div class="span9">
+
+
 
 
 <!-- Overview
@@ -1570,6 +1591,8 @@ $('.carousel').carousel({
 </pre>
 </section>
 
+</div>
+</div>
 
      <!-- Footer
       ================================================== -->
index 8df8a818f7243fc104274052f12622a31b363400..09ea5664b26f6f85c0f4f2e2401cef34c31e2ffd 100644 (file)
@@ -27,7 +27,7 @@
 
   </head>
 
-  <body data-spy="scroll" data-target=".subnav" data-offset="50">
+  <body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
 
     <!-- Navbar
     ================================================== -->
 </header>
 
 
+<div class="row">
+  <div class="span3 bs-docs-sidebar">
+    <ul class="nav nav-list bs-docs-sidenav">
+      <li><a href="#global">Global styles</a></li>
+      <li><a href="#gridSystem">Grid system</a></li>
+      <li><a href="#fluidGridSystem">Fluid grid system</a></li>
+      <li><a href="#gridCustomization">Customizing</a></li>
+      <li><a href="#layouts">Layouts</a></li>
+      <li><a href="#responsive">Responsive design</a></li>
+    </ul>
+  </div>
+  <div class="span9">
+
+
 
 <!-- Global Bootstrap settings
 ================================================== -->
 
 </section>
 
+</div>
+</div>
 
      <!-- Footer
       ================================================== -->
index 7f223ae68c6d8118ef06c72e15b136d3b9d3cb5a..dbec68eebdc0618ada45c4f0bebe711e74d4a3ce 100644 (file)
@@ -39,7 +39,7 @@
     {{/production}}
   </head>
 
-  <body data-spy="scroll" data-target=".subnav" data-offset="50">
+  <body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
 
     <!-- Navbar
     ================================================== -->
index 5435689bde1c9e8a0a1f8af9975523e102e90106..8985e7c69f2bf36473c9748e27a3d238bfd82786 100644 (file)
 </header>
 
 
+<div class="row">
+  <div class="span3 bs-docs-sidebar">
+    <ul class="nav nav-list bs-docs-sidenav">
+      <li><a href="#typography">{{_i}}Typography{{/i}}</a></li>
+      <li><a href="#code">{{_i}}Code{{/i}}</a></li>
+      <li><a href="#tables">{{_i}}Tables{{/i}}</a></li>
+      <li><a href="#forms">{{_i}}Forms{{/i}}</a></li>
+      <li><a href="#buttons">{{_i}}Buttons{{/i}}</a></li>
+      <li><a href="#icons">{{_i}}Icons by Glyphicons{{/i}}</a></li>
+    </ul>
+  </div>
+  <div class="span9">
+
+
 
 <!-- Typography
 ================================================== -->
   </form>
 
 </section>
+
+</div>
+</div>
\ No newline at end of file
index 5fb11ccf280f44b62d108503cc030cadf02aa98b..306c4dea2188d1fd6c8c1affafa6d816cfbb7ccd 100644 (file)
   </div>
 </header>
 
+<div class="row">
+  <div class="span3 bs-docs-sidebar">
+    <ul class="nav nav-list bs-docs-sidenav">
+      <li><a href="#dropdowns">{{_i}}Dropdowns{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#buttonGroups">{{_i}}Button groups{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#buttonDropdowns">{{_i}}Button dropdowns{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#navs">{{_i}}Navs{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#navbar">{{_i}}Navbar{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#breadcrumbs">{{_i}}Breadcrumbs{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#pagination">{{_i}}Pagination{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#labels">{{_i}}Labels{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#badges">{{_i}}Badges{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#typography">{{_i}}Typography{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#thumbnails">{{_i}}Thumbnails{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#alerts">{{_i}}Alerts{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#progress">{{_i}}Progress bars{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#misc">{{_i}}Misc{{/i}} <i class="icon-chevron-right"></i></a></li>
+    </ul>
+  </div>
+  <div class="span9">
+
 
 
 <!-- Dropdowns
 ================================================== -->
 <section id="dropdowns">
   <div class="page-header">
-    <h1>{{_i}}Dropdown menus{{/i}} <small>{{_i}}Dropdown and dropup menus for contextual actions{{/i}}</small></h1>
+    <h1>{{_i}}Dropdown menus{{/i}}</h1>
   </div>
 
   <h2>{{_i}}Example{{/i}}</h2>
 ================================================== -->
 <section id="buttonDropdowns">
   <div class="page-header">
-    <h1>{{_i}}Button dropdown menus{{/i}} <small>{{_i}}Built on button groups to provide contextual menus{{/i}}</small></h1>
+    <h1>{{_i}}Button dropdown menus{{/i}}</h1>
   </div>
 
 
 ================================================== -->
 <section id="navs">
   <div class="page-header">
-    <h1>{{_i}}Nav, tabs, and pills{{/i}} <small>{{_i}}Highly customizable list-style navigation{{/i}}</small></h1>
+    <h1>{{_i}}Nav: tabs, pills, and lists{{/i}}</small></h1>
   </div>
 
   <h2>{{_i}}Lightweight defaults{{/i}} <small>{{_i}}Same markup, different classes{{/i}}</small></h2>
@@ -2142,3 +2163,6 @@ class="clearfix"
 </pre>
 
 </section>
+
+  </div>
+</div>
diff --git a/docs/templates/pages/getting-started.mustache b/docs/templates/pages/getting-started.mustache
new file mode 100644 (file)
index 0000000..5e14074
--- /dev/null
@@ -0,0 +1,143 @@
+<!-- Masthead
+================================================== -->
+<header class="jumbotron subhead" id="overview">
+  <h1>{{_i}}Getting started{{/i}}</h1>
+  <p class="lead">{{_i}}Overview of the project, it's contents, and how to get started with a simple template.{{/i}}</p>
+</header>
+
+<div class="row">
+  <div class="span3 bs-docs-sidebar">
+    <ul class="nav nav-list bs-docs-sidenav">
+      <li><a href="#prerequisites">{{_i}}Prerequisites{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#file-structure">{{_i}}File structure{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#contents">{{_i}}What's included{{/i}} <i class="icon-chevron-right"></i></a></li>
+      <li><a href="#html-template">{{_i}}HTML template{{/i}} <i class="icon-chevron-right"></i></a></li>
+    </ul>
+  </div>
+  <div class="span9">
+
+
+    <section id="prerequisites">
+      <div class="page-header">
+        <h1>{{_i}}Prerequisites{{/i}}</h1>
+      </div>
+      <p>{{_i}}Before getting started, you need the following:{{/i}}</p>
+      <ul>
+        <li>{{_i}}An unzipped copy of the <a href="https://github.com/twitter/bootstrap/zipball/master">latest version of Bootstrap</a> (which includes all CSS, JavaScript, and images).{{/i}}</li>
+        <li>{{_i}}An editor of your choice for writing code (I recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>).{{/i}}</li>
+        <li>{{_i}}Some working knowledge of HTML and CSS.{{/i}}</li>
+      </ul>
+      <p>{{_i}}When ready, proceed to the next section, <a href="#file-structure">File structure</a>.{{/i}}</p>
+    </section>
+
+
+
+    <section id="file-structure">
+      <div class="page-header">
+        <h1>{{_i}}File structure{{/i}}</h1>
+      </div>
+      <p>{{_i}}Once unzipped, the structure of Bootstrap&rsquo;s files looks like this:{{/i}}</p>
+      <ul>
+        <li>bootstrap/
+          <ul>
+            <li>css/
+              <ul>
+                <li>bootstrap.css</li>
+                <li>bootstrap.min.css</li>
+              </ul>
+            </li>
+            <li>js/
+              <ul>
+                <li>bootstrap.js</li>
+                <li>bootstrap.min.js</li>
+              </ul>
+            </li>
+            <li>img/
+              <ul>
+                <li>glyphicons-halflings.png</li>
+                <li>glyphicons-halflings-white.png</li>
+              </ul>
+            </li>
+            <li>README.md</li>
+          </ul>
+        </li>
+      </ul>
+      <p>{{_i}}This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <a href="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.{{/i}}</p>
+    </section>
+
+
+
+    <section id="contents">
+      <div class="page-header">
+        <h1>{{_i}}What's included{{/i}}</h1>
+      </div>
+      <p>{{_i}}Bootstrap comes equipped with CSS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the <a href="http://getbootstrap.com">Bootstrap documentation</a>:{{/i}}</p>
+      <ul>
+        <li><strong><a href="http://twitter.github.com/bootstrap/scaffolding.html">Scaffolding:</a></strong> Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.</li>
+        <li><strong><a href="http://twitter.github.com/bootstrap/base-css.html">Base CSS:</a></strong> Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes <a href="http://glyphicons.com">Glyphicons</a>, a great little icon set.</li>
+        <li><strong><a href="http://twitter.github.com/bootstrap/components.html">Components:</a></strong> Basic styles for common interface components like tabs and pills, navbar, page headers, and more.</li>
+        <li><strong><a href="http://twitter.github.com/bootstrap/javascript.html">Javascript plugins:</a></strong> Similar to the Components section, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.</li>
+      </ul>
+      <p>Together, the <strong>Components</strong> and <strong>Javascript plugins</strong> sections provide the following interface elements:</p>
+      <ul>
+        <li>Button groups</li>
+        <li>Button dropdowns</li>
+        <li>Navigational tabs, pills, and lists</li>
+        <li>Navbar</li>
+        <li>Labels</li>
+        <li>Badges</li>
+        <li>Page headers and hero unit</li>
+        <li>Thumbnails</li>
+        <li>Alerts</li>
+        <li>Progress bars</li>
+        <li>Modals</li>
+        <li>Dropdowns</li>
+        <li>Tooltips</li>
+        <li>Popovers</li>
+        <li>Accordion</li>
+        <li>Carousel</li>
+        <li>Typeahead</li>
+      </ul>
+      <p>{{_i}}In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.{{/i}}</p>
+    </section>
+
+
+
+    <section id="html-template">
+      <div class="page-header">
+        <h1>{{_i}}Basic HTML template{{/i}}</h1>
+      </div>
+      <p>{{_i}}Now that we&rsquo;ve got the basic information on Bootstrap out of the way, we can focus on getting started. To do that, we&rsquo;ll utilize a basic HTML template that includes everything we&rsquo;ve mentioned in the <a href="#file-structure">File structure</a>.{{/i}}</p>
+      <p>{{_i}}As previously mentioned, we won&rsquo;t cover the basics of writing HTML and CSS here. Instead, we&rsquo;ll leapfrog through various points in web development complexity to give you the broadest and most complete overview.{{/i}}</p>
+      <p>{{_i}}Now, here&rsquo;s a look at a <strong>typical HTML file</strong>:{{/i}}</p>
+  <pre class="prettyprint linenums">
+  &lt;html&gt;
+    &lt;head&gt;
+      &lt;title&gt;Bootstrap 101 Template&lt;/title&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+      &lt;h1&gt;Hello, world!&lt;/h1&gt;
+    &lt;/body&gt;
+  &lt;/html&gt;
+  </pre>
+      <p>{{_i}}To make this <strong>a Bootstrapped template</strong>, just include the appropriate CSS and JS files:{{/i}}</p>
+  <pre class="prettyprint linenums">
+  &lt;html&gt;
+    &lt;head&gt;
+      &lt;title&gt;Bootstrap 101 Template&lt;/title&gt;
+      &lt;!-- Bootstrap --&gt;
+      &lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt;
+      &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+      &lt;h1&gt;Hello, world!&lt;/h1&gt;
+    &lt;/body&gt;
+  &lt;/html&gt;
+  </pre>
+      <p>{{_i}}And you&rsquo;re set. With those two files added, you can begin to write Bootstrap-friendly HTML, CSS, and JS to build any site or application you like. Head to the Bootstrap docs for information, examples, and even code snippets for the Bootstrap grid system, base HTML styles, components, and even responsive features.{{/i}}</p>
+    </section>
+
+
+
+  </div>
+</div>
\ No newline at end of file
index 2990ed4f1b75007ce9f1ee18a15af62a71def0c4..e90df3d0845f8f5b3a5aae194463e07e782c72aa 100644 (file)
@@ -53,7 +53,7 @@
       <div class="span4">
         <img src="assets/img/bs-docs-bootstrap-features.png">
         <h2>{{_i}}Packed with features.{{/i}}</h2>
-        <p>{{_i}}Utilize the 12-column responsive <a href="./scaffolding.html#grid">grid</a>, dozens of components, <a href="./javascript.html">javascript plugins</a>, typography, form controls, and even a <a href="./download.html">web-based Customizer</a> to make Bootstrap your own.{{/i}}</p>
+        <p>{{_i}}A 12-column responsive <a href="./scaffolding.html#grid">grid</a>, dozens of components, <a href="./javascript.html">javascript plugins</a>, typography, form controls, and even a <a href="./download.html">web-based Customizer</a> to make Bootstrap your own.{{/i}}</p>
       </div>
     </div>
 
index 6f51417fa07c308a323b0bb52250da92633c14f1..13d5285b7068a9b79744e63f54a8715c4de3a7c5 100644 (file)
 </header>
 
 
+<div class="row">
+  <div class="span3 bs-docs-sidebar">
+    <ul class="nav nav-list bs-docs-sidenav">
+      <li><a href="#transitions">{{_i}}Transitions{{/i}}</a></li>
+      <li><a href="#modals">{{_i}}Modal{{/i}}</a></li>
+      <li><a href="#dropdowns">{{_i}}Dropdown{{/i}}</a></li>
+      <li><a href="#scrollspy">{{_i}}Scrollspy{{/i}}</a></li>
+      <li><a href="#tabs">{{_i}}Tab{{/i}}</a></li>
+      <li><a href="#tooltips">{{_i}}Tooltip{{/i}}</a></li>
+      <li><a href="#popovers">{{_i}}Popover{{/i}}</a></li>
+      <li><a href="#alerts">{{_i}}Alert{{/i}}</a></li>
+      <li><a href="#buttons">{{_i}}Button{{/i}}</a></li>
+      <li><a href="#collapse">{{_i}}Collapse{{/i}}</a></li>
+      <li><a href="#carousel">{{_i}}Carousel{{/i}}</a></li>
+      <li><a href="#typeahead">{{_i}}Typeahead{{/i}}</a></li>
+      <li><a href="#affix">{{_i}}Affix{{/i}}</a></li>
+    </ul>
+  </div>
+  <div class="span9">
+
+
 
 
 <!-- Overview
@@ -1501,3 +1522,6 @@ $('.carousel').carousel({
 ...
 </pre>
 </section>
+
+</div>
+</div>
\ No newline at end of file
index 3eda645ca899597a1d55ab528bb865a78310340a..2d25814001bfa00e65f3c298684ab06ba1bba219 100644 (file)
 </header>
 
 
+<div class="row">
+  <div class="span3 bs-docs-sidebar">
+    <ul class="nav nav-list bs-docs-sidenav">
+      <li><a href="#global">{{_i}}Global styles{{/i}}</a></li>
+      <li><a href="#gridSystem">{{_i}}Grid system{{/i}}</a></li>
+      <li><a href="#fluidGridSystem">{{_i}}Fluid grid system{{/i}}</a></li>
+      <li><a href="#gridCustomization">{{_i}}Customizing{{/i}}</a></li>
+      <li><a href="#layouts">{{_i}}Layouts{{/i}}</a></li>
+      <li><a href="#responsive">{{_i}}Responsive design{{/i}}</a></li>
+    </ul>
+  </div>
+  <div class="span9">
+
+
 
 <!-- Global Bootstrap settings
 ================================================== -->
   </ul>
 
 </section>
+
+</div>
+</div>
\ No newline at end of file
index 6d605b73682cba3ee07b83b754058de4400d3398..e322337628b19a0ef0776fdde531c0113a6988ab 100644 (file)
@@ -27,7 +27,7 @@
 
   </head>
 
-  <body data-spy="scroll" data-target=".subnav" data-offset="50">
+  <body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
 
     <!-- Navbar
     ================================================== -->
index e3106c71789aa41b70cea17497d0b63626bc6dc0..697b64a54bab7572df0b40cda42cc2dc3d7e05e9 100644 (file)
@@ -54,7 +54,8 @@ h4 small { font-size: 14px; }
 // -------------------------
 
 .page-header {
-  margin: @baseLineHeight 0 (@baseLineHeight - 1);
+  padding-bottom: (@baseLineHeight / 2) - 1;
+  margin: @baseLineHeight 0 (@baseLineHeight * 1.5);
   border-bottom: 1px solid @grayLighter;
 }