From Igor.Petrushenko at gmail.com Sun Aug 3 02:04:16 2008 From: Igor.Petrushenko at gmail.com (Igor) Date: Sat, 2 Aug 2008 23:04:16 -0700 (PDT) Subject: [webgen-users] Features for webgen 0.5.1 In-Reply-To: <20080725093758.57e02c91@noeato.local> References: <20080709124137.2b274ef6@noeato.mat.univie.ac.at> <20080725093758.57e02c91@noeato.local> Message-ID: Hi, Thomas, Actually I'm not sure that this is a feature, maybe it's just a newbie question, but: 1. In older webgen release it was clear for me how to copy files - *.doc, *xls -- I don't know (just lazy to look at the source) how to specify, that webgen should copy all *.xls and *.doc files. That's why I'm editing default config file - from webgen source for fixing it for me. 2. After 0.5 release I started to port my site, but it fails immediately with Maruku specific errors. I'm using textile. That's why I also specified redcloth in the webgen default config file(source). Please, point me how I can avoid this ugly methods, and just use config.yml Thanks, Sincerely, Igor From t_leitner at gmx.at Mon Aug 4 04:41:26 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Mon, 4 Aug 2008 10:41:26 +0200 Subject: [webgen-users] Features for webgen 0.5.1 In-Reply-To: References: <20080709124137.2b274ef6@noeato.mat.univie.ac.at> <20080725093758.57e02c91@noeato.local> Message-ID: <20080804104126.4557a2be@noeato.local> Hi Igor, > 1. In older webgen release it was clear for me how to copy files - > *.doc, *xls > -- I don't know (just lazy to look at the source) how to specify, > that webgen should copy all *.xls and *.doc files. > That's why I'm editing default config file - from webgen > source for fixing it for me. You need to adjust the path pattern for Webgen::SourceHandler::Copy. This can be done using the ext/init.rb file: Webgen::WebsiteAccess.website.config['sourcehandler.patterns']['Webgen::SourceHandler::Copy']+= ['**/*.doc', '**/*.xls'] You could also set this using the config.yaml file but by using ext/init.rb you can more precisely specify/change the configuration values. > 2. After 0.5 release I started to port my site, but it fails > immediately with Maruku specific errors. > I'm using textile. That's why I also specified redcloth in the > webgen default config file(source). This could be done in ext/init.rb as well, like this: Webgen::WebsiteAccess.website.config['sourcehandler.default_meta_info']['Webgen::SourceHandler::Page']['blocks']['default']['pipeline'] = 'erb,tags,redcloth,blocks' or you can set this in your config.yaml file: default_meta_info: Webgen::SourceHandler::Page: blocks: default: pipeline: erb,tags,redcloth,blocks This specifies that the default meta information for files handled by Webgen::SourceHandler::Page should be updated with the provided data. The only difference to the default is the use of 'redcloth' instead of 'maruku'. I will provide some helpers for setting these more complex configuration options in the next release. Regards, Thomas From Igor.Petrushenko at gmail.com Mon Aug 4 05:37:12 2008 From: Igor.Petrushenko at gmail.com (Igor) Date: Mon, 4 Aug 2008 02:37:12 -0700 (PDT) Subject: [webgen-users] Features for webgen 0.5.1 In-Reply-To: <20080804104126.4557a2be@noeato.local> References: <20080709124137.2b274ef6@noeato.mat.univie.ac.at> <20080725093758.57e02c91@noeato.local> <20080804104126.4557a2be@noeato.local> Message-ID: <9256fc9b-fc74-4f28-99fc-1f51e6ca0ee8@25g2000hsx.googlegroups.com> Thank you, Thomas I thought about the same solutions, but for me it was much easy to just change webgen source. That config lines, which you provided, looks like C# or long C++ statements, which we can avoid in ruby, I believe. So, for now I'll wait new helpers, and leave this changes in the webgen source. Once again, thank you for helping me. Sincerely, Igor From sven.was.here at gmail.com Sat Aug 9 21:35:56 2008 From: sven.was.here at gmail.com (sven.was.here at gmail.com) Date: Sat, 9 Aug 2008 18:35:56 -0700 (PDT) Subject: [webgen-users] Better Documentation Examples Message-ID: <4dd044fd-0bf4-40c2-b9d6-d038bc76a447@v57g2000hse.googlegroups.com> Thomas, Thank you for putting more examples of how to use these different features of Webgen on the 5.0 site. I am still very new to Webgen and developing websites, so every example that I see really helps me figure things out more. Thanks, Sven From sven.was.here at gmail.com Sat Aug 9 23:35:35 2008 From: sven.was.here at gmail.com (sven.was.here at gmail.com) Date: Sat, 9 Aug 2008 20:35:35 -0700 (PDT) Subject: [webgen-users] Image change Message-ID: Thomas, Is there a way to change the top picture in the .page file that would override the one set in the default template? Thanks, Sven From sven.was.here at gmail.com Sun Aug 10 14:57:00 2008 From: sven.was.here at gmail.com (sven.was.here at gmail.com) Date: Sun, 10 Aug 2008 11:57:00 -0700 (PDT) Subject: [webgen-users] Help with Webgen 0.5.1 on Win XP SP2 Message-ID: <541de9c4-c10b-4752-88be-5b1dad69c04d@56g2000hsm.googlegroups.com> After upgrading from 4.7 to 0.5.1 I can't render D:\webdesign\gotsvenwebgen>webgen render The system cannot find the path specified. Starting webgen... Generating tree... An error has occurred: The specified parent path does not exist D:\webdesign\gotsvenwebgen> Has anyone else experienced this problem? Or has a solution to mitigate this? Thanks, Sven From t_leitner at gmx.at Mon Aug 11 01:06:55 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Mon, 11 Aug 2008 07:06:55 +0200 Subject: [webgen-users] Better Documentation Examples In-Reply-To: <4dd044fd-0bf4-40c2-b9d6-d038bc76a447@v57g2000hse.googlegroups.com> References: <4dd044fd-0bf4-40c2-b9d6-d038bc76a447@v57g2000hse.googlegroups.com> Message-ID: <20080811070655.0bb585a1@noeato.local> > Thank you for putting more examples of how to use these different > features of Webgen on the 5.0 site. I am still very new to Webgen and > developing websites, so every example that I see really helps me > figure things out more. I will gradually add more examples and tutorials over time. For example, I will put a blog and an image gallery tutorial online once I have implemented the needed extensions. If you need any further help, just write mails or contact me on IRC on freenode in #webgen. -- Thomas From t_leitner at gmx.at Mon Aug 11 01:13:45 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Mon, 11 Aug 2008 07:13:45 +0200 Subject: [webgen-users] Image change In-Reply-To: References: Message-ID: <20080811071345.0ed3a36f@noeato.local> > Is there a way to change the top picture in the .page file that would > override the one set in the default template? No problem! Open the default template and change the src attribute of the image like this: This specifies that if a node has a meta information called `toppic`, this meta information should be used as source lcn for the image. Otherwise the default picture `normal_toppic.jpg` is used. So, you just need to set the following meta information in a page node and be aware that the path of the image is calculated from the template and not the page, so the best thing would be to use an absolute lcn to avoid confusion: toppic: /images/special_toppic.jpg -- Thomas From t_leitner at gmx.at Mon Aug 11 01:47:21 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Mon, 11 Aug 2008 07:47:21 +0200 Subject: [webgen-users] Help with Webgen 0.5.1 on Win XP SP2 In-Reply-To: <541de9c4-c10b-4752-88be-5b1dad69c04d@56g2000hsm.googlegroups.com> References: <541de9c4-c10b-4752-88be-5b1dad69c04d@56g2000hsm.googlegroups.com> Message-ID: <20080811074721.42c11e43@noeato.local> Am Sun, 10 Aug 2008 11:57:00 -0700 (PDT) schrieb sven.was.here at gmail.com: > After upgrading from 4.7 to 0.5.1 I can't render > > D:\webdesign\gotsvenwebgen>webgen render > The system cannot find the path specified. > Starting webgen... > Generating tree... > An error has occurred: The specified parent path does not exist > > D:\webdesign\gotsvenwebgen> > > Has anyone else experienced this problem? Or has a solution to > mitigate this? This seems to be a bug in webgen, I'm working on it. Will come back to you! -- Thomas From t_leitner at gmx.at Mon Aug 11 03:40:02 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Mon, 11 Aug 2008 09:40:02 +0200 Subject: [webgen-users] Help with Webgen 0.5.1 on Win XP SP2 In-Reply-To: <20080811074721.42c11e43@noeato.local> References: <541de9c4-c10b-4752-88be-5b1dad69c04d@56g2000hsm.googlegroups.com> <20080811074721.42c11e43@noeato.local> Message-ID: <20080811094002.62984f27@noeato.local> Am Mon, 11 Aug 2008 07:47:21 +0200 schrieb Thomas Leitner : > Am Sun, 10 Aug 2008 11:57:00 -0700 (PDT) > schrieb sven.was.here at gmail.com: > > > After upgrading from 4.7 to 0.5.1 I can't render > > > > D:\webdesign\gotsvenwebgen>webgen render > > The system cannot find the path specified. > > Starting webgen... > > Generating tree... > > An error has occurred: The specified parent path does not > > exist > > > > D:\webdesign\gotsvenwebgen> > > > > Has anyone else experienced this problem? Or has a solution to > > mitigate this? > > This seems to be a bug in webgen, I'm working on it. Will come back to > you! Okay, found the bugs and corrected them. The test suite now runs fine again on windows and creating and rendering websites also works as expected. I will release a new webgen version with the bug fixes till Wednesday. Also be aware that there have been many core changes in webgen 0.5.x, so you might look at the following: - adadpt your page/templates files since the format change a little bit (the options on the --- line are specified in an other way) - metainfo.yaml in the website directory is not supported anymore, use metainfo files in your src directory - virtual files/directories are now handled separately from meta information files - configuration file syntax is different as well as the names of the extensions - no plugin/ directory anymore but an ext/, extension development changed very much, see the API docs for more information -- Thomas From t_leitner at gmx.at Wed Aug 13 06:42:17 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Wed, 13 Aug 2008 12:42:17 +0200 Subject: [webgen-users] [ANN] webgen 0.5.2 released Message-ID: <20080813124217.67aa0251@noeato.local> Hey everybody! -------------- webgen 0.5.2 has just been released! If you don't know what webgen is, read the "What's webgen?" section down below. This release brings some updates to the core as well as a browser based GUI, some bug fixes and better Windows support. The most noteable update to the core is better partial site generation support. 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. The new webgen webgui which can be started via `webgen webgui` is a graphical pendant to the command line interface. It features * auto-completion of entered website directory paths * possibility to create and render websites * live view of a rendered website or preview of a to-be-created website The preview mode when creating a website is very useful for choosing the right template and style for a new website, especially for people new to webgen. * Major enhancements: - better partial site regeneration - browser based GUI * Bug fixes: - RF#21507: rdoc documentation link now works again - corrected some Windows specific bugs, test suite runs fine now on Windows - terminal width recognition now works again - global command line option `--log-level` now works as intended Best regards, Thomas What's webgen? -------------- webgen is a tool to generate static websites by combining content with template files. You create one or more template files in which you define the layout of your page and where the content should go. After that you create page files in which you only define the content. You can use a variety of markup languages like Textile or Markdown or Haml to define your content and you can add dynamic parts via ERB or by using webgen tags. This allows the automatic generation of menus, breadcrumb trails and much more! Installation ------------ gem install webgen Usage ----- See http://webgen.rubyforge.org/documentation/ From anthony.tanbakuchi at gmail.com Wed Aug 13 16:20:03 2008 From: anthony.tanbakuchi at gmail.com (Anthony Tanbakuchi) Date: Wed, 13 Aug 2008 13:20:03 -0700 Subject: [webgen-users] Upgrading from 0.4.7 to 0.5.2 Message-ID: <72C5300E-3A29-426B-99A7-6B592D2D521C@gmail.com> 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]] From sven.was.here at gmail.com Wed Aug 13 18:37:40 2008 From: sven.was.here at gmail.com (Sven) Date: Wed, 13 Aug 2008 15:37:40 -0700 (PDT) Subject: [webgen-users] 5.2 problem Message-ID: <371c0f93-b278-431e-adf8-3d1c07d97745@c58g2000hsc.googlegroups.com> Fellow Webgen users, I tried installing with the gem and get the output: An error has occurred: uninitialized constant Console when running the webgen command from CMD. Am I missing something? The system is Windows XP SP2 Thanks, Sven From sven.was.here at gmail.com Wed Aug 13 20:52:55 2008 From: sven.was.here at gmail.com (Sven) Date: Wed, 13 Aug 2008 17:52:55 -0700 (PDT) Subject: [webgen-users] 5.2 problem In-Reply-To: <371c0f93-b278-431e-adf8-3d1c07d97745@c58g2000hsc.googlegroups.com> References: <371c0f93-b278-431e-adf8-3d1c07d97745@c58g2000hsc.googlegroups.com> Message-ID: <0bf03680-ac09-4e4a-aa9c-980ed064c779@j22g2000hsf.googlegroups.com> I also get the same error on my Ubuntu 8.04 server which was a fresh install. From t_leitner at gmx.at Thu Aug 14 03:40:11 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Thu, 14 Aug 2008 09:40:11 +0200 Subject: [webgen-users] Upgrading from 0.4.7 to 0.5.2 In-Reply-To: <72C5300E-3A29-426B-99A7-6B592D2D521C@gmail.com> References: <72C5300E-3A29-426B-99A7-6B592D2D521C@gmail.com> Message-ID: <20080814094011.119b3380@noeato.local> Hi Anthony, Am Wed, 13 Aug 2008 13:20:03 -0700 schrieb Anthony Tanbakuchi : > 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 From t_leitner at gmx.at Thu Aug 14 03:42:41 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Thu, 14 Aug 2008 09:42:41 +0200 Subject: [webgen-users] 5.2 problem In-Reply-To: <0bf03680-ac09-4e4a-aa9c-980ed064c779@j22g2000hsf.googlegroups.com> References: <371c0f93-b278-431e-adf8-3d1c07d97745@c58g2000hsc.googlegroups.com> <0bf03680-ac09-4e4a-aa9c-980ed064c779@j22g2000hsf.googlegroups.com> Message-ID: <20080814094241.10f651ca@noeato.local> Am Wed, 13 Aug 2008 17:52:55 -0700 (PDT) schrieb Sven : > I also get the same error on my Ubuntu 8.04 server which was a fresh > install. I don't get such an error. Do you have the latest Rubygems version? -- Thomas From sven.was.here at gmail.com Thu Aug 14 06:30:19 2008 From: sven.was.here at gmail.com (Sven) Date: Thu, 14 Aug 2008 03:30:19 -0700 (PDT) Subject: [webgen-users] 5.2 problem In-Reply-To: <20080814094241.10f651ca@noeato.local> References: <371c0f93-b278-431e-adf8-3d1c07d97745@c58g2000hsc.googlegroups.com> <0bf03680-ac09-4e4a-aa9c-980ed064c779@j22g2000hsf.googlegroups.com> <20080814094241.10f651ca@noeato.local> Message-ID: <22633a56-c53e-483b-80dd-c4e4275a2ceb@l64g2000hse.googlegroups.com> Thomas, Here is a list of the current gems that I have installed. D:\>gem list --local *** LOCAL GEMS *** builder (2.1.2) cmdparse (2.0.2) coderay (0.7.4.215) dcov (0.2.2) facets (2.4.2, 2.4.1) fxri (0.3.6) fxruby (1.6.16, 1.6.12) haml (2.0.2) hoe (1.7.0) hpricot (0.6) launchy (0.3.2) log4r (1.0.5) maruku (0.5.9) rack (0.3.0) rake (0.8.1, 0.7.3) ramaze (2008.06) rcov (0.8.1.2.0) rdoc (2.1.0) RedCloth (4.0.1, 3.0.4) rmagick (2.3.0) rubyforge (1.0.0) rubygems-update (1.1.1) sources (0.0.1) syntax (1.0.0) webgen (0.5.2) win32-api (1.0.4) win32-clipboard (0.4.3) win32-dir (0.3.2) win32-eventlog (0.4.6) win32-file (0.5.4) win32-file-stat (1.2.7) win32-process (0.5.3) win32-sapi (0.1.4) win32-sound (0.4.1) windows-api (0.2.0) windows-pr (0.7.2) From sven.was.here at gmail.com Thu Aug 14 06:50:59 2008 From: sven.was.here at gmail.com (Sven) Date: Thu, 14 Aug 2008 03:50:59 -0700 (PDT) Subject: [webgen-users] 5.2 problem In-Reply-To: <22633a56-c53e-483b-80dd-c4e4275a2ceb@l64g2000hse.googlegroups.com> References: <371c0f93-b278-431e-adf8-3d1c07d97745@c58g2000hsc.googlegroups.com> <0bf03680-ac09-4e4a-aa9c-980ed064c779@j22g2000hsf.googlegroups.com> <20080814094241.10f651ca@noeato.local> <22633a56-c53e-483b-80dd-c4e4275a2ceb@l64g2000hse.googlegroups.com> Message-ID: <5aa4f129-8598-4ac9-96c7-0412e06c51b3@l64g2000hse.googlegroups.com> The gem version installed is 1.1.1 Sorry I forgot that in the previous post!! I am just not a morning person today. From m.franzl at aon.at Thu Aug 14 06:56:02 2008 From: m.franzl at aon.at (Michael Franzl) Date: Thu, 14 Aug 2008 12:56:02 +0200 (CEST) Subject: [webgen-users] some webgen 0.5.x questions Message-ID: <21031376.3608.1218711362685.JavaMail.root@WARSBL214.highway.telekom.at> An HTML attachment was scrubbed... URL: From t_leitner at gmx.at Thu Aug 14 08:27:23 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Thu, 14 Aug 2008 14:27:23 +0200 Subject: [webgen-users] 5.2 problem In-Reply-To: <22633a56-c53e-483b-80dd-c4e4275a2ceb@l64g2000hse.googlegroups.com> References: <371c0f93-b278-431e-adf8-3d1c07d97745@c58g2000hsc.googlegroups.com> <0bf03680-ac09-4e4a-aa9c-980ed064c779@j22g2000hsf.googlegroups.com> <20080814094241.10f651ca@noeato.local> <22633a56-c53e-483b-80dd-c4e4275a2ceb@l64g2000hse.googlegroups.com> Message-ID: <20080814142723.46f156d2@noeato.local> Am Thu, 14 Aug 2008 03:30:19 -0700 (PDT) schrieb Sven : > facets (2.4.2, 2.4.1) This is the culprit :) There has been a change between facets 2.4.1 and 2.4.2 which make webgen non-functional. For the time being, I recommend uninstalling facets 2.4.2 and going with 2.4.1. I will look at this. -- Thomas From t_leitner at gmx.at Thu Aug 14 08:52:44 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Thu, 14 Aug 2008 14:52:44 +0200 Subject: [webgen-users] some webgen 0.5.x questions In-Reply-To: <21031376.3608.1218711362685.JavaMail.root@WARSBL214.highway.telekom.at> References: <21031376.3608.1218711362685.JavaMail.root@WARSBL214.highway.telekom.at> Message-ID: <20080814145244.0cb62f31@noeato.local> Hi Michael, Am Thu, 14 Aug 2008 12:56:02 +0200 (CEST) schrieb Michael Franzl : > Hi all,I'm currently in the process of trying to understand webgen > 0.5.2, because it seems to be a great tool. But I noticed that > studying the current 0.5.x documentation is not enough to make fully > use of it, or understand it fully. So I went over to the webgen-user > mailing list to learn more. I tried some hints from the mailing list, > but most of them seem to be not funcional because of the new 0.5.x > rewrite. Hence the following questions (some of which were asked > already, bur for older versions): > 1) Is/Are there still metainfo.yaml > file(s) and is there a documentation for them? No, there does not exist a single metainfo.yaml anymore. webgen now supports files in the source directory with the extension metainfo or which are called metainfo. These files replace part of the metainfo.yaml file. The other part of metainfo.yaml, creation of virtual files/directories, is now handled by files in the source directory with the extension virtual or which are called virtual. Since both file types are handled by a source handler, you just need to look at the source handler documentation for these file types to get the needed information: http://webgen.rubyforge.org/documentation/sourcehandler/metainfo.html http://webgen.rubyforge.org/documentation/sourcehandler/virtual.html > 2) Is an index.page > file in a subdirectory imperative? Or is it possible to point to > another file in that subdirectory instead? You can point to any file since the file that is used as directory index file is specified by the meta information key `index_path`. Just create a metainfo file and set the meta information `index_path` on the directory. For example, when having the following structure: /hallo/ /hallo/index.page /hallo/other.page you create a file `metainfo` in the root directory with the following contents: hallo/: index_path: other.html Since the value of `index_path` needs to be an (l)cn, you need to use `other.html` instead of `other.page`. > 3) The index.page file of > each subdirectory is shown extra in the submenu. > Example:src/index.pagesrc/dir1/index.pagesrc/dir1/chapter1.pagesrc/dir1/chapter2.pageThe > menu becomes:* dir1 |-chapter1 |-chapter2 |-indexfile of dir1* main > indexfile The entry 'indexfile of dir1' would be not neccessary, > since clicking on 'dir1' links you directly to it. Thus: Is it > possible to switch this off? Yes, certainly. Just set the meta information `in_menu` to false for the index pages. Then the index pages themselves won't be shown in the menu. > 4) How can I change the menu entry > 'dir1' to an arbitrary string? Or, if there exists an index.page of > dir1: How can the menu entry 'dir1' assume the title stored in its > index.page file? You have two possibilities: if you want localized directory names, you need to set the meta information `routed_title` on the index files. Otherwise, you need to set the `title` meta information on the directory itself via a metainfo file. > 5) I would like to set different id's for each > of my first-level menu entries, so that all subordinated levels have > that id too. How can this be selected in the default.template file > via ERB? I don't know what you mean. Which id's should be set and for which HTML element should they be set. And: id's have to be unique in a single HTML file! > 6) Is it better to use this mailing list or use the webgen > forums on rubyforge?I would love to user webgen for a static site > that should be finished in about one month...Thanks,Michael You can use the mailing list or the forums, I watch both. Use what is easier for you. This malinig list is mirrored to the google group with the same name. -- Thomas From t_leitner at gmx.at Thu Aug 14 08:57:02 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Thu, 14 Aug 2008 14:57:02 +0200 Subject: [webgen-users] webgen 0.5.2 problem with facets > 2.4.1 - fixed in repo Message-ID: <20080814145702.39e1b241@noeato.local> Hi everybody, since there was a change in facets 2.4.2 that prevents webgen from working, you need to use facets 2.4.1 with webgen 0.5.[0,1,2] for the time being. This issue is already fixed in the repo version of webgen. Upcoming versions of webgen will need facets 2.4.3 or later. -- Thomas From t_leitner at gmx.at Thu Aug 14 09:06:30 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Thu, 14 Aug 2008 15:06:30 +0200 Subject: [webgen-users] Configuration file helpers Message-ID: <20080814150630.46d0319e@noeato.local> Hi everybody, the repo version now features configuration file helpers for setting the default meta info and the used patterns for source handlers. Are there any other configuration options that you feel are complicated to set? If so, please reply to this mail sothat I can add a helper for it! Thanks, Thomas From m.franzl at aon.at Thu Aug 14 17:18:22 2008 From: m.franzl at aon.at (Michael Franzl) Date: Thu, 14 Aug 2008 23:18:22 +0200 Subject: [webgen-users] some webgen 0.5.x questions In-Reply-To: <20080814145244.0cb62f31@noeato.local> References: <21031376.3608.1218711362685.JavaMail.root@WARSBL214.highway.telekom.at> <20080814145244.0cb62f31@noeato.local> Message-ID: <48A4A11E.5080303@aon.at> First, I'm sorry for the html format of my last mail. I used a webmail client, which is really a bad idea for mailing lists. But now I'm in front of my text-only Mozilla ;-) Your hints for my questions 2), 3) and 4) worked, thanks! >> I would like to set different id's for each >> of my first-level menu entries, so that all subordinated >> levels have that id too. How can this be selected in >> the default.template file via ERB? > I don't know what you mean. Which id's should be set and for which HTML > element should they be set. And: id's have to be unique in a single > HTML file! Using 'id' for tags is legitimate, since there is only one in a html file. Ideally, I want to use only one template file (DRY principle). To use different color themes for each of my first-level menu entries ("Series" in the example below) via CSS, I would have to dynamically select an id in the template file. Example: * Frontpage * SeriesA |- Book1 |- Book2 | |- Chapter1 | |- Chapter2 * SeriesB |- Book1 |- Book2 | |- Chapter1 | |- Chapter2 etc. Everything under SeriesA should have , and everything under SeriesB should have . Is an ERB if-statement the correct approach? If so, where can I find out the objects/methods/variables I would have to evaluate? In an article about webgen I found this code snippet which serves a slightly different purpose, but I think the object hierarchy has changed since: <% if node.node_info[:pagedata].blocks.has_key?( 'extras' ) %> {block: extras} <% end %> Thank you, Michael From t_leitner at gmx.at Fri Aug 15 06:43:13 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Fri, 15 Aug 2008 12:43:13 +0200 Subject: [webgen-users] some webgen 0.5.x questions In-Reply-To: <48A4A11E.5080303@aon.at> References: <21031376.3608.1218711362685.JavaMail.root@WARSBL214.highway.telekom.at> <20080814145244.0cb62f31@noeato.local> <48A4A11E.5080303@aon.at> Message-ID: <20080815124313.5024b32c@noeato.local> Am Thu, 14 Aug 2008 23:18:22 +0200 schrieb Michael Franzl : > First, I'm sorry for the html format of my last mail. I used a > webmail client, which is really a bad idea for mailing lists. But now > I'm in front of my text-only Mozilla ;-) No problem! :) > Your hints for my questions 2), 3) and 4) worked, thanks! Good to hear. > Using 'id' for tags is legitimate, since there is only one > in a html file. Ideally, I want to use only one template file > (DRY principle). To use different color themes for each of my > first-level menu entries ("Series" in the example below) via CSS, I > would have to dynamically select an id in the template file. > Example: > > * Frontpage > * SeriesA > |- Book1 > |- Book2 > | |- Chapter1 > | |- Chapter2 > * SeriesB > |- Book1 > |- Book2 > | |- Chapter1 > | |- Chapter2 > etc. > > Everything under SeriesA should have , and everything > under SeriesB should have . Is an ERB if-statement the > correct approach? If so, where can I find out the > objects/methods/variables I would have to evaluate? In an article > about webgen I found this code snippet which serves a slightly > different purpose, but I think the object hierarchy has changed since: > > <% if node.node_info[:pagedata].blocks.has_key?( 'extras' ) %> > {block: extras} > <% end %> Thanks for the clarifications! There are various ways to accomplish this. One would be to set a meta information key to the needed value and use that value to set the body id, like this: The /metainfo file: /SeriesA/**/*.page: body_id: a /SeriesB/**/*.page: body_id: b The /default.template file: > ... You can find information on the valid objects useable by ERB on its documentation page http://webgen.rubyforge.org/documentation/contentprocessor/erb.html -- Thomas From sven.was.here at gmail.com Fri Aug 15 07:36:01 2008 From: sven.was.here at gmail.com (Sven) Date: Fri, 15 Aug 2008 04:36:01 -0700 (PDT) Subject: [webgen-users] 5.2 problem In-Reply-To: <20080814142723.46f156d2@noeato.local> References: <371c0f93-b278-431e-adf8-3d1c07d97745@c58g2000hsc.googlegroups.com> <0bf03680-ac09-4e4a-aa9c-980ed064c779@j22g2000hsf.googlegroups.com> <20080814094241.10f651ca@noeato.local> <22633a56-c53e-483b-80dd-c4e4275a2ceb@l64g2000hse.googlegroups.com> <20080814142723.46f156d2@noeato.local> Message-ID: <448c2f41-5f40-467f-94a5-1bc550fd892d@s50g2000hsb.googlegroups.com> Thanks so much for a fast fix on the problem!!!! From sven.was.here at gmail.com Fri Aug 15 18:02:59 2008 From: sven.was.here at gmail.com (Sven) Date: Fri, 15 Aug 2008 15:02:59 -0700 (PDT) Subject: [webgen-users] sitemap Message-ID: Thomas, Could you please add the sitemap feature to webgen 5.x please. Also do you have any plans to allow webgen to create a map.xml file for the spiders to find? If so that would be great. Thanks, Sven From t_leitner at gmx.at Sat Aug 16 03:48:12 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Sat, 16 Aug 2008 09:48:12 +0200 Subject: [webgen-users] sitemap In-Reply-To: References: Message-ID: <20080816094812.34ef6486@noeato.local> Am Fri, 15 Aug 2008 15:02:59 -0700 (PDT) schrieb Sven : > Could you please add the sitemap feature to webgen 5.x please. Also > do you have any plans to allow webgen to create a map.xml file for the > spiders to find? If so that would be great. Okay, will port the sitemap tag for the next release! Which kind of map.xml file do you think of? Something like the sitemap.xml specified on http://sitemaps.org? I was already thinking of creating a handler for such a file since this seems to be in widespread use (by Google, for example). -- Thomas From ml at hoshitani.com Sat Aug 16 08:06:28 2008 From: ml at hoshitani.com (Kensuke Hoshitani) Date: Sat, 16 Aug 2008 21:06:28 +0900 Subject: [webgen-users] Partial site generation Message-ID: <20080816193446.5CDC.ML@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'. test |- src |- index.page |- test1.page |- test2.page |- metainfo I specified the all meta information of the pages in 'metainfo' file. metainfo: --- name:paths index.page: title: Index page in_menu: true routed_title: New Website test1.page: title: Test Page 1 in_menu: true test2.page: title: Test Page 2 in_menu: true In the files, 'index.page', 'test1.page', and 'test2.page', I only wrote their content without the meta information as below. test1.page: ## Page 1 This is Page 1. 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? -- Kensuke Hoshitani From sven.was.here at gmail.com Sat Aug 16 10:42:13 2008 From: sven.was.here at gmail.com (Sven) Date: Sat, 16 Aug 2008 07:42:13 -0700 (PDT) Subject: [webgen-users] sitemap In-Reply-To: <20080816094812.34ef6486@noeato.local> References: <20080816094812.34ef6486@noeato.local> Message-ID: <4bc519ab-64fc-42eb-9816-0b0af830353a@a70g2000hsh.googlegroups.com> That is exactly what I was thinking!! That is fantastic that you were already thinking about this handler. Thanks for adding the sitemap handler to the next release as well. Sven From sven.was.here at gmail.com Sat Aug 16 11:34:43 2008 From: sven.was.here at gmail.com (Sven) Date: Sat, 16 Aug 2008 08:34:43 -0700 (PDT) Subject: [webgen-users] Menu question Message-ID: <7935118e-eb70-40c2-b59e-3f683cffed1d@t54g2000hsg.googlegroups.com> Thomas, Is there a way to define the menu class when webgen creates a menu that will use what I would define instead of the