Local deployment Bootstrap help documentation

Recently relive Bootstrap, trying to find out exactly what it is! To learn from scratch, download the source code from github, in accordance with the method in which readme.md file in the source docs deployed locally. I had a little problem during the recording here.

According to readme.md parlance, they are using jekyll this stuff to the host. In order to use this stuff, you have a ruby ​​local environment. In this regard readme.md said in great detail, and no problems, reads as follows:


1. If necessary, [install Jekyll](http://jekyllrb.com/docs/installation) and other Ruby dependencies with `bundle install`.
   **Note for Windows users:** Read [this unofficial guide](http://jekyll-windows.juthilo.com/) to get Jekyll up and running without problems.
2. From the root `/bootstrap` directory, run `bundle exec jekyll serve` in the command line.
4. Open `http://localhost:9001` in your browser



After installing jekyll, in accordance with the above statement executed in the root directory of the source of the bootstrap bundle exec jekyll serve, being given that the system does not bundle this command, I have not used ruby, do not know what this is. I tried this a few jekyll serve, reported the following errors:


Dependency Error: Yikes! It looks like you don't have jekyll-sitemap or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-sitemap' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!


Dizzy, really do not understand, I get to know what is jekyll-sitemap. I went to the official website jekyll stroll around, above teach how to use jekyll create a new blog, I try to do:

jekyll new myblog

cd myblog

jekyll serve


Success! I compared myblog directory with the bootstrap directory and found bootstrap myblog fundamentally different directory structure, but found docs directory has the same directory with the directory structure of myblog. So I put the command-line switch to the bootstrap / docs, execution jekyll serve again. This error has changed:


Configuration file: none
            Source: D:/windows/git/bootstrap/docs
       Destination: D:/windows/git/bootstrap/docs/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
jekyll 3.1.6 | Error:  No such file or directory @ rb_sysopen - ./grunt/configBridge.json


Can not find grunt / configBridge.json file, I found a grunt under bootstrap root directory, so I grunt copied to the docs. Executed again jekyll serve, this success! !


Published 55 original articles · won praise 39 · views 80000 +

Guess you like

Origin blog.csdn.net/Chinese521/article/details/51821294