Thomas, Thanks for all the great work on webgen. I have a site that uses the 0.4.7 version, I didn''t notice much info on upgrading so I wanted to ask what I should be aware of before making the jump. I''m not using anything beyond the standard 0.4.7 (no extensions). Has the metainfo.yaml file usage changed? I do have additional files (such as PDFs) in the source directory that get copied into the output directory. Sounds like the config.yaml file usage is now different? Hope I didn''t miss a page that described all this. Thanks again for all your efforts! -Anthony Just for completeness, this is what is in my current config.yaml file: File/CopyHandler: paths: ["**/*.css", "**/*.js", "**/*.jpg", "**/*.png", "**/ *.gif", "**/*.pdf", "**/*.RData", "**/*.mov", "**/*.txt", "**/*.php", "**/*.html", "**/*.htm"] File/PageHandler: defaultMetaInfo: useERB: true blocks: [[content, maruku]]
Dear All, I''m really interested in the porting/migration of a website created with webgen 0.4.x, that uses the personal homepage template and the gallery too (actually that is my website http://www.dei.unipd.it/~sken). Thanks Luca On 13 Ago, 22:20, Anthony Tanbakuchi <anthony.tanbaku... at gmail.com> wrote:> Thomas, > > Thanks for all the great work on webgen. I have a site that uses the ? > 0.4.7 version, I didn''t notice much info on upgrading so I wanted to ? > ask what I should be aware of before making the jump. I''m not using ? > anything beyond the standard 0.4.7 (no extensions). Has the ? > metainfo.yaml file usage changed? I do have additional files (such as ? > PDFs) in the source directory that get copied into the output ? > directory. Sounds like the config.yaml file usage is now different? ? > Hope I didn''t miss a page that described all this. > > Thanks again for all your efforts! > > -Anthony > > Just for completeness, this is what is in my current config.yaml file: > > File/CopyHandler: > ? ? ?paths: ["**/*.css", "**/*.js", "**/*.jpg", "**/*.png", "**/ > *.gif", "**/*.pdf", "**/*.RData", "**/*.mov", "**/*.txt", "**/*.php", ? > "**/*.html", "**/*.htm"] > > File/PageHandler: > ? ? ?defaultMetaInfo: > ? ? ? ? ?useERB: true > ? ? ? ? ?blocks: [[content, maruku]] > _______________________________________________ > webgen-users mailing list > webgen-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/webgen-users
Hi Anthony, Am Wed, 13 Aug 2008 13:20:03 -0700 schrieb Anthony Tanbakuchi <anthony.tanbakuchi at gmail.com>:> Thanks for all the great work on webgen. I have a site that uses the > 0.4.7 version, I didn''t notice much info on upgrading so I wanted to > ask what I should be aware of before making the jump. I''m not using > anything beyond the standard 0.4.7 (no extensions). Has the > metainfo.yaml file usage changed? I do have additional files (such > as PDFs) in the source directory that get copied into the output > directory. Sounds like the config.yaml file usage is now different? > Hope I didn''t miss a page that described all this. > > Thanks again for all your efforts! > > -Anthony > > Just for completeness, this is what is in my current config.yaml file: > > File/CopyHandler: > paths: ["**/*.css", "**/*.js", "**/*.jpg", "**/*.png", "**/ > *.gif", "**/*.pdf", "**/*.RData", "**/*.mov", "**/*.txt", > "**/*.php", "**/*.html", "**/*.htm"] > > File/PageHandler: > defaultMetaInfo: > useERB: true > blocks: [[content, maruku]]I will try to put some ugrading information online. Here are the most important changes: - adadpt your page/templates files since the format change a little bit (the options on the --- line are specified in an other way). Have a look at http://webgen.rubyforge.org/documentation/webgen_page_format.html where the new format is described. If you didn''t name the blocks in your page/template files, everything will work. - metainfo.yaml in the website directory is not supported anymore, use metainfo files in your src directory. So move your websitedir/metainfo.yaml to websitedir/src/metainfo and read http://webgen.rubyforge.org/documentation/sourcehandler/metainfo.html which shows the changes in this file. - virtual files/directories are now handled separately from meta information files. If you used virtual files/directories, read http://webgen.rubyforge.org/documentation/sourcehandler/virtual.html for more information! - configuration file syntax is different as well as the names of the extensions. Since maruku is now the default format, you need not set it. Setting the paths for the copy handler is currently a little bit tedious, I will add configuration helper soon. You will need to create an ext/init.rb file with the following content: Webgen::WebsiteAccess.website.config[''sourcehandler.patterns''][''Webgen::SourceHandler::Copy''] = ["**/*.css", "**/*.js", "**/*.jpg", "**/*.png", "**/*.gif", "**/*.pdf", "**/*.RData", "**/*.mov", "**/*.txt", "**/*.php", "**/*.html", "**/*.htm"] As you can see, that is really now obvious and configuration helpers for such things are badly needed. -- Thomas
Am Wed, 13 Aug 2008 14:57:30 -0700 (PDT) schrieb sken <luca.schenato.it at gmail.com>:> Dear All, > I''m really interested in the porting/migration of a website created > with webgen 0.4.x, that uses the personal homepage template and the > gallery too (actually that is my website > http://www.dei.unipd.it/~sken). Thanks > LucaHi Luca, you can find some information on upgrading in an other reponse to this ML thread. However, I have not converted the gallery source handler yet, so your website won''t be fully functional with webgen 0.5.x. I think that the gallery source handler will be in the 0.5.x series by the end of August. -- Thomas