How to Reference Twitter Bootstrap Documentation Locally, and Offline

I was doing research with the new ver­sion of Twit­ter Boot­strap, ver­sion 3 (RC). After cloning from the pro­jec­t’s repo:

I then checked out the release can­di­date’s branch “3.0.0‑wip”:

git fetch origin
git checkout -b 3.0 origin/3.0.0-wip

The 3.0.0‑wip branch direc­to­ry struc­ture is sim­i­lar to its mas­ter branch.


Nav­i­gat­ing to the /docs direc­to­ry, you get these sta­t­ic, HTML-tem­plate files.


With some research, it seems you’ll need to have Jekyll to serve these pages cor­rect­ly, local­ly. Pre­sum­ing you already have Ruby and Node.js (with npm) installed in your local devel­op­ment machine (e.g. laptop/desktop), let’s install Jekyll if you don’t already have it:

gem install jekyll

Then, we com­pile and build Boot­strap local­ly. Run this in your local repo direc­to­ry, e.g. ~/bootstrap:


After that builds and com­pletes, let’s fire-up Jekyll to serve a local site con­sist­ing of Twit­ter Boot­strap’s doc­u­men­ta­tion. We type and run the fol­low­ing:

jekyll serve

This will use the _config.yml that’s includ­ed with the Boot­strap pro­jec­t’s repo, and serve a local site at:

There you have it. Twit­ter Boot­strap Doc­u­men­ta­tion run­ning local­ly. Very handy if you are offline, or on the go.


Comments are currently closed.