LoginSignup
7
7

More than 5 years have passed since last update.

jekyll 2.5.3をWindows環境にインストール

Last updated at Posted at 2015-09-15

Win環境でjekyllを動かすまでのメモ

参考

基本的にはRun Jekyll on Windowsの手順にしたがっていけば問題なさそう。
「jekyll Windows」でぐぐると、UTF-8対策とか、pygmentsのダウングレードとか記載されていましたが、特に必要ありませんでした。改善されたのかな。

Rubyのインストール

Ruby 2.2.3 (x64)をダウンロードしました。
インストール途中で「Add Ruby executables to your PATH」という環境変数を設定するオプションがあるのでチェックをいれる

Ruby DevKitのインストール

DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exeをダウンロードしました。
解凍して、C:\RubyDevKitに設置。

以下のコマンドを実行

> cd C:\RubyDevKit
> ruby dk.rb init
> ruby dk.rb install

Pythonのインストール

Python 2.7.10をダウンロードしました。
インストール後、C:\Python27C:\Python27\Scriptsにパスを通しておく。

pygmentsのインストール

まずはpipをインストール。
get-pip.pyをダウンロードし以下のコマンドを実行。

> python get-pip.py

完了したら、pygmentsをインストール。

> python -m pip install Pygments

wdmのインストール

> gem install wdm

Jekyllのインストール

> gem install jekyll

Jelyllを動かす

EC-CUBE3のドキュメントをgithubからcloneして動かしてみる

> git clone https://github.com/EC-CUBE/ec-cube.github.io.git
> cd ec-cube.github.io
> jekyll serve

Configuration file: C:/Users/chihiro_adachi/Documents/ec-cube.github.io/_config.yml
            Source: C:/Users/chihiro_adachi/Documents/ec-cube.github.io
       Destination: C:/Users/chihiro_adachi/Documents/ec-cube.github.io/_site
      Generating...                    done.
 Auto-regeneration: enabled for 'C:/Users/chihiro_adachi/Documents/ec-cube.github.io'
Configuration file: C:/Users/chihiro_adachi/Documents/ec-cube.github.io/_config.yml
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.

にアクセスし、ページが表示されていれば成功。
終了するときは、ctrl-cで。

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7