我使用Github页面来托管我的网站,我在我的本地机器上测试它,它运行良好,但当我在Github上推送我的网站时,我收到了一个错误。它说
页面构建失败,出现以下错误:
无法运行jekyll
我的_config.yml
文件
---
auto : false
lsi : false
pygments : true
permalink : none
markdown : maruku
maruku:
use_divs: true
use_tex: true
png_engine : blahtex
png_dir : images/latex/
png_url : /images/latex/
我在网上搜索过,但找不到任何有用的想法。谁能帮帮我?
我已经使用了Github,他们发给我了日志,这里是错误:
Maruku:使用div元素的扩展语法。\ nMaruku:使用LaTeX扩展。 images/latex/
中的图片。\ n / var / lib / gems / 1.8 / gems / maruku-0.6.0 / lib / maruku / ext / math / mathml_engines / blahtex.rb:40:in convert_to_png_blahtex': Blahtex error: empty output (RuntimeError)\n\tfrom /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/ext/math/to_html.rb:64:in
发送'\ n \ t from /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/ext/math/to_html.rb:64:in render_png'\n\tfrom /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/ext/math/to_html.rb:120:in
to_html_equation'\ n \ t来自/ var /lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:970:in send'\n\tfrom /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:970:in
array_to_html'\ n \ t from /var/lib/gems/1.8/gems/ maruku-0.6.0 / lib / maruku / output / to_html.rb:961:in each'\n\tfrom /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:961:in
array_to_html'\ n \ t from /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku /output/to_html.rb:956:in children_to_html'\n\tfrom /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:50:in
to_html'\ n \ t from /var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/converters/markdown .rb:120:在convert'\n\tfrom /var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/convertible.rb:46:in
转换'\ n \ t来自/var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/convertible.rb:84:in do_layout'\n\tfrom /var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/post.rb:189:in
渲染'\ n \ t来自/var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/site.rb:193:in render'\n\tfrom /var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/site.rb:192:in
'\ n \ t from /var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/site.rb:192:in render'\n\tfrom /var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/site.rb:40:in
进程'\ n \ t来自/ var / lib / gems / 1.8 / gems / jekyll-0.11.0 / bin / jekyll:250 \ n \ t from /var/lib/gems/1.8/bin/jekyll:1 9:在'load'\ n \ t from /var/lib/gems/1.8/bin/jekyll:19\n“
从日志中我们可以看到问题是`convert_to_png_blahtex':Blahtex错误:空输出(RuntimeError)。我读了blahtex代码,
if png.name != 'png'
maruku_error "Blahtex error: \n#{doc}"
return nil
end
但是,png文件在那里。有人遇到过这个问题吗?
答案 0 :(得分:0)
我不确定_config.yml文件是否存在问题。我已将无效的一个推送到我的网站,页面仍然正常。也就是说,尝试一起删除_config.yml。 Github页面在没有它的情况下工作正常。如果页面仍然无法呈现,您知道它是另一回事。
答案 1 :(得分:0)
我个人更喜欢kramdown。