生成jekyll时无法识别_config.yml

时间:2018-10-20 15:10:39

标签: ruby jekyll bundler

以下是要求的确切步骤:

  • 我下载了Ruby
  • 已安装JekyllBundler
  • 检查它们是否由Jekyll -vBundler -v正确安装
  • 我的版本为Jekyll 3.8.4,捆绑程序的版本为Bundler 1.16.6
  • Jekyll全新的Healthcare Healthcare Transition Toolkit(在那我可以找到新站点)
  • 然后我做了Jekyll buildJekyll serve,但收到错误消息:

Configuration file: none

1 个答案:

答案 0 :(得分:0)

您错过了一步,但是也不要在项目名称中使用空格,并且不需要在命令或路径名上使用大写字母

someDictionary = {'1': 33, '2': 44, '3': 55, '4': 10, '5': 66, '6': 60}
someList = [51, 52, 53, 54, 55, 56]

myAnswer = [key for key in someDictionary if someDictionary[key] in someList]
if not myAnswer:
    diffs = {dict_key: dict_value-someList[-1]
                for dict_key, dict_value in someDictionary.items()
                    if dict_value-someList[-1] > 0}
    myAnswer = [min(diffs, key=diffs.get)]  # Key of value with minimum
                                            # (positive) difference
print(myAnswer)

这时您的命令应该可以正常工作

# this command will create a new project in a new relative folder
jekyll new healthcare-transition-toolkit

# then you need to cd into that folder
cd healthcare-transition-toolkit

bundle exec jekyll serve