spanezz / staticsite

Static site generator
GNU General Public License v3.0
47 stars 7 forks source link

Incremental rendering #1

Closed spanezz closed 1 year ago

spanezz commented 8 years ago

Ideas for implementing incremental rendering:

paternal commented 6 years ago

Hello, does this mean that right now, everything is re-generated from scratch?

spanezz commented 5 years ago

Yes, right now everything is re-generated from scratch at each site rebuild. For my use case (around 600 markdown pages), it is currently fast enough not to consider incremental rendering a priority.

spanezz commented 5 years ago

Similar to how markdown caches previous renderings in .staticsite-cache, one can track, with cooperation with jinja2 functions, the dependencies of a page. If the dependencies have not changed, we do not need to rebuild the page

spanezz commented 5 years ago

I forgot to mention: now markdown caches previous markdown→html content in .staticsite-cache, greatly speeding up previous builds. It looks like staticsite is starting to have some incremental rendering.

spanezz commented 1 year ago

This is now working in the refactor branch!

spanezz commented 1 year ago

I merged refactor to master. The links feature cannot do incremental builds yet, but it seems reasonably fast, and not as used as the others.

Finally closing this issue :tada: