![Bootstrap 4 Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/25/36701025/b_36701025.jpg)
上QQ阅读APP看书,第一时间看更新
How to do it...
- Verify that Ruby is preinstalled, and Jekyll is not:
which ruby; which jekyll
This command will return only the location of Ruby on your VM. Thus, Jekyll needs to be installed.
- To install Jekyll, you need to install Bundler first:
gem install bundler
Now run bundle install, which will install Jekyll:
bundle install
Verify that Jekyll is installed:
bundle show jekyll
Serve Bootstrap 4 Jekyll-powered docs on Cloud9 IDE:
bundle exec jekyll serve --host $IP --port $PORT --baseurl ''
Upon running this command, a notification will pop up with a link to preview the running webpage. Click on the link and choose one of the display options:
![](https://epubservercos.yuewen.com/92C0CC/19470407301636006/epubprivate/OEBPS/Images/d8054156-aa16-4b8b-ab7d-30bbbf5b5dee.png?sign=1739262033-Qz0nPjfcFuYkOK844FHEzcyNsjn1szRA-0-ee223ce6a0e69d906506a3738a95b674)
Click on the link, and your very own copy of the Bootstrap docs will appear:
![](https://epubservercos.yuewen.com/92C0CC/19470407301636006/epubprivate/OEBPS/Images/8d73ea57-87d2-469b-a7b6-87daedef4202.png?sign=1739262033-wThiPMxsi1L6SoiGFkdSzuepzDpLISx1-0-702905944949eb114b8b0ded4a583718)