dreverri / gollum-site

Static Site Generator for Gollum Wikis
254 stars 28 forks source link

Serve + Watch option should only generate what's necessary #24

Closed apazzolini closed 3 years ago

apazzolini commented 12 years ago

This adds support for only generating the necessary file when using "gollum-site serve --watch".

For example, if Home.md changes, we don't need to regenerate the entire tree. (This will still generate everything if _Layout.md changes)

For my large gollum repository, full generation takes ~20 seconds - a single file is a fraction of a second.

Please note I am not a Ruby developer so I won't be offended if you think my code is bad! :)