Changeset - ecd9ba4a37ca
[Not reviewed]
! ! !
Joar Wandborg - 11 years ago 2013-10-23 14:17:17
joar@wandborg.se
Initial templating
34 files changed:
Changeset was too big and was cut off... Show full diff anyway
0 comments (0 inline, 0 general)
bootstrap-3.0.0/.editorconfig
Show inline comments
 
new file 100644
 
# editorconfig.org
 

	
 
root = true
 

	
 
[*]
 
indent_style = space
 
indent_size = 2
 
end_of_line = lf
 
charset = utf-8
 
trim_trailing_whitespace = true
 
insert_final_newline = true
bootstrap-3.0.0/.gitignore
Show inline comments
 
new file 100644
 
# Ignore compiled docs
 
_gh_pages
 
_site
 

	
 
# Numerous always-ignore extensions
 
*.diff
 
*.err
 
*.orig
 
*.log
 
*.rej
 
*.swo
 
*.swp
 
*.zip
 
*.vi
 
*~
 
*.sass-cache
 
*.ruby-version
 

	
 
# OS or Editor folders
 
.DS_Store
 
._*
 
Thumbs.db
 
.cache
 
.project
 
.settings
 
.tmproj
 
*.esproj
 
nbproject
 
*.sublime-project
 
*.sublime-workspace
 

	
 
# Komodo
 
*.komodoproject
 
.komodotools
 

	
 
# grunt-html-validation
 
validation-staus.json
 

	
 
# Folders to ignore
 
.hg
 
.svn
 
.CVS
 
.idea
 
node_modules
bootstrap-3.0.0/.travis.yml
Show inline comments
 
new file 100644
 
language: node_js
 
node_js:
 
  - 0.8
 
before_script:
 
  - gem install jekyll
 
  - npm install -g grunt-cli
 
env:
 
  global:
 
  - secure: Besg41eyU+2mfxrywQ4ydOShMdc34ImaO0S0ENP+aCOBuyNBIgP59wy5tBMmyai2/8eInYeVps4Td96mWInMMxzTe3Bar7eTLG5tWVKRSr/wc4NBPZ/ppoPAmCEsz9Y+VptRH9/FO8n7hsL9EFZ+xBKbG+C0SccGoyBDpA5j7/w=
 
  - secure: Ptiv7phCImFP3ALIz+sMQzrZg8k7C1gLZbFBhWxjnQr3g06wIfX3Ls5y9OHvxid+lOZZjISui3wzBVgpVHqwHUYf96+r0mo6/mJ+F4ffUmShZANVaIMD/JRTnXhUQJbvntGLvxn1EYWPdNM+2IHJrMipnjHxU9tkgAnlel4Zdew=
 
  - TWBS_HAVE_OWN_BROWSERSTACK_KEY: ""
bootstrap-3.0.0/CNAME
Show inline comments
 
new file 100644
 
getbootstrap.com
bootstrap-3.0.0/CONTRIBUTING.md
Show inline comments
 
new file 100644
 
# Contributing to Bootstrap
 

	
 
Looking to contribute something to Bootstrap? **Here's how you can help.**
 

	
 

	
 

	
 
## Reporting issues
 

	
 
We only accept issues that are bug reports or feature requests. Bugs must be isolated and reproducible problems that we can fix within the Bootstrap core. Please read the following guidelines before opening any issue.
 

	
 
1. **Search for existing issues.** We get a lot of duplicate issues, and you'd help us out a lot by first checking if someone else has reported the same issue. Moreover, the issue may have already been resolved with a fix available.
 
2. **Create an isolated and reproducible test case.** Be sure the problem exists in Bootstrap's code with a [reduced test case](http://css-tricks.com/reduced-test-cases/) that should be included in each bug report.
 
3. **Include a live example.** Make use of jsFiddle or jsBin to share your isolated test cases.
 
4. **Share as much information as possible.** Include operating system and version, browser and version, version of Bootstrap, customized or vanilla build, etc. where appropriate. Also include steps to reproduce the bug.
 

	
 

	
 

	
 
## Key branches
 

	
 
- `master` is the latest, deployed version.
 
- `gh-pages` is the hosted docs (not to be used for pull requests).
 
- `*-wip` is the official work in progress branch for the next release.
 

	
 

	
 

	
 
## Pull requests
 

	
 
- Try to submit pull requests against the latest `*-wip` branch for easier merging
 
- CSS changes must be done in .less files first, never just the compiled files
 
- If modifying the .less files, always recompile and commit the compiled files bootstrap.css and bootstrap.min.css
 
- Try not to pollute your pull request with unintended changes--keep them simple and small
 
- Try to share which browsers your code has been tested in before submitting a pull request
 

	
 

	
 

	
 
## Coding standards
 

	
 
### HTML
 

	
 
- Two spaces for indentation, never tabs
 
- Double quotes only, never single quotes
 
- Always use proper indentation
 
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags)
 

	
 
### CSS
 

	
 
- Adhere to the [Recess CSS property order](http://markdotto.com/2011/11/29/css-property-order/)
 
- Multiple-line approach (one property and value per line)
 
- Always a space after a property's colon (.e.g, `display: block;` and not `display:block;`)
 
- End all lines with a semi-colon
 
- For multiple, comma-separated selectors, place each selector on its own line
 
- Attribute selectors, like `input[type="text"]` should always wrap the attribute's value in double quotes, for consistency and safety (see this [blog post on unquoted attribute values](http://mathiasbynens.be/notes/unquoted-attribute-values) that can lead to XSS attacks).
 

	
 
### JS
 

	
 
- No semicolons
 
- Comma first
 
- 2 spaces (no tabs)
 
- strict mode
 
- "Attractive"
 

	
 

	
 

	
 
## License
 

	
 
By contributing your code, you agree to license your contribution under the terms of the APLv2: https://github.com/twbs/bootstrap/blob/master/LICENSE
bootstrap-3.0.0/Gruntfile.js
Show inline comments
 
new file 100644
 
/* jshint node: true */
 

	
 
module.exports = function(grunt) {
 
  "use strict";
 

	
 
  // Project configuration.
 
  grunt.initConfig({
 

	
 
    // Metadata.
 
    pkg: grunt.file.readJSON('package.json'),
 
    banner: '/**\n' +
 
              '* <%= pkg.name %>.js v<%= pkg.version %> by @fat and @mdo\n' +
 
              '* Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
 
              '* <%= _.pluck(pkg.licenses, "url").join(", ") %>\n' +
 
              '*/\n',
 
    jqueryCheck: 'if (!jQuery) { throw new Error(\"Bootstrap requires jQuery\") }\n\n',
 

	
 
    // Task configuration.
 
    clean: {
 
      dist: ['dist']
 
    },
 

	
 
    jshint: {
 
      options: {
 
        jshintrc: 'js/.jshintrc'
 
      },
 
      gruntfile: {
 
        src: 'Gruntfile.js'
 
      },
 
      src: {
 
        src: ['js/*.js']
 
      },
 
      test: {
 
        src: ['js/tests/unit/*.js']
 
      }
 
    },
 

	
 
    concat: {
 
      options: {
 
        banner: '<%= banner %><%= jqueryCheck %>',
 
        stripBanners: false
 
      },
 
      bootstrap: {
 
        src: [
 
          'js/transition.js',
 
          'js/alert.js',
 
          'js/button.js',
 
          'js/carousel.js',
 
          'js/collapse.js',
 
          'js/dropdown.js',
 
          'js/modal.js',
 
          'js/tooltip.js',
 
          'js/popover.js',
 
          'js/scrollspy.js',
 
          'js/tab.js',
 
          'js/affix.js'
 
        ],
 
        dest: 'dist/js/<%= pkg.name %>.js'
 
      }
 
    },
 

	
 
    uglify: {
 
      options: {
 
        banner: '<%= banner %>'
 
      },
 
      bootstrap: {
 
        src: ['<%= concat.bootstrap.dest %>'],
 
        dest: 'dist/js/<%= pkg.name %>.min.js'
 
      }
 
    },
 

	
 
    recess: {
 
      options: {
 
        compile: true
 
      },
 
      bootstrap: {
 
        src: ['less/bootstrap.less'],
 
        dest: 'dist/css/<%= pkg.name %>.css'
 
      },
 
      min: {
 
        options: {
 
          compress: true
 
        },
 
        src: ['less/bootstrap.less'],
 
        dest: 'dist/css/<%= pkg.name %>.min.css'
 
      },
 
      theme: {
 
        src: ['less/theme.less'],
 
        dest: 'dist/css/<%= pkg.name %>-theme.css'
 
      },
 
      theme_min: {
 
        options: {
 
          compress: true
 
        },
 
        src: ['less/theme.less'],
 
        dest: 'dist/css/<%= pkg.name %>-theme.min.css'
 
      }
 
    },
 

	
 
    copy: {
 
      fonts: {
 
        expand: true,
 
        src: ["fonts/*"],
 
        dest: 'dist/'
 
      }
 
    },
 

	
 
    qunit: {
 
      options: {
 
        inject: 'js/tests/unit/phantom.js'
 
      },
 
      files: ['js/tests/*.html']
 
    },
 

	
 
    connect: {
 
      server: {
 
        options: {
 
          port: 3000,
 
          base: '.'
 
        }
 
      }
 
    },
 

	
 
    jekyll: {
 
      docs: {}
 
    },
 

	
 
    validation: {
 
      options: {
 
        reset: true
 
      },
 
      files: {
 
        src: ["_gh_pages/**/*.html"]
 
      }
 
    },
 

	
 
    watch: {
 
      src: {
 
        files: '<%= jshint.src.src %>',
 
        tasks: ['jshint:src', 'qunit']
 
      },
 
      test: {
 
        files: '<%= jshint.test.src %>',
 
        tasks: ['jshint:test', 'qunit']
 
      },
 
      recess: {
 
        files: 'less/*.less',
 
        tasks: ['recess']
 
      }
 
    }
 
  });
 

	
 

	
 
  // These plugins provide necessary tasks.
 
  grunt.loadNpmTasks('grunt-contrib-clean');
 
  grunt.loadNpmTasks('grunt-contrib-concat');
 
  grunt.loadNpmTasks('grunt-contrib-connect');
 
  grunt.loadNpmTasks('grunt-contrib-copy');
 
  grunt.loadNpmTasks('grunt-contrib-jshint');
 
  grunt.loadNpmTasks('grunt-contrib-qunit');
 
  grunt.loadNpmTasks('grunt-contrib-uglify');
 
  grunt.loadNpmTasks('grunt-contrib-watch');
 
  grunt.loadNpmTasks('grunt-html-validation');
 
  grunt.loadNpmTasks('grunt-jekyll');
 
  grunt.loadNpmTasks('grunt-recess');
 
  grunt.loadNpmTasks('browserstack-runner');
 

	
 
  // Docs HTML validation task
 
  grunt.registerTask('validate-html', ['jekyll', 'validation']);
 

	
 
  // Test task.
 
  var testSubtasks = ['dist-css', 'jshint', 'qunit', 'validate-html'];
 
  // Only run BrowserStack tests under Travis
 
  if (process.env.TRAVIS) {
 
    // Only run BrowserStack tests if this is a mainline commit in twbs/bootstrap, or you have your own BrowserStack key
 
    if ((process.env.TRAVIS_REPO_SLUG === 'twbs/bootstrap' && process.env.TRAVIS_PULL_REQUEST === 'false') || process.env.TWBS_HAVE_OWN_BROWSERSTACK_KEY) {
 
      testSubtasks.push('browserstack_runner');
 
    }
 
  }
 
  grunt.registerTask('test', testSubtasks);
 

	
 
  // JS distribution task.
 
  grunt.registerTask('dist-js', ['concat', 'uglify']);
 

	
 
  // CSS distribution task.
 
  grunt.registerTask('dist-css', ['recess']);
 

	
 
  // Fonts distribution task.
 
  grunt.registerTask('dist-fonts', ['copy']);
 

	
 
  // Full distribution task.
 
  grunt.registerTask('dist', ['clean', 'dist-css', 'dist-fonts', 'dist-js']);
 

	
 
  // Default task.
 
  grunt.registerTask('default', ['test', 'dist', 'build-customizer']);
 

	
 
  // task for building customizer
 
  grunt.registerTask('build-customizer', 'Add scripts/less files to customizer.', function () {
 
    var fs = require('fs')
 

	
 
    function getFiles(type) {
 
      var files = {}
 
      fs.readdirSync(type)
 
        .filter(function (path) {
 
          return type == 'fonts' ? true : new RegExp('\\.' + type + '$').test(path)
 
        })
 
        .forEach(function (path) {
 
          return files[path] = fs.readFileSync(type + '/' + path, 'utf8')
 
        })
 
      return 'var __' + type + ' = ' + JSON.stringify(files) + '\n'
 
    }
 

	
 
    var customize = fs.readFileSync('customize.html', 'utf-8')
 
    var files = getFiles('js') + getFiles('less') + getFiles('fonts')
 
    fs.writeFileSync('assets/js/raw-files.js', files)
 
  });
 
};
...
 
\ No newline at end of file
bootstrap-3.0.0/LICENSE
Show inline comments
 
new file 100644
 
                                 Apache License
 
                           Version 2.0, January 2004
 
                        http://www.apache.org/licenses/
 

	
 
   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
 

	
 
   1. Definitions.
 

	
 
      "License" shall mean the terms and conditions for use, reproduction,
 
      and distribution as defined by Sections 1 through 9 of this document.
 

	
 
      "Licensor" shall mean the copyright owner or entity authorized by
 
      the copyright owner that is granting the License.
 

	
 
      "Legal Entity" shall mean the union of the acting entity and all
 
      other entities that control, are controlled by, or are under common
 
      control with that entity. For the purposes of this definition,
 
      "control" means (i) the power, direct or indirect, to cause the
 
      direction or management of such entity, whether by contract or
 
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
 
      outstanding shares, or (iii) beneficial ownership of such entity.
 

	
 
      "You" (or "Your") shall mean an individual or Legal Entity
 
      exercising permissions granted by this License.
 

	
 
      "Source" form shall mean the preferred form for making modifications,
 
      including but not limited to software source code, documentation
 
      source, and configuration files.
 

	
 
      "Object" form shall mean any form resulting from mechanical
 
      transformation or translation of a Source form, including but
 
      not limited to compiled object code, generated documentation,
 
      and conversions to other media types.
 

	
 
      "Work" shall mean the work of authorship, whether in Source or
 
      Object form, made available under the License, as indicated by a
 
      copyright notice that is included in or attached to the work
 
      (an example is provided in the Appendix below).
 

	
 
      "Derivative Works" shall mean any work, whether in Source or Object
 
      form, that is based on (or derived from) the Work and for which the
 
      editorial revisions, annotations, elaborations, or other modifications
 
      represent, as a whole, an original work of authorship. For the purposes
 
      of this License, Derivative Works shall not include works that remain
 
      separable from, or merely link (or bind by name) to the interfaces of,
 
      the Work and Derivative Works thereof.
 

	
 
      "Contribution" shall mean any work of authorship, including
 
      the original version of the Work and any modifications or additions
 
      to that Work or Derivative Works thereof, that is intentionally
 
      submitted to Licensor for inclusion in the Work by the copyright owner
 
      or by an individual or Legal Entity authorized to submit on behalf of
 
      the copyright owner. For the purposes of this definition, "submitted"
 
      means any form of electronic, verbal, or written communication sent
 
      to the Licensor or its representatives, including but not limited to
 
      communication on electronic mailing lists, source code control systems,
 
      and issue tracking systems that are managed by, or on behalf of, the
 
      Licensor for the purpose of discussing and improving the Work, but
 
      excluding communication that is conspicuously marked or otherwise
 
      designated in writing by the copyright owner as "Not a Contribution."
 

	
 
      "Contributor" shall mean Licensor and any individual or Legal Entity
 
      on behalf of whom a Contribution has been received by Licensor and
 
      subsequently incorporated within the Work.
 

	
 
   2. Grant of Copyright License. Subject to the terms and conditions of
 
      this License, each Contributor hereby grants to You a perpetual,
 
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
 
      copyright license to reproduce, prepare Derivative Works of,
 
      publicly display, publicly perform, sublicense, and distribute the
 
      Work and such Derivative Works in Source or Object form.
 

	
 
   3. Grant of Patent License. Subject to the terms and conditions of
 
      this License, each Contributor hereby grants to You a perpetual,
 
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
 
      (except as stated in this section) patent license to make, have made,
 
      use, offer to sell, sell, import, and otherwise transfer the Work,
 
      where such license applies only to those patent claims licensable
 
      by such Contributor that are necessarily infringed by their
 
      Contribution(s) alone or by combination of their Contribution(s)
 
      with the Work to which such Contribution(s) was submitted. If You
 
      institute patent litigation against any entity (including a
 
      cross-claim or counterclaim in a lawsuit) alleging that the Work
 
      or a Contribution incorporated within the Work constitutes direct
 
      or contributory patent infringement, then any patent licenses
 
      granted to You under this License for that Work shall terminate
 
      as of the date such litigation is filed.
 

	
 
   4. Redistribution. You may reproduce and distribute copies of the
 
      Work or Derivative Works thereof in any medium, with or without
 
      modifications, and in Source or Object form, provided that You
 
      meet the following conditions:
 

	
 
      (a) You must give any other recipients of the Work or
 
          Derivative Works a copy of this License; and
 

	
 
      (b) You must cause any modified files to carry prominent notices
 
          stating that You changed the files; and
 

	
 
      (c) You must retain, in the Source form of any Derivative Works
 
          that You distribute, all copyright, patent, trademark, and
 
          attribution notices from the Source form of the Work,
 
          excluding those notices that do not pertain to any part of
 
          the Derivative Works; and
 

	
 
      (d) If the Work includes a "NOTICE" text file as part of its
 
          distribution, then any Derivative Works that You distribute must
 
          include a readable copy of the attribution notices contained
 
          within such NOTICE file, excluding those notices that do not
 
          pertain to any part of the Derivative Works, in at least one
 
          of the following places: within a NOTICE text file distributed
 
          as part of the Derivative Works; within the Source form or
 
          documentation, if provided along with the Derivative Works; or,
 
          within a display generated by the Derivative Works, if and
 
          wherever such third-party notices normally appear. The contents
 
          of the NOTICE file are for informational purposes only and
 
          do not modify the License. You may add Your own attribution
 
          notices within Derivative Works that You distribute, alongside
 
          or as an addendum to the NOTICE text from the Work, provided
 
          that such additional attribution notices cannot be construed
 
          as modifying the License.
 

	
 
      You may add Your own copyright statement to Your modifications and
 
      may provide additional or different license terms and conditions
 
      for use, reproduction, or distribution of Your modifications, or
 
      for any such Derivative Works as a whole, provided Your use,
 
      reproduction, and distribution of the Work otherwise complies with
 
      the conditions stated in this License.
 

	
 
   5. Submission of Contributions. Unless You explicitly state otherwise,
 
      any Contribution intentionally submitted for inclusion in the Work
 
      by You to the Licensor shall be under the terms and conditions of
 
      this License, without any additional terms or conditions.
 
      Notwithstanding the above, nothing herein shall supersede or modify
 
      the terms of any separate license agreement you may have executed
 
      with Licensor regarding such Contributions.
 

	
 
   6. Trademarks. This License does not grant permission to use the trade
 
      names, trademarks, service marks, or product names of the Licensor,
 
      except as required for reasonable and customary use in describing the
 
      origin of the Work and reproducing the content of the NOTICE file.
 

	
 
   7. Disclaimer of Warranty. Unless required by applicable law or
 
      agreed to in writing, Licensor provides the Work (and each
 
      Contributor provides its Contributions) on an "AS IS" BASIS,
 
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 
      implied, including, without limitation, any warranties or conditions
 
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
 
      PARTICULAR PURPOSE. You are solely responsible for determining the
 
      appropriateness of using or redistributing the Work and assume any
 
      risks associated with Your exercise of permissions under this License.
 

	
 
   8. Limitation of Liability. In no event and under no legal theory,
 
      whether in tort (including negligence), contract, or otherwise,
 
      unless required by applicable law (such as deliberate and grossly
 
      negligent acts) or agreed to in writing, shall any Contributor be
 
      liable to You for damages, including any direct, indirect, special,
 
      incidental, or consequential damages of any character arising as a
 
      result of this License or out of the use or inability to use the
 
      Work (including but not limited to damages for loss of goodwill,
 
      work stoppage, computer failure or malfunction, or any and all
 
      other commercial damages or losses), even if such Contributor
 
      has been advised of the possibility of such damages.
 

	
 
   9. Accepting Warranty or Additional Liability. While redistributing
 
      the Work or Derivative Works thereof, You may choose to offer,
 
      and charge a fee for, acceptance of support, warranty, indemnity,
 
      or other liability obligations and/or rights consistent with this
 
      License. However, in accepting such obligations, You may act only
 
      on Your own behalf and on Your sole responsibility, not on behalf
 
      of any other Contributor, and only if You agree to indemnify,
 
      defend, and hold each Contributor harmless for any liability
 
      incurred by, or claims asserted against, such Contributor by reason
 
      of your accepting any such warranty or additional liability.
 

	
 
   END OF TERMS AND CONDITIONS
bootstrap-3.0.0/README.md
Show inline comments
 
new file 100644
 
# [Bootstrap v3.0.0](http://getbootstrap.com) [![Build Status](https://secure.travis-ci.org/twbs/bootstrap.png)](http://travis-ci.org/twbs/bootstrap)
 

	
 
Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by [Mark Otto](http://twitter.com/mdo) and [Jacob Thornton](http://twitter.com/fat).
 

	
 
To get started, check out [http://getbootstrap.com](http://getbootstrap.com)!
 

	
 

	
 

	
 
## Quick start
 

	
 
Three quick start options are available:
 

	
 
* [Download the latest release](https://github.com/twbs/bootstrap/zipball/3.0.0-wip).
 
* Clone the repo: `git clone git://github.com/twbs/bootstrap.git`.
 
* Install with [Bower](http://bower.io): `bower install bootstrap`.
 

	
 
Read the [Getting Started page](http://getbootstrap.com/getting-started/) for information on the framework contents, templates and examples, and more.
 

	
 

	
 

	
 
## Bugs and feature requests
 

	
 
Have a bug or a feature request? [Please open a new issue](https://github.com/twbs/bootstrap/issues). Before opening any issue, please search for existing issues and read the [Issue Guidelines](https://github.com/necolas/issue-guidelines), written by [Nicolas Gallagher](https://github.com/necolas/).
 

	
 
You may use [this JS Bin](http://jsbin.com/aKiCIDO/1/edit) as a template for your bug reports.
 

	
 

	
 

	
 
## Documentation
 

	
 
Bootstrap's documentation, included in this repo in the root directory, is built with [Jekyll](http://jekyllrb.com) and publicly hosted on GitHub Pages at [http://getbootstrap.com](http://getbootstrap.com). The docs may also be run locally.
 

	
 
### Running documentation locally
 

	
 
1. If necessary, [install Jekyll](http://jekyllrb.com/docs/installation) (requires v1.x).
 
2. From the root `/bootstrap` directory, run `jekyll serve` in the command line.
 
  - **Windows users:** run `chcp 65001` first to change the command prompt's character encoding ([code page](http://en.wikipedia.org/wiki/Windows_code_page)) to UTF-8 so Jekyll runs without errors.
 
3. Open [http://localhost:9001](http://localhost:9001) in your browser, and voilà.
 

	
 
Learn more about using Jekyll by reading their [documentation](http://jekyllrb.com/docs/home/).
 

	
 
### Documentation for previous releases
 

	
 
Documentation for v2.3.2 has been made available for the time being at [http://getbootstrap.com/2.3.2/](http://getbootstrap.com/2.3.2/) while folks transition to Bootstrap 3.
 

	
 
[Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download.
 

	
 

	
 

	
 
## Compiling CSS and JavaScript
 

	
 
Bootstrap uses [Grunt](http://gruntjs.com/) with convenient methods for working with the framework. It's how we compile our code, run tests, and more. To use it, install the required dependencies as directed and then run some Grunt commands.
 

	
 
### Install Grunt
 

	
 
From the command line:
 

	
 
1. Install `grunt-cli` globally with `npm install -g grunt-cli`.
 
2. Install the [necessary local dependencies](package.json) via `npm install`
 

	
 
When completed, you'll be able to run the various Grunt commands provided from the command line.
 

	
 
**Unfamiliar with `npm`? Don't have node installed?** That's a-okay. npm stands for [node packaged modules](http://npmjs.org/) and is a way to manage development dependencies through node.js. [Download and install node.js](http://nodejs.org/download/) before proceeding.
 

	
 
### Available Grunt commands
 

	
 
#### Build - `grunt`
 
Run `grunt` to run tests locally and compile the CSS and JavaScript into `/dist`. **Requires [recess](https://github.com/twitter/recess) and [uglify-js](https://github.com/mishoo/UglifyJS).**
 

	
 
#### Only compile CSS and JavaScript - `grunt dist`
 
`grunt dist` creates the `/dist` directory with compiled files. **Requires [recess](https://github.com/twitter/recess) and [uglify-js](https://github.com/mishoo/UglifyJS).**
 

	
 
#### Tests - `grunt test`
 
Runs jshint and qunit tests headlessly in [phantomjs](https://github.com/ariya/phantomjs/) (used for CI). **Requires [phantomjs](https://github.com/ariya/phantomjs/).**
 

	
 
#### Watch - `grunt watch`
 
This is a convenience method for watching just Less files and automatically building them whenever you save.
 

	
 
### Troubleshooting dependencies
 

	
 
Should you encounter problems with installing dependencies or running Grunt commands, uninstall all previous dependency versions (global and local). Then, rerun `npm install`.
 

	
 

	
 

	
 
## Contributing
 

	
 
Please read through our guidelines for contributing to Bootstrap. Included are directions for opening issues, coding standards, and notes on development.
 

	
 
More over, if your pull request contains JavaScript patches or features, you must include relevant unit tests. All HTML and CSS should conform to the [Code Guide](http://github.com/mdo/code-guide), maintained by [Mark Otto](http://github.com/mdo).
 

	
 
Editor preferences are available in the [editor config](.editorconfig) for easy use in common text editors. Read more and download plugins at [http://editorconfig.org](http://editorconfig.org).
 

	
 

	
 

	
 
## Community
 

	
 
Keep track of development and community news.
 

	
 
* Follow [@twbootstrap on Twitter](http://twitter.com/twbootstrap).
 
* Read and subscribe to the [The Official Bootstrap Blog](http://blog.getbootstrap.com).
 
* Have a question that's not a feature request or bug report? [Ask on the mailing list.](http://groups.google.com/group/twitter-bootstrap)
 
* Chat with fellow Bootstrappers in IRC. On the `irc.freenode.net` server, in the `##twitter-bootstrap` channel.
 

	
 

	
 

	
 

	
 
## Versioning
 

	
 
For transparency and insight into our release cycle, and for striving to maintain backward compatibility, Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible.
 

	
 
Releases will be numbered with the following format:
 

	
 
`<major>.<minor>.<patch>`
 

	
 
And constructed with the following guidelines:
 

	
 
* Breaking backward compatibility bumps the major (and resets the minor and patch)
 
* New additions without breaking backward compatibility bumps the minor (and resets the patch)
 
* Bug fixes and misc changes bumps the patch
 

	
 
For more information on SemVer, please visit [http://semver.org/](http://semver.org/).
 

	
 

	
 

	
 
## Authors
 

	
 
**Mark Otto**
 

	
 
+ [http://twitter.com/mdo](http://twitter.com/mdo)
 
+ [http://github.com/mdo](http://github.com/mdo)
 

	
 
**Jacob Thornton**
 

	
 
+ [http://twitter.com/fat](http://twitter.com/fat)
 
+ [http://github.com/fat](http://github.com/fat)
 

	
 

	
 

	
 
## Copyright and license
 

	
 
Copyright 2012 Twitter, Inc under [the Apache 2.0 license](LICENSE).
bootstrap-3.0.0/_config.yml
Show inline comments
 
new file 100644
 
# Dependencies
 
markdown:         rdiscount
 
pygments:         true
 

	
 
# Permalinks
 
permalink:        pretty
 

	
 
# Server
 
destination:      ./_gh_pages
 
exclude:          [".editorconfig", ".gitignore", ".ruby-version", "bower.json", "composer.json", "CONTRIBUTING.md", "CNAME", "LICENSE", "Gruntfile.js", "package.json", "node_modules", "README.md", "less"]
 
port:             9001
 

	
 
# Custom vars
 
repo:             https://github.com/twbs/bootstrap
 
download:         https://github.com/twbs/bootstrap/archive/v3.0.0.zip
 
download_dist:    https://github.com/twbs/bootstrap/releases/download/v3.0.0/bootstrap-3.0.0-dist.zip
 

	
 
blog:             http://blog.getbootstrap.com
 
expo:             http://expo.getbootstrap.com
 

	
 
cdn_css:          //netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css
 
cdn_theme_css:    //netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css
 
cdn_js:           //netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js
bootstrap-3.0.0/_includes/ads.html
Show inline comments
 
new file 100644
 
<div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script>var z = document.createElement("script"); z.async = true; z.src = "http://engine.carbonads.com/z/32341/azcarbon_2_1_0_HORIZ"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div>
bootstrap-3.0.0/_includes/footer.html
Show inline comments
 
new file 100644
 
<!-- Bootstrap core JavaScript
 
================================================== -->
 
<!-- Placed at the end of the document so the pages load faster -->
 
<script src="{{ page.base_url }}assets/js/jquery.js"></script>
 
<script src="{{ page.base_url }}dist/js/bootstrap.js"></script>
 

	
 
<script src="http://platform.twitter.com/widgets.js"></script>
 
<script src="{{ page.base_url }}assets/js/holder.js"></script>
 

	
 
<script src="{{ page.base_url }}assets/js/application.js"></script>
 

	
 
{% if page.slug == "customize" %}
 
<script src="{{ page.base_url }}assets/js/less.js"></script>
 
<script src="{{ page.base_url }}assets/js/jszip.js"></script>
 
<script src="{{ page.base_url }}assets/js/uglify.js"></script>
 
<script src="{{ page.base_url }}assets/js/filesaver.js"></script>
 
<script src="{{ page.base_url }}assets/js/raw-files.js"></script>
 
<script src="{{ page.base_url }}assets/js/customizer.js"></script>
 
{% endif %}
 

	
 
<!-- Analytics
 
================================================== -->
 
<script>
 
  var _gauges = _gauges || [];
 
  (function() {
 
    var t   = document.createElement('script');
 
    t.async = true;
 
    t.id    = 'gauges-tracker';
 
    t.setAttribute('data-site-id', '4f0dc9fef5a1f55508000013');
 
    t.src = '//secure.gaug.es/track.js';
 
    var s = document.getElementsByTagName('script')[0];
 
    s.parentNode.insertBefore(t, s);
 
  })();
 
</script>
bootstrap-3.0.0/_includes/header.html
Show inline comments
 
new file 100644
 
<meta charset="utf-8">
 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 
<meta name="description" content="">
 
<meta name="author" content="">
 

	
 
<title>
 
  {% if page.title == "Bootstrap" %}
 
    {{ page.title }}
 
  {% else if %}
 
    {{ page.title }} &middot; Bootstrap
 
  {% endif %}
 
</title>
 

	
 
<!-- Bootstrap core CSS -->
 
<link href="{{ page.base_url }}dist/css/bootstrap.css" rel="stylesheet">
 

	
 
<!-- Documentation extras -->
 
<link href="{{ page.base_url }}assets/css/docs.css" rel="stylesheet">
 
<link href="{{ page.base_url }}assets/css/pygments-manni.css" rel="stylesheet">
 

	
 
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
 
<!--[if lt IE 9]>
 
  <script src="{{ page.base_url }}assets/js/html5shiv.js"></script>
 
  <script src="{{ page.base_url }}assets/js/respond.min.js"></script>
 
<![endif]-->
 

	
 
<!-- Favicons -->
 
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ page.base_url }}assets/ico/apple-touch-icon-144-precomposed.png">
 
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ page.base_url }}assets/ico/apple-touch-icon-114-precomposed.png">
 
  <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ page.base_url }}assets/ico/apple-touch-icon-72-precomposed.png">
 
                <link rel="apple-touch-icon-precomposed" href="{{ page.base_url }}assets/ico/apple-touch-icon-57-precomposed.png">
 
                               <link rel="shortcut icon" href="{{ page.base_url }}assets/ico/favicon.png">
 

	
 
<script>
 
  var _gaq = _gaq || [];
 
  _gaq.push(['_setAccount', 'UA-146052-10']);
 
  _gaq.push(['_trackPageview']);
 
  (function() {
 
    var ga = document.createElement('script'); ga.async = true;
 
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 
  })();
 
</script>
bootstrap-3.0.0/_includes/nav-components.html
Show inline comments
 
new file 100644
 
<li>
 
  <a href="#glyphicons">Glyphicons</a>
 
  <ul class="nav">
 
    <li><a href="#glyphicons-glyphs">Available glyphs</a></li>
 
    <li><a href="#glyphicons-how-to-use">How to use</a></li>
 
    <li><a href="#glyphicons-examples">Examples</a></li>
 
  </ul>
 
</li>
 
<li>
 
  <a href="#dropdowns">Dropdowns</a>
 
  <ul class="nav">
 
    <li><a href="#dropdowns-example">Example</a></li>
 
    <li><a href="#dropdowns-alignment">Alignment options</a></li>
 
    <li><a href="#dropdowns-headers">Headers</a></li>
 
    <li><a href="#dropdowns-disabled">Disabled menu items</a></li>
 
  </ul>
 
</li>
 
<li>
 
  <a href="#btn-groups">Button groups</a>
 
  <ul class="nav">
 
    <li><a href="#btn-groups-single">Basic example</a></li>
 
    <li><a href="#btn-groups-toolbar">Button toolbar</a></li>
 
    <li><a href="