Monthly Archives: March 2015

Run AngularJS, Bootstrap and Angular UI bootstrap documentation locally

It is always better to run the documentation of library locally as you won’t be dependent on internet for any documentation help. Also, navigation is fast due to local hosting.

Recently, I got chance to work with AngularJS in one of my project.
I chose my favorite front-end framework Twitter Bootstrap.
Also, came to know about Angular UI Boostrap – set of bootstrap components in AngularJS.

I googled a lot on “How to run documentation of above libraries locally?”.
I found few but mostly outdated.
Hence, this blog to summarize all in one page.

Run AngularJS documentation locally:

1. Go to https://code.angularjs.org/ and select your version and download the zip version.
Eg: For version 1.3.14, go to https://code.angularjs.org/1.3.14/ and download angular-1.3.14.zip(~9MB)

2. Extract the zip file. Above will be extracted into angular-1.3.14.

3. Through terminal, go to above folder

    cd angular-1.3.14

4. Start the server as:

    python -m SimpleHTTPServer

5. Visit url http://localhost:8000/docs


NOTE: For Bootstrap and Angular UI Boostrap, you need jekyll(http://jekyllrb.com/docs/installation/)
To install:(need to have Ruby, RubyGems installed)

    gem install jekyll

Run Bootstrap documentation locally:

1. Clone the gh-pages branch repo:

    git clone --branch gh-pages git://github.com/twitter/bootstrap.git

2. Go to bootstrap directory

    cd bootstrap

3. Serve using jekyll

    jekyll serve -P 8001

4. Visit url http://localhost:8001/


Run AngularUI Bootstrap documentation locally:

1. Clone the gh-pages branch repo:

    git clone --branch gh-pages git://github.com/angular-ui/bootstrap.git angular-ui-bootstrap

2. Go to angular-ui-bootstrap directory

    cd angular-ui-bootstrap

3. Serve using jekyll

    jekyll serve -P 8002

4. Visit url http://localhost:8002/

And Enjoy!!!!
docs