Skip to content

wuliupo/getbootstrap

Repository files navigation

getbootstrap

static web page from http://getbootstrap.com

Running documentation locally

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

https://github.com/twbs/bootstrap/tree/v3.3.7

  1. install bundle: sudo gem install bundler, sudo gem install bundle
  2. If necessary, install Jekyll and other Ruby dependencies with bundle install. Note for Windows users: Read this unofficial guide to get Jekyll up and running without problems.
  3. From the root /bootstrap directory, run bundle exec jekyll serve in the command line.
  4. Open http://localhost:9001 in your browser, and voilà.
  5. The document were generated under _gh_pages folder.

Remove third-party assets (googleapis, google-analytics)

  • docs/_includes/header.html
  • jquery in docs/examples/*/index.html
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
      <script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>

Remove ga hard code

  • onclick="ga( -> onclick2="ga(
  • "/apple-touch-icon.png" -> "../apple-touch-icon.png"
  • "/favicon.ico" -> "../favicon.ico"

ads

  • carbon ads

Releases

No releases published

Packages

No packages published