• 升级Jekyll 3.0


    每一次的升级都得又一次折腾一次,jekyll也不例外
    从jekyll 2.5.2 升级为jekyll 3.0.1

    错误一:

    jekyll 3.0.1 | Error:  Permission denied - bind(2) for 127.0.0.1:4000

    端口被占有,打开_config.yml 在最后加上一行 port: 5001 (其它也可)问题解决

    错误二:

      Dependency Error: Yikes! It looks like you don't have redcarpet or one of its
    dependencies installed. In order to use Jekyll as currently configured, you'll n
    eed to install this gem. The full error message from Ruby is: 'cannot load such
    file -- redcarpet' If you run into trouble, you can find helpful resources at ht
    tp://jekyllrb.com/help/!
      Conversion error: Jekyll::Converters::Markdown encountered an error while conv
    erting '_posts/2014-12-28-first-blog.md':
                        redcarpet
                 ERROR: YOUR SITE COULD NOT BE BUILT:
                        ------------------------------------
                        redcarpet

    _config.yml中的markdown改为kramdown

    Jekyll 3 使用Rouge而不是Pygments

    最后 删除highlighter,markdown 加入:

    kramdown:
      input: GFM
      syntax_highlighter: rouge

    ps:仅仅在本地执行jekyll的时候会出现这些问题,在github上还一切正常。

    在 _post 下加入一篇文章还要执行一下build命令 (⊙﹏⊙)b)

    jekyll build
    # => 当前目录中的内容将会生成到 ./site 目录中。

    參考:Upgrading to Jekyll 3.0

    作者:itmyhome

  • 相关阅读:
    poco之查看布局树
    airtest连接真机
    airtest之ADB调用
    airtest连接无线连接设备
    airtest之模拟器连接
    airtest之api、图片处理
    airtest介绍
    fidder保存请求和保存响应结果
    7 js之 条件语句
    IE6/IE7之浮动元素最后一个字母重复Bug
  • 原文地址:https://www.cnblogs.com/yfceshi/p/7233539.html
Copyright © 2020-2023  润新知