[webgen-users] Partial site generation
Thomas Leitner
t_leitner at gmx.at
Sun Aug 17 02:39:35 EDT 2008
Am Sat, 16 Aug 2008 21:06:28 +0900
schrieb Kensuke Hoshitani <ml at hoshitani.com>:
> Thank you for providing excellent tools.
> I'd like to know about the partial site generation provided by webgen
> 0.5.2.
>
> http://rubyforge.org/forum/forum.php?forum_id=26516
> > When a file that was in the menu changed, all files which
> > included a menu with a link to this file got regenerated,
> > too. However, that was not always necessary since the content
> > of the changed file does not appear in the menu, only its meta
> > information `title`. Therefore the new system checks if the
> > meta information of the changed file has changed and only then
> > regenerates all menus. This system is now also used by all
> > other extensions like the breadcrumb trail or the langbar tag.
>
> I'm using webgen 0.5.2 on Windows Vista. with Ruby 1.8.6.
> I simply created a sample site using command 'webgen create test',
> and created two pages 'test1.page' and 'test2.page'.
>
> <SNIP>
>
> Although I guessed wrong, I understood that, if I change the content
> of a file without changing its meta information, other files in the
> menu are not regenerated. But, whenever I change the content of
> 'test2.page', 'index.html' and 'test1.html' are always regenerated.
> Did I misunderstand what the partial generation means?
No, you did not misunderstand partial generation. I forgot to update
Webgen::SourceHandler::Metainfo to set Node#dirt_meta_info instead of
Node#dirty and just uncovered two other bugs in the code which
prevented your example from working. I have fixed all these issues and
the repo version now works fine on your provided test case.
I have pushed the updated code to the Rubyforge and Github repositories!
-- Thomas
More information about the webgen-users
mailing list