From guido.de-melo at uni-ulm.de Sat Aug 8 11:25:58 2009 From: guido.de-melo at uni-ulm.de (Guido de Melo) Date: Sat, 8 Aug 2009 17:25:58 +0200 Subject: [webgen-users] menu problem Message-ID: Hi, I'm currently switching to webgen and I want to use it for my private homepage. However I've got a problem with menus. I've set default_meta_info: Page: in_menu: true in the config.yaml file and have the following structure: / index.page imprint.page # has in_menu:false projects/ index.page students.page This generates a perfect level 1 menu, but when I click on projects I get Index # no imprint, it's correctly hidden Projects Projects Students The HTML for the Projects part looks like this:
  • Projects
  • I don't want this entry twice, did I configure something wrong? What can I do to get rid of it? Best regards Guido From t_leitner at gmx.at Sun Aug 9 09:14:38 2009 From: t_leitner at gmx.at (Thomas Leitner) Date: Sun, 9 Aug 2009 15:14:38 +0200 Subject: [webgen-users] menu problem In-Reply-To: References: Message-ID: <20090809151438.4e68ea12@77.118.67.2.wireless.dyn.drei.com> Hi, > This generates a perfect level 1 menu, but when I click on projects I > get Index > # no imprint, it's correctly hidden > Projects > Projects > Students > > The HTML for the Projects part looks like this: > >
  • Projects > >
  • You need to set `in_menu: false` on `projects/index.page`. When you click on 'Projects', webgen automatically shows the index file (index.page) for the directory and if you don't want the index file to additionally appear, you have to remove it from the menu. Best regards, Thomas From guido.de-melo at uni-ulm.de Sun Aug 9 16:52:27 2009 From: guido.de-melo at uni-ulm.de (Guido de Melo) Date: Sun, 9 Aug 2009 22:52:27 +0200 Subject: [webgen-users] menu problem In-Reply-To: <20090809151438.4e68ea12@77.118.67.2.wireless.dyn.drei.com> References: <20090809151438.4e68ea12@77.118.67.2.wireless.dyn.drei.com> Message-ID: Hi, this is just what I wanted. On Sun, Aug 9, 2009 at 15:14, Thomas Leitner wrote: > You need to set `in_menu: false` on `projects/index.page`. When you > click on 'Projects', webgen automatically shows the index file > (index.page) for the directory and if you don't want the index file to > additionally appear, you have to remove it from the menu. Maybe this could be added to one of the examples. Best regards and thank you very much for this great tool! Guido -- Raum O27/3215, Institut f?r Medieninformatik, Universit?t Ulm, 89069 Ulm Tel. +49 731 50 15055, Fax +49 731 50 31302 http://guido.demelo.de/ From damien.pollet at gmail.com Tue Aug 11 13:44:50 2009 From: damien.pollet at gmail.com (Damien Pollet) Date: Tue, 11 Aug 2009 19:44:50 +0200 Subject: [webgen-users] maruku dependancy Message-ID: <34b4844b0908111044i4e5c9725j8b4f0696a3a5efe1@mail.gmail.com> Hi all, I noticed that maruku 0.5.9 is still hardcoded as a dependancy of webgen 0.5.10, but isn't available via gem anymore. There are a couple github clones (remi-maruku and bai-maruku) but since they are named differently, they do not fulfill the rubygem dependency. So I guess that could block people from installing webgen with maruku, unless the dependancy is updated to >= 0.6.0? -- Damien Pollet type less, do more [ | ] http://people.untyped.org/damien.pollet From saloution at googlemail.com Fri Aug 14 15:39:06 2009 From: saloution at googlemail.com (saLOUt) Date: Fri, 14 Aug 2009 12:39:06 -0700 (PDT) Subject: [webgen-users] Menu with item separators In-Reply-To: References: Message-ID: Maybe you want to take a look on http://www.mantisatemplates.com/template-preview/psd/chocolate/frame.php This menu is also made with
      ... plus some special css styles. On 26 Jun., 13:31, Vasyl Smyrnov wrote: > Hey guys, > > Any ideas how to make a menu look like this: > > foo | bar | baz > > i.e. with a custom item separator. Without patching the sources, of > course? > > Thanks, > Vasyl > _______________________________________________ > webgen-users mailing list > webgen-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/webgen-users From t_leitner at gmx.at Mon Aug 17 01:39:14 2009 From: t_leitner at gmx.at (Thomas Leitner) Date: Mon, 17 Aug 2009 07:39:14 +0200 Subject: [webgen-users] maruku dependancy In-Reply-To: <34b4844b0908111044i4e5c9725j8b4f0696a3a5efe1@mail.gmail.com> References: <34b4844b0908111044i4e5c9725j8b4f0696a3a5efe1@mail.gmail.com> Message-ID: <20090817073914.06382b82@noeato.local> > I noticed that maruku 0.5.9 is still hardcoded as a dependancy of > webgen 0.5.10, but isn't available via gem anymore. There are a couple > github clones (remi-maruku and bai-maruku) but since they are named > differently, they do not fulfill the rubygem dependency. So I guess > that could block people from installing webgen with maruku, unless the > dependancy is updated to >= 0.6.0? Thanks for the information! I did not notice that 0.5.9 wasn't available anymore. Best regards, Thomas From tuomov at iki.fi Wed Aug 19 11:24:54 2009 From: tuomov at iki.fi (Tuomo Valkonen) Date: Wed, 19 Aug 2009 15:24:54 +0000 (UTC) Subject: [webgen-users] Relocatable-tag and index.html Message-ID: Is there any way to stop the relocatable-tag appending index.html to directory references? -- Be an early adopter! Beat the herd! Choose Windows today! From tuomov at iki.fi Wed Aug 19 11:15:38 2009 From: tuomov at iki.fi (Tuomo Valkonen) Date: Wed, 19 Aug 2009 15:15:38 +0000 (UTC) Subject: [webgen-users] 0.5.10 breakage Message-ID: I recently upgraded to 0.5.10 from 0.5.7, and it appears that the feed sorting bug has not been fixed, that I recall mentioning in the past, and explaining how to fix. That is, in the sort on line 64 in feed.rb, a and b should be reversed as either parameters or in the test. Without this fix, Webgen includes the oldest posts in the feed. Also I'm getting the following error now: Error while creating a node from with Webgen::SourceHandler::Virtual: can't convert Webgen::Node into String /usr/lib/ruby/gems/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/virtual.rb:74:in `join' /usr/lib/ruby/gems/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/virtual.rb:74:in `create_directories' ... This file contains \--- !omap - index.html: url: /faq/entries.html -- Stop Gnomes and other pests! Purchase Windows today! http://iki.fi/tuomov/b/archives/2009/07/21/T17_26_09/ From t_leitner at gmx.at Wed Aug 19 13:32:04 2009 From: t_leitner at gmx.at (Thomas Leitner) Date: Wed, 19 Aug 2009 19:32:04 +0200 Subject: [webgen-users] Relocatable-tag and index.html In-Reply-To: References: Message-ID: <20090819193204.6d4fcf2f@noeato.local> > Is there any way to stop the relocatable-tag appending > index.html to directory references? Yes, just add this to your config.yaml: default_meta_info: Directory: index_path: ~ This tells webgen that no directory has an index path and therefore all paths to directories generated by webgen won't have the index.html appended. Also see: http://webgen.rubyforge.org/documentation/manual.html#website-configfile http://webgen.rubyforge.org/documentation/sourcehandler/directory.html -- Thomas From tnewton at gmail.com Fri Aug 21 12:17:04 2009 From: tnewton at gmail.com (Thomas Newton) Date: Fri, 21 Aug 2009 09:17:04 -0700 (PDT) Subject: [webgen-users] Problem with Sub bullets and Maruku Message-ID: Hi, I seem to have a problem with sub-bullets working correctly with webgen and Maruku. If I do the following example here: http://daringfireball.net/projects/markdown/dingus * Bullet * Sub Bullet It works great.. However just on the standard index page using the webgen default it does not render the sub-bullet as a nested unordered list. Any advice? From t_leitner at gmx.at Sat Aug 22 09:05:20 2009 From: t_leitner at gmx.at (Thomas Leitner) Date: Sat, 22 Aug 2009 15:05:20 +0200 Subject: [webgen-users] Problem with Sub bullets and Maruku In-Reply-To: References: Message-ID: <20090822150520.6dddaa33@noeato.local> > I seem to have a problem with sub-bullets working correctly with > webgen and Maruku. If I do the following example here: > > http://daringfireball.net/projects/markdown/dingus > > * Bullet > * Sub Bullet > > It works great.. However just on the standard index page using the > webgen default it does not render the sub-bullet as a nested unordered > list. This seems to be a problem with Maruku since it also doesn't work when using only Maruku in irb. Please post a bug report to Maruku! -- Thomas From t_leitner at gmx.at Mon Aug 24 02:30:20 2009 From: t_leitner at gmx.at (Thomas Leitner) Date: Mon, 24 Aug 2009 08:30:20 +0200 Subject: [webgen-users] 0.5.10 breakage In-Reply-To: References: Message-ID: <20090824083020.415cc540@noeato.local> > I recently upgraded to 0.5.10 from 0.5.7, and it appears that > the feed sorting bug has not been fixed, that I recall mentioning > in the past, and explaining how to fix. That is, in the sort on > line 64 in feed.rb, a and b should be reversed as either parameters > or in the test. Without this fix, Webgen includes the oldest posts > in the feed. I have fixed this now, thanks! > Also I'm getting the following error now: > > Error while creating a node from with > Webgen::SourceHandler::Virtual: > can't convert Webgen::Node into String > /usr/lib/ruby/gems/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/virtual.rb:74:in > `join' /usr/lib/ruby/gems/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/virtual.rb:74:in > `create_directories' ... Does this error still occur after you have deleted the cache file and run webgen again? -- Thomas From tuomov at iki.fi Mon Aug 24 14:41:31 2009 From: tuomov at iki.fi (Tuomo Valkonen) Date: Mon, 24 Aug 2009 18:41:31 +0000 (UTC) Subject: [webgen-users] Relocatable-tag and index.html References: <20090819193204.6d4fcf2f@noeato.local> Message-ID: On 2009-08-19, Thomas Leitner wrote: >> Is there any way to stop the relocatable-tag appending >> index.html to directory references? > > Yes, just add this to your config.yaml: > > default_meta_info: > Directory: > index_path: ~ Ah. I actually came across that option myself, and tried setting it to various values, but saw no mention of ~. Maybe it should be documented better? -- Stop Gnomes and other pests! Purchase Windows today! http://iki.fi/tuomov/b/archives/2009/07/21/T17_26_09/ From tuomov at iki.fi Mon Aug 24 14:42:25 2009 From: tuomov at iki.fi (Tuomo Valkonen) Date: Mon, 24 Aug 2009 18:42:25 +0000 (UTC) Subject: [webgen-users] 0.5.10 breakage References: <20090824083020.415cc540@noeato.local> Message-ID: On 2009-08-24, Thomas Leitner wrote: > I have fixed this now, thanks! Good. >> Error while creating a node from with >> Webgen::SourceHandler::Virtual: >> can't convert Webgen::Node into String >> /usr/lib/ruby/gems/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/virtual.rb:74:in >> `join' /usr/lib/ruby/gems/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/virtual.rb:74:in >> `create_directories' ... > > Does this error still occur after you have deleted the cache file and > run webgen again? Yes. -- "[Fashion] is usually a form of ugliness so intolerable that we have to alter it every six months." -- Oscar Wilde From t_leitner at gmx.at Mon Aug 24 16:53:36 2009 From: t_leitner at gmx.at (Thomas Leitner) Date: Mon, 24 Aug 2009 22:53:36 +0200 Subject: [webgen-users] Relocatable-tag and index.html In-Reply-To: References: <20090819193204.6d4fcf2f@noeato.local> Message-ID: <20090824225336.1efbc4a3@noeato.local> Am Mon, 24 Aug 2009 18:41:31 +0000 (UTC) schrieb Tuomo Valkonen : > On 2009-08-19, Thomas Leitner wrote: > >> Is there any way to stop the relocatable-tag appending > >> index.html to directory references? > > > > Yes, just add this to your config.yaml: > > > > default_meta_info: > > Directory: > > index_path: ~ > > Ah. I actually came across that option myself, and > tried setting it to various values, but saw no mention > of ~. Maybe it should be documented better? The tilde is actually part of the YAML syntax and stands for a nil value. You can find some info about the usage of the tilde with the directory handler on http://webgen.rubyforge.org/documentation/sourcehandler/directory.html -- Thomas From matt.helmick at gmail.com Tue Aug 25 11:01:55 2009 From: matt.helmick at gmail.com (webinetics) Date: Tue, 25 Aug 2009 08:01:55 -0700 (PDT) Subject: [webgen-users] How do I change the output extension? Message-ID: Let's say I want to use a ".php" or ".htm" extension for my output files? How do I set that? From tnewton at gmail.com Wed Aug 26 00:01:25 2009 From: tnewton at gmail.com (Thomas Newton) Date: Tue, 25 Aug 2009 21:01:25 -0700 (PDT) Subject: [webgen-users] Problem with Sub bullets and Maruku In-Reply-To: <20090822150520.6dddaa33@noeato.local> References: <20090822150520.6dddaa33@noeato.local> Message-ID: <0a0df156-86f6-40f3-b64d-f78447189013@s31g2000yqs.googlegroups.com> Hi Thomas, Thank you for such a quick reply and testing it in the irb, I thought of that after posting my post :( I did find the answer. It seems Maruku prefers a tab vs 4 spaces. After converting my spaces to a hard tab it worked great! Thanks again! -Thomas Newton On Aug 22, 9:05?am, Thomas Leitner wrote: > > I seem to have a problem with sub-bullets working correctly with > > webgen and Maruku. ?If I do the following example here: > > >http://daringfireball.net/projects/markdown/dingus > > > * Bullet > > ? ? * Sub Bullet > > > It works great.. However just on the standard index page using the > > webgen default it does not render the sub-bullet as a nested unordered > > list. > > This seems to be a problem with Maruku since it also doesn't work when > using only Maruku in irb. Please post a bug report to Maruku! > > -- Thomas > _______________________________________________ > webgen-users mailing list > webgen-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/webgen-users From t_leitner at gmx.at Wed Aug 26 06:01:08 2009 From: t_leitner at gmx.at (Thomas Leitner) Date: Wed, 26 Aug 2009 12:01:08 +0200 Subject: [webgen-users] How do I change the output extension? In-Reply-To: References: Message-ID: <20090826120108.33757b6f@noeato.local> > Let's say I want to use a ".php" or ".htm" extension for my output > files? How do I set that? See http://webgen.rubyforge.org/documentation/faq.html#_change_the_output_name_style and http://webgen.rubyforge.org/documentation/reference_metainfo.html#output_path_style -- Thomas From tuomov at iki.fi Wed Aug 26 12:59:47 2009 From: tuomov at iki.fi (Tuomo Valkonen) Date: Wed, 26 Aug 2009 16:59:47 +0000 (UTC) Subject: [webgen-users] Relocatable-tag and index.html References: <20090819193204.6d4fcf2f@noeato.local> Message-ID: On 2009-08-24, Tuomo Valkonen wrote: > On 2009-08-19, Thomas Leitner wrote: >>> Is there any way to stop the relocatable-tag appending >>> index.html to directory references? >> >> Yes, just add this to your config.yaml: >> >> default_meta_info: >> Directory: >> index_path: ~ > > Ah. I actually came across that option myself, and > tried setting it to various values, but saw no mention > of ~. Maybe it should be documented better? Actually, this doesn't do everything that I wanted. feed.rb links are still to index.html, as are any links I've tried generating with my 'inline' hacks. But if I try generate links to the directories themselves, the titles will be wrong now. I want the index.html to disappear entirely from any generated links, but without having to see extra trouble to getting the titles etc. right. So basically the index.html should be filtered at the last stage of link-generation. -- "[Fashion] is usually a form of ugliness so intolerable that we have to alter it every six months." -- Oscar Wilde From matt.helmick at gmail.com Wed Aug 26 13:07:28 2009 From: matt.helmick at gmail.com (webinetics) Date: Wed, 26 Aug 2009 10:07:28 -0700 (PDT) Subject: [webgen-users] How do I change the output extension? In-Reply-To: <20090826120108.33757b6f@noeato.local> References: <20090826120108.33757b6f@noeato.local> Message-ID: Perhaps I'm being obtuse, but I'm not understanding how to use this from the documentation. Perhaps a code sample would help? Anyone? On Aug 26, 3:01?am, Thomas Leitner wrote: > > Let's say I want to use a ".php" or ".htm" extension for my output > > files? How do I set that? > > Seehttp://webgen.rubyforge.org/documentation/faq.html#_change_the_output... > andhttp://webgen.rubyforge.org/documentation/reference_metainfo.html#out... > > -- Thomas > _______________________________________________ > webgen-users mailing list > webgen-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/webgen-users From t_leitner at gmx.at Thu Aug 27 03:12:24 2009 From: t_leitner at gmx.at (Thomas Leitner) Date: Thu, 27 Aug 2009 09:12:24 +0200 Subject: [webgen-users] How do I change the output extension? In-Reply-To: References: <20090826120108.33757b6f@noeato.local> Message-ID: <20090827091224.6cbdde86@noeato.mat.univie.ac.at> Am Wed, 26 Aug 2009 10:07:28 -0700 (PDT) schrieb webinetics : > Perhaps I'm being obtuse, but I'm not understanding how to use this > from the documentation. Perhaps a code sample would help? Anyone? Three use cases: 1. You want to change the extension from .html to .php for all *.page files. Then you would add the following to your config.yaml file: default_meta_info: Page: output_path_style: [:parent, :basename, [., :lang], .php] 2. You want to change the extension for only some page files. This can be done using a meta information file. For example, you could add a page.metainfo file at the root of your source directory to change the extension for all *.page files in the interactive/ subdirectory: --- name:paths /interactive/*.page: output_path_style: [:parent, :basename, [., :lang], .php] 3. You want to change the extension for only one page file. This can be done in the page file itself: --- title: Some php file output_path_style: [:parent, :basename, [., :lang], .php] --- Some php content That's it! -- Thomas From matt.helmick at gmail.com Thu Aug 27 12:01:09 2009 From: matt.helmick at gmail.com (webinetics) Date: Thu, 27 Aug 2009 09:01:09 -0700 (PDT) Subject: [webgen-users] How do I change the output extension? In-Reply-To: <20090827091224.6cbdde86@noeato.mat.univie.ac.at> References: <20090826120108.33757b6f@noeato.local> <20090827091224.6cbdde86@noeato.mat.univie.ac.at> Message-ID: Thanks Thomas! That truly looks like a flexible solution. I'll take it for a spin. On Aug 27, 12:12?am, Thomas Leitner wrote: > Am Wed, 26 Aug 2009 10:07:28 -0700 (PDT) > schrieb webinetics : > > > Perhaps I'm being obtuse, but I'm not understanding how to use this > > from the documentation. Perhaps a code sample would help? Anyone? > > Three use cases: > > 1. You want to change the extension from .html to .php for all *.page > files. Then you would add the following to your config.yaml file: > > default_meta_info: > ? Page: > ? ? output_path_style: [:parent, :basename, [., :lang], .php] > > 2. You want to change the extension for only some page files. This can > be done using a meta information file. For example, you could add a > page.metainfo file at the root of your source directory to change the > extension for all *.page files in the interactive/ subdirectory: > > --- name:paths > /interactive/*.page: > ? output_path_style: [:parent, :basename, [., :lang], .php] > > 3. You want to change the extension for only one page file. This can be > done in the page file itself: > > --- > title: Some php file > output_path_style: [:parent, :basename, [., :lang], .php] > --- > Some php content > > That's it! > > -- Thomas > _______________________________________________ > webgen-users mailing list > webgen-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/webgen-users From tuomov at iki.fi Thu Aug 27 14:51:44 2009 From: tuomov at iki.fi (Tuomo Valkonen) Date: Thu, 27 Aug 2009 18:51:44 +0000 (UTC) Subject: [webgen-users] Relocatable-tag and index.html References: <20090819193204.6d4fcf2f@noeato.local> Message-ID: On 2009-08-26, Tuomo Valkonen wrote: > Actually, this doesn't do everything that I wanted. > feed.rb links are still to index.html, as are any > links I've tried generating with my 'inline' hacks. > But if I try generate links to the directories themselves, > the titles will be wrong now. > > I want the index.html to disappear entirely from any > generated links, but without having to see extra > trouble to getting the titles etc. right. So basically > the index.html should be filtered at the last stage > of link-generation. The following hacks seem to do what I want. Any chances of getting them in, configurable? node.rb: Add to the Node class def link_path index_path = @parent.meta_info['index_path'] (@parent.path + index_path == @path ? @parent.path : @path) end In route_to, use link_path instead of path in other_url = if other.kind_of?(Node) self.class.url(other.routing_node(@lang).link_path) passive_sources/templates/rss_feed.template and atom_feed.template: Likewise, change references to entry.path to entry.link_path -- Off the dope since 2009; http://iki.fi/tuomov/b/archives/2009/07/21/T17_26_09/ From tuomov at iki.fi Mon Aug 31 12:38:43 2009 From: tuomov at iki.fi (Tuomo Valkonen) Date: Mon, 31 Aug 2009 16:38:43 +0000 (UTC) Subject: [webgen-users] 0.5.10 breakage References: <20090824083020.415cc540@noeato.local> Message-ID: On 2009-08-24, Tuomo Valkonen wrote: >>> Error while creating a node from with >>> Webgen::SourceHandler::Virtual: >>> can't convert Webgen::Node into String >>> /usr/lib/ruby/gems/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/virtual.rb:74:in >>> `join' /usr/lib/ruby/gems/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/virtual.rb:74:in >>> `create_directories' ... >> >> Does this error still occur after you have deleted the cache file and >> run webgen again? > > Yes. Adding a 'return' statement in the iterated function or whatever (I don't know the ruby terminology or ruby much) seems to fix this. It seems that returning parent (Node) from the iterated function confuses iterator. def create_directories(dirname, path) parent = website.tree.root dirname.sub(/^\//, '').split('/').inject('/') do |parent_path, dir| pp = File.join(parent_path, dir) parent = create_directory(pp, path) return # <---- THIS end parent end -- Be an early adopter! Beat the herd! Choose Windows today!