2

I'm using octopress to generate both my website and blog. If I write a new post, I always have to do

rake generate 

or

rake gen_deploy

But I don't want to generate everything all the time. It takes up to 2,5 min on my machine, and that's maybe too long, also because I have to do this if I fix a typo or so.

How to generate only the new post and depending pages (E.G. if I have a new post, the blog index page has also to be regenerated of course)?

musicmatze
  • 4,124
  • 7
  • 33
  • 48
  • 1
    The question has been asked and partially answered already [here](http://stackoverflow.com/questions/13217394/how-to-speed-up-jekyll-octopress-generation). – matthias Dec 04 '12 at 11:31
  • 1
    As I commented in the question you linked and as you said, this question is only partially answered. I still don't know how to `generate` only the new stuff! – musicmatze Dec 07 '12 at 14:53

1 Answers1

3

You can generate only one post while you are writing it using

rake isolate[your-post]

and then

rake integrate

to go back to normal.

To fully answer your question, you can't generate only one post. You can see Octopress' Issue #395 on that subject, which explains that this is due to a limitation on Jekyll's side.

alestanis
  • 21,519
  • 4
  • 48
  • 67