[Environment setup] install Jekyll in Windows and build jekyll

Source: Internet
Author: User

[Environment setup] install Jekyll in Windows and build jekyll

========================================================== ======================
Author: qiujuer
Blog: blog.csdn.net/qiujuer
Website: www.qiujuer.net
Open-source Library: github.com/qiujuer/Genius-Android
Reprinted please indicate the source: http://blog.csdn.net/qiujuer/article/details/44620019
-- Learning Open Source for open source; a beginner's mentality is shared with you!

========================================================== ======================

Jekyll is a static website generation tool that allows users to use HTML, Markdown, or Textile to create the desired website through modules, and then use the template Engine Liquid (Liquid Templating Engine) to run or generate the corresponding static website file.
GitHub is widely used. Generally, Jekyll is used to build your own blog through GitHub, because the rendering engine of GitHub is Jekyll by default.

There are many similar installation tutorials on the Internet, but Python is usually required to be installed. In this article, we do not use the "Pygments" code highlighting engine, so we do not need to install Python.

Install Ruby

Jekyll is a Ruby-based plug-in that is required to install Ruby.
1. Download, transfer array: http://rubyinstaller.org/downloads/
2. Click the version and download it. Here I download "Ruby 2.2.1 (x64 )"
3. Click to install. Pay attention to the following two points:
* The installation directory cannot contain spaces.
* Select "Add Ruby executables to your PATH" to automatically complete environment variable configuration.

4. Enter "CMD" and enter"Ruby-v"If the version is displayed, the installation is successful.

Install DevKit

DevKit is a toolbox that helps simplify installation and use Ruby C/C ++ extensions such as RDiscount and RedCloth on Windows.
For more detailed installation guide, refer to the Ruby wiki page.

Install Jekyll

ERROR: cocould not find a valid gem 'jekyll '(> = 0), here is why:
Unable to download data from https://rubygems.org/-SSL_connect returned = 1 errno = 0 state = SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_spece.4.8.gz)

The cause of this error is the certificate problem. The simple solution is to download the latest certificate, put it in the specified folder, and configure the environment variable.

Download: http://curl.haxx.se/ca/cacert.pem
Copy to: "bin" under the Ruby installation directory
Environment variable:

For other errors, such as the 443 error, it can be accessed several times or attached to a VPN.

Install Rouge

In general, the highlighted code and other functions are often used in static generation, while the generation of highlighted Code usually requires the help of the plug-in. In general, "Pygments" is generally used "; because "Pygments" is a plug-in under python, you need to install Python before installing the plug-in. I am too troubled to use the "Rouge" highlighted plug-in actual use.
The reason for using: "Rouge" is because this plug-in will be used later as mentioned on the Jekyll official website.
The installation steps are very simple. You can also use the command line to install them:

// Run the command line Gem to install gem install rouge

In general, the server may encounter errors such as no response or 443. You don't have to worry about these errors. If you try them several times, you will be OK.

Installation Steps








========================================================== ======================
Author: qiujuer
Blog: blog.csdn.net/qiujuer
Website: www.qiujuer.net
Open-source Library: github.com/qiujuer/Genius-Android
Reprinted please indicate the source: http://blog.csdn.net/qiujuer/article/details/44620019
-- Learning Open Source for open source; a beginner's mentality is shared with you!

========================================================== ======================

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.