I'm trying to compile bootstrap 3. I have the repo cloned on my local. I run make in the bootstrap directory.
aaas-imac:bootstrap aaa$ make
Building Bootstrap...
--------------------------------------------------
Running JSHint on JavaScript... ✔ Done
Compiling LESS with Recess... ✔ Done
Prepping documentation assets... ✔ Done
Compiling and minifying JavaScript... ✔ Done
--------------------------------------------------
Success!
Thanks for using Bootstrap,
<3 @mdo and @fat
aaas-imac:bootstrap aaa$
I don't see the compiled docs anywhere?
To install Jekyll and build: (Note for windows see: https://stackoverflow.com/a/16853614/1596547)
apt-get install rubygems
)gem install jekyll
go to the./docs
dir of your bootstrap install (see also: Explore and install Twitter Bootstrap 3)jekyll --server
from your bootstrap dirhttp://localhost:9001/
in your browserhttp://localhost:9001/docs.html
NB the default port for WEBrick will be 9001. If this port is not avaible an other port will be used:
WARN TCPServer Error: Address already in use - bind(2) INFO WEBrick::HTTPServer#start: pid=30728 port=4000
When you visit
http://localhost:9001/
you will find a home screen.The "View docs" button links to /docs/ while the docs are on docs.htmlSee below:Now (jul 10 2013) the navbar links seems broken (missing .html) so usehttp://localhost:9001/javascript.html
in stead ofhttp://localhost:9001/javascript
. See also: https://github.com/twitter/bootstrap/pull/8443Using git (jekyll already installed):
visit
http://localhost:9001/
orhttp://localhost:4000/
UPDATE @lee-whitney suggests to use
jekyll serve
instead ofjekyll --server
. Thejekyll serve
command creates a directory with the html files of the docs. You could serve this files on a (local) webserver.jekyll serve
don't start a (jekyll) server. I test this commands on linux (Ubuntu 12.04LTS) with Jekyll 0.12.1Here is the complete solution
To install Jekyll, Rouge and build:
if you dont have ruby installed - http://jekyll-windows.juthilo.com/2-jekyll-gem/
npm install
- if you run into problems, do anpm update
gem install jekyll
gem install rouge
jekyll server
from your bootstrap folderHere are the compressed docs, no need to do anything but read. Full downloadable Bootstrap 3 docs.
http://web3canvas.com/item/bootstrap-3-docs/
Enjoy!
Bootstrap 3.0's docs are built using Jekyll. To view the docs locally, you'll need to install Jekyll to run a local server.
In Windows ( perfectly tested by me not sure of linux ) :
Version step is very crucial as I was not able to compile the docs in latest version of jekyll so I switched to older version.
Update: For Bootstrap version 3.3.4
To run the
Twitter Bootstrap(v3.3.4)
docs locally, I performed following steps and hope it might help others.Steps:
gem install jekyll
(need to haveRuby
,Rubygems
installed)git clone --branch gh-pages git://github.com/twitter/bootstrap.git
(now
gh-pages
branch holds all docs stuff)cd bootstrap
jekyll serve
http://127.0.0.1:4000/
default server url