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:
- Install Ruby: Of course use Rubyinstaller on the Windows system, bash me download (the version that I use is: Ruby 1.9.3-p545)
- Install ruby DevKit: Bash me download
- Installing Jekyll
- Install python: Bash me download
- 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:
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
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