From nicolas.delsaux at gmail.com Tue Jan 1 02:13:46 2008 From: nicolas.delsaux at gmail.com (Nicolas Delsaux) Date: Tue, 1 Jan 2008 08:13:46 +0100 Subject: [webgen-users] [ANN] webgen 0.4.7 relased/infos on 0.5.0 In-Reply-To: <20071231153831.74583d62@thomas-leitners-computer.local> References: <20071231153831.74583d62@thomas-leitners-computer.local> Message-ID: <418361960712312313n7b742fc4x6e6577a0beb84b17@mail.gmail.com> On 12/31/07, Thomas Leitner wrote: > # webgen 0.4.7 > > I released webgen 0.4.7 today which features some minor feature > enhancements: > Great news but weren't you talking about adding rss generation in the 0.4.7 version ? > > Happy new year everybody, You too. -- Nicolas Delsaux N'imprimez ce mail que si vous ne savez pas le lire sur l'?cran : les ?lectrons se recyclent bien, le papier, beaucoup moins bien. From t_leitner at gmx.at Tue Jan 1 04:32:05 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Tue, 1 Jan 2008 10:32:05 +0100 Subject: [webgen-users] [ANN] webgen 0.4.7 relased/infos on 0.5.0 In-Reply-To: <418361960712312313n7b742fc4x6e6577a0beb84b17@mail.gmail.com> References: <20071231153831.74583d62@thomas-leitners-computer.local> <418361960712312313n7b742fc4x6e6577a0beb84b17@mail.gmail.com> Message-ID: <20080101103205.479a4887@thomas-leitners-computer.local> On Tue, 1 Jan 2008 08:13:46 +0100 "Nicolas Delsaux" wrote: > On 12/31/07, Thomas Leitner wrote: > > # webgen 0.4.7 > > > > I released webgen 0.4.7 today which features some minor feature > > enhancements: > > > Great news but weren't you talking about adding rss generation in the > 0.4.7 version ? No, I just said that RSS support is already in the *devel* version which will not be a 0.4.x release because it is a complete rewrite of the core webgen code (plugin mangement et al). The devel version will become the 0.5.0 release once the missing plugins are in there. So, if you want RSS support now, you would need to go with the current devel repository as explained in the topic starter. As I already said, the code in the online repository is always in a useable/stable state, it's just lacking some plugins (gallery/sipttra file handler, tag plugins, misc plugins). -- Thomas From thewoolleyman at gmail.com Wed Jan 2 03:01:22 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Wed, 2 Jan 2008 01:01:22 -0700 Subject: [webgen-users] anchor tags? Message-ID: Hi, Is there a cool webgen way to do anchor tags? I've just been doing this: ...but is there a better way? Thanks, Chad From t_leitner at gmx.at Wed Jan 2 10:04:50 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Wed, 2 Jan 2008 16:04:50 +0100 Subject: [webgen-users] anchor tags? In-Reply-To: References: Message-ID: <20080102160450.0607bd6e@noeato.mat.univie.ac.at> On Wed, 2 Jan 2008 01:01:22 -0700 "Chad Woolley" wrote: > Is there a cool webgen way to do anchor tags? I've just been doing > this: > > > > ...but is there a better way? What exactly should such a tag do? Return the relative link to an anchor? Or create anchors in HTML? If you just want a span with an id, I don't think it would be easier to write a webgen plugin to do just that. Sorry, but more info is needed here - or I'm still a little bit to sleepy from new year's eve ;) -- Thomas From thewoolleyman at gmail.com Wed Jan 2 12:46:52 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Wed, 2 Jan 2008 10:46:52 -0700 Subject: [webgen-users] anchor tags? In-Reply-To: <20080102160450.0607bd6e@noeato.mat.univie.ac.at> References: <20080102160450.0607bd6e@noeato.mat.univie.ac.at> Message-ID: Here's an example of what I mean: http://geminstaller.rubyforge.org/code/index.html#rubygems_compatibility I implemented this by hardcoding this in my .page file: I'm just wondering if there's a more concise way... Thanks, Chad On Jan 2, 2008 8:04 AM, Thomas Leitner wrote: > > On Wed, 2 Jan 2008 01:01:22 -0700 > "Chad Woolley" wrote: > > Is there a cool webgen way to do anchor tags? I've just been doing > > this: > > > > > > > > ...but is there a better way? > > What exactly should such a tag do? Return the relative link to an > anchor? Or create anchors in HTML? If you just want a span with an id, > I don't think it would be easier to write a webgen plugin to do just > that. > > Sorry, but more info is needed here - or I'm still a little bit to > sleepy from new year's eve ;) > > -- Thomas > _______________________________________________ > webgen-users mailing list > webgen-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/webgen-users > From t_leitner at gmx.at Thu Jan 3 06:10:29 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Thu, 3 Jan 2008 12:10:29 +0100 Subject: [webgen-users] anchor tags? In-Reply-To: References: <20080102160450.0607bd6e@noeato.mat.univie.ac.at> Message-ID: <20080103121029.7b923423@noeato.mat.univie.ac.at> On Wed, 2 Jan 2008 10:46:52 -0700 "Chad Woolley" wrote: > Here's an example of what I mean: > > http://geminstaller.rubyforge.org/code/index.html#rubygems_compatibility > > I implemented this by hardcoding this in my .page file: > > > > I'm just wondering if there's a more concise way... So you basically want to add an id to a header element sothat you can use anchors to link to them? If you use maruku, you can easily assign ids to a heading: ## This is a level 2 heading :) Maruku automatically creates an id based on the text, something like this_is_a_level_2_heading But you can also specify your on id: ## This is a level 2 heading {#myid} It is this what you mean? Btw. Tag/Relocatable has an option for checking the anchor part of a link. However, this only works for headings h1, h2, ... with an id already set after converting the page file to HTML via a content converter. So if you use maruku as page format, it basically works out of the box. I recommend maruku over textile and maruku will also be the default format used in webgen 0.5.0. As a sidenote: you can also assign ids to a header in textile: h1(#myid). This is a level 1 heading -- Thomas From thewoolleyman at gmail.com Thu Jan 3 10:53:18 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Thu, 3 Jan 2008 08:53:18 -0700 Subject: [webgen-users] anchor tags? In-Reply-To: <20080103121029.7b923423@noeato.mat.univie.ac.at> References: <20080102160450.0607bd6e@noeato.mat.univie.ac.at> <20080103121029.7b923423@noeato.mat.univie.ac.at> Message-ID: On Jan 3, 2008 4:10 AM, Thomas Leitner wrote: > So if you use maruku as page > format, it basically works out of the box. I recommend maruku over > textile and maruku will also be the default format used in webgen 0.5.0. Cool, I'll look at maruku. > As a sidenote: you can also assign ids to a header in textile: > > h1(#myid). This is a level 1 heading Right, but in this case the element I want to anchor to isn't a header. Thanks, Chad From t_leitner at gmx.at Thu Jan 3 12:14:36 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Thu, 3 Jan 2008 18:14:36 +0100 Subject: [webgen-users] anchor tags? In-Reply-To: References: <20080102160450.0607bd6e@noeato.mat.univie.ac.at> <20080103121029.7b923423@noeato.mat.univie.ac.at> Message-ID: <20080103181436.156ba36a@thomas-leitners-computer.local> On Thu, 3 Jan 2008 08:53:18 -0700 "Chad Woolley" wrote: > On Jan 3, 2008 4:10 AM, Thomas Leitner wrote: > > So if you use maruku as page > > format, it basically works out of the box. I recommend maruku over > > textile and maruku will also be the default format used in webgen > > 0.5.0. > > Cool, I'll look at maruku. > > > As a sidenote: you can also assign ids to a header in textile: > > > > h1(#myid). This is a level 1 heading > > Right, but in this case the element I want to anchor to isn't a > header. No problem there since the (#name-of-id) syntax works for all textile markup: p(#testid). this is a para with a %(#id)span% or *(#other)strong* tag. -- Thomas From oao at oao.no Fri Jan 4 03:08:12 2008 From: oao at oao.no (Odd Arild Olsen) Date: Fri, 4 Jan 2008 09:08:12 +0100 Subject: [webgen-users] Menu - labels Message-ID: <200801040908.12342.oao@oao.no> Webgen uses file paths to generate multilevel menues, bread crumbs etc. And limits the character range in paths to a-zA-Z. As the directory names are used verbatim as menu labels this is fairly limitting for non-english pages. Is there a way to map directory names to configurable UTF8 strings for menu labels? oao From t_leitner at gmx.at Fri Jan 4 10:10:17 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Fri, 4 Jan 2008 16:10:17 +0100 Subject: [webgen-users] Menu - labels In-Reply-To: <200801040908.12342.oao@oao.no> References: <200801040908.12342.oao@oao.no> Message-ID: <20080104161017.74932a90@thomas-leitners-computer.local> On Fri, 4 Jan 2008 09:08:12 +0100 Odd Arild Olsen wrote: > Webgen uses file paths to generate multilevel menues, bread crumbs > etc. And limits the character range in paths to a-zA-Z. As the > directory names are used verbatim as menu labels this is fairly > limitting for non-english pages. Is there a way to map directory > names to configurable UTF8 strings for menu labels? You can set arbitrary titles for directories in two ways: * set the meta information `directoryName` in the index files (one index file for each language) of the directory * set the meta information `title` directly on the directory using the meta information backing file (`metainfo.yaml`, needs to be in the website directory). However, you can't set a localized title this way. For example: metainfo.yaml src/ src/index.en.page src/index.de.page src/dir src/dir/index.de.page src/dir/index.en.page src/index.en.page: --- directoryName: Website Root --- src/index.de.page: --- directoryName: Website Wurzel --- metainfo.yaml: dir/: title: Unlocalized Title Hope that helps! -- Thomas From oao at oao.no Fri Jan 4 12:43:58 2008 From: oao at oao.no (Odd Arild Olsen) Date: Fri, 4 Jan 2008 18:43:58 +0100 Subject: [webgen-users] Menu - labels In-Reply-To: <20080104161017.74932a90@thomas-leitners-computer.local> References: <200801040908.12342.oao@oao.no> <20080104161017.74932a90@thomas-leitners-computer.local> Message-ID: <200801041843.58775.oao@oao.no> I tried the directoryName way, works fine. I started with webgen yesterday. Thank you, now I understand the purpose of directoryName too. regards oao On Friday 04 January 2008, Thomas Leitner wrote: > On Fri, 4 Jan 2008 09:08:12 +0100 > > Odd Arild Olsen wrote: > > Webgen uses file paths to generate multilevel menues, bread crumbs > > etc. And limits the character range in paths to a-zA-Z. As the > > directory names are used verbatim as menu labels this is fairly > > limitting for non-english pages. Is there a way to map directory > > names to configurable UTF8 strings for menu labels? > > You can set arbitrary titles for directories in two ways: > > * set the meta information `directoryName` in the index files (one > index file for each language) of the directory > > * set the meta information `title` directly on the directory using the > meta information backing file (`metainfo.yaml`, needs to be in the > website directory). However, you can't set a localized title this way. > > For example: > > metainfo.yaml > src/ > src/index.en.page > src/index.de.page > src/dir > src/dir/index.de.page > src/dir/index.en.page > > src/index.en.page: > > --- > directoryName: Website Root > --- > > src/index.de.page: > > --- > directoryName: Website Wurzel > --- > > metainfo.yaml: > > dir/: > title: Unlocalized Title > > Hope that helps! > > -- Thomas > _______________________________________________ > webgen-users mailing list > webgen-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/webgen-users From nicolas.delsaux at gmail.com Thu Jan 24 06:23:50 2008 From: nicolas.delsaux at gmail.com (Nicolas Delsaux) Date: Thu, 24 Jan 2008 12:23:50 +0100 Subject: [webgen-users] unable to generate doc for 0.5 Message-ID: <418361960801240323n788ede1cpdd1e096ad19680bd@mail.gmail.com> Hi Thimas, This morning, i've tried to generate documentation for webgen head and was sad to see that not the slightest generated content was added to generated files. All the layout is present, but no generated content seems to be added. Additionnaly, there are a bunch of warnings displayed during generation. For that, I've done a ruby bin/webgen -d doc in the webgen directory. -- Nicolas Delsaux N'imprimez ce mail que si vous ne savez pas le lire sur l'?cran : les ?lectrons se recyclent bien, le papier, beaucoup moins bien. From t_leitner at gmx.at Sat Jan 26 03:44:59 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Sat, 26 Jan 2008 09:44:59 +0100 Subject: [webgen-users] unable to generate doc for 0.5 In-Reply-To: <418361960801240323n788ede1cpdd1e096ad19680bd@mail.gmail.com> References: <418361960801240323n788ede1cpdd1e096ad19680bd@mail.gmail.com> Message-ID: <20080126094459.4595f140@thomas-leitners-computer.local> On Thu, 24 Jan 2008 12:23:50 +0100 "Nicolas Delsaux" wrote: > Hi Thimas, > This morning, i've tried to generate documentation for webgen head and > was sad to see that not the slightest generated content was added to > generated files. > All the layout is present, but no generated content seems to be added. > Additionnaly, there are a bunch of warnings displayed during > generation. > > For that, I've done a ruby bin/webgen -d doc in the webgen directory. Try this command: ruby -Ilib -rubygems bin/webgen -d doc This loads rubygems if it is not loaded by default and adds the local webgen lib directory to the library path. Otherwise an older webgen library may be used. Also make sure that you have the following gems installed: maruku, facets, cmdparse. And inkscape is used to convert a SVG graphic into a PNG on the fly - however, it should work without, too. Hmm..., I think I will remove this dependency because it unnecessarily complicates the doc building process. Hope that helps, Thomas