bamos / bamos.github.io

Home Page:http://bamos.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pygments -> rogue

bamos opened this issue · comments

From email:


The page build completed successfully, but returned the following warning:

You are attempting to use the 'pygments' highlighter, which is currently unsupported on GitHub Pages. Your site will use 'rouge' for highlighting instead. To suppress this warning, change the 'highlighter' value to 'rouge' in your '_config.yml'. For more information, see https://help.github.com/articles/page-build-failed-config-file-error/#fixing-highlighting-errors.

GitHub Pages was recently upgraded to Jekyll 3.0. It may help to confirm you're using the correct dependencies:

https://github.com/blog/2100-github-pages-now-faster-and-simpler-with-jekyll-3-0

For information on troubleshooting Jekyll see:

https://help.github.com/articles/using-jekyll-with-pages#troubleshooting

If you have any questions you can contact us by replying to this email.

GitHub has recently changed gh-pages, it looks like syntax highlighting has changed with it.

I suggest we follow the advice and switch to rouge.

_config.yml:

-highlighter: pygments
+highlighter: rouge

Hi @wesleifreitas, does this change mess up the syntax highlighting on your local Jekyll instance? It did on mine when I tried it a week ago and that's why I opened this issue.

Hi @bamos,

I 'm beginner in Jekyll. Already installed gem rouge ? Is it updated ?

Hi @wesleifreitas - the following works for me:

kramdown:
  parse_block_html: true
  syntax_highlighter: rouge

Very good! :)