静态网站生成利器之一:jekyll的安装

jekyll的安装备忘

Posted by LZP[原创] on July 30, 2018

jekyll的安装

Ruby环境的安装

第一步 下载Ruby,安装!

第二步 使用ruby的gem安装jekyll

  • gem:gem是ruby的包安装工具,直接在命令行运行
  • 安装jekell。在命令行运行: gem install jekyll

第三步 安装结果如下

(会自动安装上所有依赖包)

E:\ProgramData>gem install jekyll

  • Fetching: public_suffix-3.0.2.gem (100%) Successfully installed public_suffix-3.0.2
  • Fetching: addressable-2.5.2.gem (100%) Successfully installed addressable-2.5.2
  • Fetching: colorator-1.1.0.gem (100%) Successfully installed colorator-1.1.0
  • Fetching: http_parser.rb-0.6.0.gem (100%) Temporarily enhancing PATH for MSYS/MINGW… Building native extensions. This could take a while… Successfully installed http_parser.rb-0.6.0
  • Fetching: eventmachine-1.2.7-x64-mingw32.gem (100%) Successfully installed eventmachine-1.2.7-x64-mingw32
  • Fetching: em-websocket-0.5.1.gem (100%) Successfully installed em-websocket-0.5.1
  • Fetching: concurrent-ruby-1.0.5.gem (100%) Successfully installed concurrent-ruby-1.0.5
  • Fetching: i18n-0.9.5.gem (100%) Successfully installed i18n-0.9.5
  • Fetching: rb-fsevent-0.10.3.gem (100%) Successfully installed rb-fsevent-0.10.3
  • Fetching: ffi-1.9.25-x64-mingw32.gem (100%) Successfully installed ffi-1.9.25-x64-mingw32
  • Fetching: rb-inotify-0.9.10.gem (100%) Successfully installed rb-inotify-0.9.10
  • Fetching: sass-listen-4.0.0.gem (100%) Successfully installed sass-listen-4.0.0
  • Fetching: sass-3.5.7.gem (100%) Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.
    • If you use Sass as a command-line tool, we recommend using Dart Sass, the new primary implementation: https://sass-lang.com/install

    • If you use Sass as a plug-in for a Ruby web framework, we recommend using the sassc gem: https://github.com/sass/sassc-ruby#readme

    • For more details, please refer to the Sass blog: http://sass.logdown.com/posts/7081811

    • Successfully installed sass-3.5.7

  • Fetching: jekyll-sass-converter-1.5.2.gem (100%) Successfully installed jekyll-sass-converter-1.5.2
  • Fetching: ruby_dep-1.5.0.gem (100%) Successfully installed jekyll-sass-converter-1.5.2 Successfully installed ruby_dep-1.5.0 Successfully installed jekyll-sass-converter-1.5.2
  • Fetching: listen-3.1.5.gem (100%) Successfully installed jekyll-sass-converter-1.5.2 Successfully installed listen-3.1.5 Successfully installed jekyll-sass-converter-1.5.2
  • Fetching: jekyll-watch-2.0.0.gem (100%) Successfully installed jekyll-sass-converter-1.5.2 Successfully installed jekyll-watch-2.0.0 Successfully installed jekyll-sass-converter-1.5.2
  • Fetching: kramdown-1.17.0.gem (100%) Successfully installed kramdown-1.17.0 Successfully installed jekyll-sass-converter-1.5.2
  • Fetching: liquid-4.0.0.gem (100%) Successfully installed jekyll-sass-converter-1.5.2 Successfully installed liquid-4.0.0 Successfully installed jekyll-sass-converter-1.5.2
  • Fetching: mercenary-0.3.6.gem (100%) Successfully installed jekyll-sass-converter-1.5.2 Successfully installed mercenary-0.3.6 Successfully installed jekyll-sass-converter-1.5.2
  • Fetching: forwardable-extended-2.6.0.gem (100%) Successfully installed jekyll-sass-converter-1.5.2 Successfully installed forwardable-extended-2.6.0 Successfully installed jekyll-sass-converter-1.5.2
  • Fetching: pathutil-0.16.1.gem (100%) Successfully installed jekyll-sass-converter-1.5.2 Successfully installed pathutil-0.16.1 Successfully installed jekyll-sass-converter-1.5.2
  • Fetching: rouge-3.1.1.gem (100%) Successfully installed jekyll-sass-converter-1.5.2 Successfully installed rouge-3.1.1 Successfully installed jekyll-sass-converter-1.5.2
  • Fetching: safe_yaml-1.0.4.gem (100%) Successfully installed jekyll-sass-converter-1.5.2 Successfully installed safe_yaml-1.0.4 Successfully installed jekyll-sass-converter-1.5.2
  • Fetching: jekyll-3.8.3.gem (100%) Successfully installed jekyll-sass-converter-1.5.2 Successfully installed jekyll-3.8.3 Successfully installed jekyll-sass-converter-1.5.2
  • Parsing documentation for public_suffix-3.0.2 Installing ri documentation for public_suffix-3.0.2
  • Parsing documentation for addressable-2.5.2 Installing ri documentation for addressable-2.5.2
  • Parsing documentation for colorator-1.1.0 Installing ri documentation for colorator-1.1.0
  • Parsing documentation for http_parser.rb-0.6.0 Installing ri documentation for http_parser.rb-0.6.0
  • Parsing documentation for eventmachine-1.2.7-x64-mingw32 Installing ri documentation for eventmachine-1.2.7-x64-mingw32
  • Parsing documentation for em-websocket-0.5.1 Installing ri documentation for em-websocket-0.5.1
  • Parsing documentation for concurrent-ruby-1.0.5 Installing ri documentation for concurrent-ruby-1.0.5
  • Parsing documentation for i18n-0.9.5 Installing ri documentation for i18n-0.9.5
  • Parsing documentation for rb-fsevent-0.10.3 Installing ri documentation for rb-fsevent-0.10.3
  • Parsing documentation for ffi-1.9.25-x64-mingw32 Installing ri documentation for ffi-1.9.25-x64-mingw32
  • Parsing documentation for rb-inotify-0.9.10 Installing ri documentation for rb-inotify-0.9.10
  • Parsing documentation for sass-listen-4.0.0 Installing ri documentation for sass-listen-4.0.0
  • Parsing documentation for sass-3.5.7 Installing ri documentation for sass-3.5.7
  • Parsing documentation for jekyll-sass-converter-1.5.2 Installing ri documentation for jekyll-sass-converter-1.5.2
  • Parsing documentation for ruby_dep-1.5.0 Installing ri documentation for ruby_dep-1.5.0
  • Parsing documentation for listen-3.1.5 Installing ri documentation for listen-3.1.5
  • Parsing documentation for jekyll-watch-2.0.0 Installing ri documentation for jekyll-watch-2.0.0
  • Parsing documentation for kramdown-1.17.0 Installing ri documentation for kramdown-1.17.0
  • Parsing documentation for liquid-4.0.0 Installing ri documentation for liquid-4.0.0
  • Parsing documentation for mercenary-0.3.6 Installing ri documentation for mercenary-0.3.6
  • Parsing documentation for forwardable-extended-2.6.0 Installing ri documentation for forwardable-extended-2.6.0
  • Parsing documentation for pathutil-0.16.1 Installing ri documentation for pathutil-0.16.1
  • Parsing documentation for rouge-3.1.1 Installing ri documentation for rouge-3.1.1
  • Parsing documentation for safe_yaml-1.0.4 Installing ri documentation for safe_yaml-1.0.4
  • Parsing documentation for jekyll-3.8.3 Installing ri documentation for jekyll-3.8.3

  • Done installing documentation for public_suffix, addressable, colorator, http_parser.rb, eventmachine, em-websocket, concurrent-ruby, i18n, rb-fsevent, ffi, rb-inotify, sass-listen, sass, jekyll-sass-converter, ruby_dep, listen, jekyll-watch, kramdown, liquid, mercenary, forwardable-extended, pathutil, rouge, safe_yaml, jekyll after 54 seconds

其它问题

ruby从2.1升级到2.7之后的变化

  • _config.yml中,gems已被重命名为plugins
  • 需要一个名为jekyll-paginate的gem,安装 gem install jekyll-pagenate
    • 安装信息如下:
    • Fetching: jekyll-paginate-1.1.0.gem (100%)
    • Successfully installed jekyll-paginate-1.1.0
    • Parsing documentation for jekyll-paginate-1.1.0
    • Installing ri documentation for jekyll-paginate-1.1.0
    • Done installing documentation for jekyll-paginate after 0 seconds
    • 1 gem installed