How to build Bootstrap off-line document _JAVASCRIPT skills

Source: Internet
Author: User

Although there is little to no networking now, it is also necessary to build a bootstrap offline document on this computer for a rainy days.

Needless to say, if you have the same idea, you can do this by referring to the following steps:

If you have not installed Nodejs and Ruby, please download the installation before starting the following steps.

Go to bootstrap official website download source code.

After downloading, extract to any location, such as D:\.

From terminal into the source directory, enter the command:

npm install

Then enter the following command from terminal to install one of Ruby's Gem:bundler (official website: http://bundler.io)

gem install bundler

If you're like me. When you encounter an SSL error while installing bundler, run the following command before reinstalling Bundler:

gem sources --remove https://rubygems.org/
gem sources --add http://rubygems.org/

If you have encountered an SSL error while installing bundler, you will need to make additional changes to the following steps: Open the Gemfile file in the source root directory, change the first line of https: to HTTP, and then save the shutdown.

Modify Gemfile

From terminal into the source directory, enter the command:

bundler install

At this point, the Bootstrap offline document installation configuration has been completed, in the future when you want to view the document, from terminal into the source directory, enter the command:

Bundler exec Jekyll serve

Open the Web page http://localhost:9001 to view the offline document.

The above is a small series to introduce the construction of bootstrap off-line document method, hope to help everyone, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.