From gaspa at yattaweb.it Mon Apr 2 03:49:26 2007 From: gaspa at yattaweb.it (Andrea Gasparini) Date: Mon, 2 Apr 2007 09:49:26 +0200 Subject: [webgen-users] gallery issue... In-Reply-To: <1133D88E-A1E6-4CE8-9096-9AA9C08C7E09@gmx.at> References: <200703301813.59609.gaspa@yattaweb.it> <1133D88E-A1E6-4CE8-9096-9AA9C08C7E09@gmx.at> Message-ID: <200704020949.27190.gaspa@yattaweb.it> Thomas Leitner spiffera, alle 21:12, venerd? 30 marzo 2007 circa: > My teachers always said: there are no dumb question, only dumb > answers :) So, just ask anything and I will try to answer it! wow, i'll surely said to MY teachers.. :) Anyway, it was this: > webgen use gallery_style i thought that it uses template from /usr/... and I didn't guess the right behavior. :) so, now it works, thanks a lot. you'll hear me soon :D bye! -- -gaspa- ----------------------------------------------- --------- Powered by Debian GNU/Linux --------- -Il lunedi'dell'arrampicatore: www.lunedi.org - From mailing_lists at railsnewbie.com Tue Apr 3 02:26:58 2007 From: mailing_lists at railsnewbie.com (Scott Taylor) Date: Tue, 3 Apr 2007 02:26:58 -0400 Subject: [webgen-users] metainfo.yaml Message-ID: Can there be multiple metainfo.yaml files in different directories? I can't find any indication in the docs, and I'm upgrading an old project based on webgen 0.3.8 which has this sort of setup. By the way, to parse my own inline html with textile I was able to write a content converter quite successfully. Scott From t_leitner at gmx.at Fri Apr 6 03:08:43 2007 From: t_leitner at gmx.at (Thomas Leitner) Date: Fri, 6 Apr 2007 09:08:43 +0200 Subject: [webgen-users] metainfo.yaml In-Reply-To: References: Message-ID: > Can there be multiple metainfo.yaml files in different directories? > I can't find any indication in the docs, and I'm upgrading an old > project based on webgen 0.3.8 which has this sort of setup. This changed with webgen 0.4.x: now there is only one meta information backing file directly under the website directory called metainfo.yaml. Is it a problem that there is only one central one now and if yes, what were the advantages you had with multiple metainfo files? > By the way, to parse my own inline html with textile I was able to > write a content converter quite successfully. Very cool! Bye, Thomas From thewoolleyman at gmail.com Tue Apr 10 01:39:17 2007 From: thewoolleyman at gmail.com (Chad Woolley) Date: Mon, 9 Apr 2007 22:39:17 -0700 Subject: [webgen-users] textile formatting questions Message-ID: Hi, I have a couple of webgen textile formatting questions. Please feel free to refer me to a textile mailing list if there is one that is more appropriate than here. First, how can I insert three dashes (---) in a or
 block?
 I want to include a YAML file example, and the yaml document
separator is three dashes, but this conflicts with the separator in
webgen.

Example:

---
# above line causes error
Second, how can I indent a
 block in an ordered list, but still
make it highlight at the first colum of the preformatted text?
Example:

* bulleted instruction to cut and paste file contents
the
file
contents
* the file contents above are not indented with the bullets Thanks, -- Chad From t_leitner at gmx.at Tue Apr 10 02:11:31 2007 From: t_leitner at gmx.at (Thomas Leitner) Date: Tue, 10 Apr 2007 08:11:31 +0200 Subject: [webgen-users] textile formatting questions In-Reply-To: References: Message-ID: <5CDC6027-4B92-453B-9163-0AAEEB0C7701@gmx.at> > First, how can I insert three dashes (---) in a or
 block?
>  I want to include a YAML file example, and the yaml document
> separator is three dashes, but this conflicts with the separator in
> webgen.
>
> Example:
>
> 
> ---
> # above line causes error
> 
Just escape the three dashes with a backslash! Like this:
\---
The same goes for webgen tags: if you want to have {relocatable: bla} on your website, you need to escape the tag: \{relocatable: bla}! > Second, how can I indent a
 block in an ordered list, but still
> make it highlight at the first colum of the preformatted text?
> Example:
>
> * bulleted instruction to cut and paste file contents
> 
> the
> file
> contents
> 
> * the file contents above are not indented with the bullets I tried the following in IRB and it seems to work: * bulleted instruction to cut and paste file contents
the
file
contents
* the file contents above are not indented with the bullets So, just indent the
 line so that it starts with the text of the  
first list item.


Bye,
   Thomas

From thewoolleyman at gmail.com  Tue Apr 10 09:04:11 2007
From: thewoolleyman at gmail.com (Chad Woolley)
Date: Tue, 10 Apr 2007 06:04:11 -0700
Subject: [webgen-users] textile formatting questions
In-Reply-To: <5CDC6027-4B92-453B-9163-0AAEEB0C7701@gmx.at>
References: 
	<5CDC6027-4B92-453B-9163-0AAEEB0C7701@gmx.at>
Message-ID: 

Perfect!  Thanks for the ultra-fast response.  Webgen rocks!

-- Chad

On 4/9/07, Thomas Leitner  wrote:
> > First, how can I insert three dashes (---) in a  or 
 block?
> >  I want to include a YAML file example, and the yaml document
> > separator is three dashes, but this conflicts with the separator in
> > webgen.
> >
> > Example:
> >
> > 
> > ---
> > # above line causes error
> > 
> > Just escape the three dashes with a backslash! Like this: > >
> \---
> 
> > The same goes for webgen tags: if you want to have {relocatable: bla} > on your website, you need to escape the tag: \{relocatable: bla}! > > > Second, how can I indent a
 block in an ordered list, but still
> > make it highlight at the first colum of the preformatted text?
> > Example:
> >
> > * bulleted instruction to cut and paste file contents
> > 
> > the
> > file
> > contents
> > 
> > * the file contents above are not indented with the bullets > > I tried the following in IRB and it seems to work: > > > * bulleted instruction to cut and paste file contents >
> the
> file
> contents
> 
> * the file contents above are not indented with the bullets > > So, just indent the
 line so that it starts with the text of the
> first list item.
>
>
> Bye,
>    Thomas
> _______________________________________________
> webgen-users mailing list
> webgen-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/webgen-users
>

From t_leitner at gmx.at  Thu Apr 12 03:54:16 2007
From: t_leitner at gmx.at (Thomas Leitner)
Date: Thu, 12 Apr 2007 09:54:16 +0200
Subject: [webgen-users] Status 0.4.3/0.5.0
Message-ID: 

Hello everybody,

just a short update on the recent development of the next webgen  
versions:

0.4.3
=====

Following changes are now in the repository:

* The offending website style plain has been removed
* Added meaningful parameters from MenuStyle/Vertical to MenuStyle/ 
Horizontal
* Different EOL encodings in page/template files are now handled  
correctly
* Data directory search order fixed and new log message showing the  
location
* File/TemplateHandler now has its own set of default meta information

I will add the submitted plugins in the next week or so sothat 0.4.3  
can be released around April 20th.


0.5.0
=====

The repository development version now also supports

* File/CopyHandler, File/TemplateHandler and File/PageHandler in the  
first incarnations
* regeneration of the necessary files only (also works for page files!)

To try it out, check out the repository version using svn:

   svn co svn://rubyforge.org/var/svn/webgen/devel

Make sure you have installed erubis, redcloth, cmdparse (both  
available as gems)! Then, to run webgen use the following command:

   cd devel
   ruby -Ilib bin/webgen run

The website templates and styles have not been updated which means  
that the create command does not create a valid website currently!  
However, after creating a test site manually and populating it with  
some test files, you will get output similar to the following:

   erebus:~/work/webgen/devel thomasleitner$ time ruby -rubygems - 
Ilib bin/webgen -d /tmp/testsite/ -V 1 run
   INFO -- Starting rendering of website ...
   INFO -- Using webgen data directory at 
    INFO -- Creating node(s) for file ...
    INFO -- Creating node(s) for file ...
    INFO -- Creating node(s) for file ...
    INFO -- Creating virtual node for path ...
    INFO -- Writing 
    INFO -- Writing 
    INFO -- Nothing to do for: 
    INFO -- Using default template for 
    INFO -- Using default template for 
    INFO -- Writing 
    INFO -- Nothing to do for: 
    INFO -- Rendering of website  finished

   real    0m0.290s
   user    0m0.203s
   sys     0m0.084s

   erebus:~/work/webgen/devel thomasleitner$ time ruby -rubygems - 
Ilib bin/webgen -d /tmp/testsite/ -V 1 run
    INFO -- Starting rendering of website ...
   INFO -- Using webgen data directory at 
    INFO -- Creating node(s) for file ...
    INFO -- Creating node(s) for file ...
    INFO -- Creating node(s) for file ...
    INFO -- Creating virtual node for path ...
    INFO -- Nothing to do for: 
    INFO -- Nothing to do for: 
    INFO -- Nothing to do for: 
    INFO -- Using default template for 
    INFO -- Using default template for 
    INFO -- Nothing to do for: 
    INFO -- Nothing to do for: 
    INFO -- Rendering of website  finished

   real    0m0.269s
   user    0m0.191s
   sys     0m0.070s
   erebus:~/work/webgen/devel thomasleitner$

As you can see, nothing is written the second time because nothing  
has changed! Also notice the overall execution time of around 270ms.  
Estimated 180ms - 220ms are used for loading Rubygems and  
dependencies. webgen 0.4.2 needs about twice the time!

That's all for now!

-- Thomas

From gaspa at yattaweb.it  Mon Apr 16 05:22:52 2007
From: gaspa at yattaweb.it (Andrea Gasparini)
Date: Mon, 16 Apr 2007 11:22:52 +0200
Subject: [webgen-users] id on menu
Message-ID: <200704161122.53030.gaspa@yattaweb.it>

Hi, 
how can i make an "id" attribute that can be assigned to every voice of the 
generated menu?

For example: 
  • HomePage
  • News
  • and so on ... Is there an option of MenuStyle, or should I make a plugin? thanks, bye! -- -gaspa- ----------------------------------------------- --------- Powered by Debian GNU/Linux --------- ------ HomePage: iogaspa.altervista.org ------- -Il lunedi'dell'arrampicatore: www.lunedi.org - From t_leitner at gmx.at Tue Apr 17 04:18:37 2007 From: t_leitner at gmx.at (Thomas Leitner) Date: Tue, 17 Apr 2007 10:18:37 +0200 Subject: [webgen-users] id on menu In-Reply-To: <200704161122.53030.gaspa@yattaweb.it> References: <200704161122.53030.gaspa@yattaweb.it> Message-ID: <5A352BC4-0884-482A-AAB7-A8E5841295BA@gmx.at> > Hi, > how can i make an "id" attribute that can be assigned to every > voice of the > generated menu? > > For example: >
  • > HomePage >
  • >
  • > News >
  • > and so on ... > > Is there an option of MenuStyle, or should I make a plugin? If you really want to set the id attribute on the
  • element, you need to write a plugin. However, using the metainfo linkAttrs you can set an id attribute on the or element (note that this attribute gets set on EVERY link/span tag to this page, so if you have more than one link to the same page on one page, you should consider using class instead of id!): just add the following to the meta information for the page files: linkAttrs: id: YOUR_ID_FOR_THIS_PAGE All key-values pairs in linkAttrs get set on a link to this page! *hth*, Thomas From gaspa at yattaweb.it Wed Apr 18 04:03:35 2007 From: gaspa at yattaweb.it (Andrea Gasparini) Date: Wed, 18 Apr 2007 10:03:35 +0200 Subject: [webgen-users] id on menu In-Reply-To: <5A352BC4-0884-482A-AAB7-A8E5841295BA@gmx.at> References: <200704161122.53030.gaspa@yattaweb.it> <5A352BC4-0884-482A-AAB7-A8E5841295BA@gmx.at> Message-ID: <200704181003.36338.gaspa@yattaweb.it> Thanks Thomas, > linkAttrs: > id: YOUR_ID_FOR_THIS_PAGE > All key-values pairs in linkAttrs get set on a link to this page! i tried this, but i cannot make it work. I resolved changing the file: /usr/lib/ruby/1.8/webgen/plugins/menustyles/default.rb in this way: 67 style = "id=\"#{node['title']}\"" 68 style << " class=\"#{styles.join(' ')}\"" if styles.length > 0 (without knowing anything of ruby...) bye! -- -gaspa- ----------------------------------------------- --------- Powered by Debian GNU/Linux --------- ------ HomePage: iogaspa.altervista.org ------- -Il lunedi'dell'arrampicatore: www.lunedi.org -