Giter Club home page Giter Club logo

Comments (10)

andy-chubb avatar andy-chubb commented on August 22, 2024

Hi,

I had an error similar to this, running on Windows 8. I think it may be to do with Ruby gems rather than the Scribble theme itself.

Basically what I narrowed it down to was there was a gem I had installed called Pygments (this gem lists Posix-Spawn as a dependancy, which I spotted in your error), which I believe is some type of syntax/code highlighter. So that if you have code samples in your markdown files they get styled as such. I know the theme demo markdown has these in, so what you could try is taking out the code samples, or even those markdown files altogether and see if you can do a build. At least this will help to establish if this is causing the problem.

I am no Jekyll expert myself, and am only toying around with it, so sorry I can't tell you a fix, but when I saw your error it reminded me of the issue that I had. All I can say is that on Windows I have found that you need the right mix of gems to get Jekyll to behave.

from scribble.

belohlavek avatar belohlavek commented on August 22, 2024

I managed to install this theme without problems: http://jekyllthemes.org/themes/vanilla-bean-creme/
But I hate it and still want this one :P so I'll try out what you mentioned until the authors reads this issue.

Thanks!

from scribble.

muan avatar muan commented on August 22, 2024

Hi @belohlavek, as a matter of fact I have very little idea, but what @andy-chubb said sounds really plausible, back when I had a windows machine incompatible gems were causing problems all over the place.
So if that's the case, you can try removing the this line from the config file and last line of this file then rebuild the site, it should solve the problem.
Although that means you won't have code highlighting anymore, but at the same time there are alternatives for doing code highlighting. A few versions back this theme was using codemirror for syntax highlighting, if you're up for it, try that.

Also thanks a lot @andy-chubb!

from scribble.

belohlavek avatar belohlavek commented on August 22, 2024

@muan I'd be able to use some kind of JS Syntax Highlighter and Codepen rather than Pygments, thanks for the quick answer and I'll try that in a minute!

from scribble.

belohlavek avatar belohlavek commented on August 22, 2024

@muan @andy-chubb It worked! Now, should I use a JS Syntax Highlighter as I said or is there some smarter alternative?

btw, you should put the menu inside a nav tag ;)

from scribble.

muan avatar muan commented on August 22, 2024

Codemirror is a JS alternative as I mentioned, if you check back my commits here: https://github.com/muan/scribble/commits/master this theme was using that instead of pygments(21 may), so you can reset back and try it out to see if you like that :)
I'm sure there are others but I don't know them. :)

As for the nav tag.. I have actually moved the theme into another repository along with other themes, so it is indeed in a nav tag now. :) I am not actively maintaining this repository at the moment.

from scribble.

muan avatar muan commented on August 22, 2024

Hey by the way, I just came across this: http://stackoverflow.com/questions/17364028/jekyll-on-windows-pygments-not-working Looks to be exactly what you had.

from scribble.

 avatar commented on August 22, 2024

I haven't tried this, though, using something like http://rubyinstaller.org/downloads/ may make your life easier.

from scribble.

aigarsdz avatar aigarsdz commented on August 22, 2024

Using Pygments on Windows is a little bit tricky, but that is a problem with Python rather than Ruby or Jekyll. You have to make sure that pygmentize command works on its own before using it with Jekyll.

from scribble.

belohlavek avatar belohlavek commented on August 22, 2024

I've already removed the codemirror code and used Prettify instead: https://code.google.com/p/google-code-prettify/ so no need for Python syntax highlighting! Thanks for the help!

from scribble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.