In the Windows system configuration Jekyll

Source: Internet
Author: User

Jekyll is a simple Web site static page generation tool. Because it's written in Ruby, it's a little cumbersome to configure on a Windows system. The process is as follows:

    1. Install Ruby: Of course use Rubyinstaller on the Windows system, bash me download (the version that I use is: Ruby 1.9.3-p545)
    2. Install ruby DevKit: Bash me download
    3. Installing Jekyll
    4. Install python: Bash me download
    5. Installing Pygments

Here are the detailed steps:

1. Download the installation package from Rubyinstaller and install it on a disk, for example: E:\Ruby192, select all the options on the installation screen;

2. Extract the downloaded Devkit to a directory, such as E:\devkit, and run the following command in the directory:

> Ruby DK.RB Init

To generate a config. E:\Ruby192 configuration file that contains the preceding Ruby installation directory and then runs the following command

Install

3. Then run the following command to install Jekyll:

Install Jekyll

Now it's time to start using Jekyll. If you also need to use the Code highlighting tool, you will need to continue installing pygments as follows:

4. Install the downloaded portable Python (the author is using Portablepython_3.2.1.1.exe), the installation directory is E:\Portable_Python_3.2.1.1

Then add the E:\Portable_Python_3.2.1.1\App\Scripts and E:\PORTABLE_PYTHON_3.2.1.1\APP directories separately to the system PATH environment variable

5. Extract the downloaded distribute-0.6.49.tar.gz directory (for example: E:\distribute-0.6.28), hit me to download

Run the following command in this directory:

> Python distribute_setup.py

6. Then install the pygments with the following command:

> Easy_install pygments

Finally, 2 bugs need to be modified:

    1. Bug in Pygmentize: Modify the following file E:\Ruby192\lib\ruby\gems\1.9.1\gems\albino-1.3.3\lib\albino.rb modify the content reference here

    2. Because the Chinese XP system uses the GBK encoding, the GBK encoding causes the Jekyll processing bug, modifies E:\Ruby192\lib\ruby\gems\1.9.1\gems\jekyll-0.11.2\lib\jekyll\ CONVERTIBLE.RB This file, modify the way reference here

Then you can use the Jekyll, in the generation of static pages may also appear GBK characters can not encode the problem, but does not affect the generation of web pages.

Update

I recently installed the latest version of the Jekyll, there is no need to fix two bugs, install to the sixth step is OK, the above mentioned GBK coding problem, can be resolved as follows, in the CMD window to enter the following command, temporarily change the code.

65001
Resources
    • Running Jekyll on Windows
    • Some problems on local debugging of Jekyll
    • Build a free, unlimited-Flow Blog
    • Markdown Syntax Instructions (Simplified Chinese version)
    • Jekyll Chinese Station
    • Markdown Online Editor
    • Markdownpad 2

In the Windows system configuration Jekyll

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.