From 8d7e022dc2f700c139bc812d7eadadfb73ba9ac3 Mon Sep 17 00:00:00 2001 From: yashdeep <yashdeeph709@users.noreply.github.com> Date: Wed, 18 Mar 2015 01:39:15 +0530 Subject: [PATCH] added method for locally running documentation Added a new method for running documentation locally using node and express for windows problems --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 06e17f0fa9..b7672b9c8a 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,18 @@ Bootstrap's documentation, included in this repo in the root directory, is built 2. Install the Ruby-based syntax highlighter, [Rouge](https://github.com/jneen/rouge), with `gem install rouge`. 3. From the root `/bootstrap` directory, run `jekyll serve` in the command line. 4. Open <http://localhost:9001> in your browser, and voilĂ . +Or +If your a windows user and facing problems in installing ruby you can go for the easy way. +1. Make a directory and clone the gh-pages branch from here. +2. Do npm install -g express in directory this will install express +4. make a file with server.js name in directory where you copied the branch and type this in it. +var express = require('express'); +var app = express(); +app.use(express.static('./bootstrap')); +app.listen(9000); +5.now from command line type node server.js +6.visit 127.0.0.1:9000 + Learn more about using Jekyll by reading its [documentation](http://jekyllrb.com/docs/home/). -- GitLab