You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Gav...." <br...@brightontown.com.au> on 2005/10/17 16:00:19 UTC
Static site updating of xml files
Well, after messing around with Forrest for a few months I thought I would
actually build a proper site with it, hoping that this will give me more
insight. So I guess I am back to square one with a couple of things.
When generating a static site using 'forrest site' everything works as it
should,
and I will upgrade to Thorstens work ASAP, but in the meantime,
1. Whenever a change is made to an xml file, for instance index.xml, I again
do
a 'forrest site' and upload the updated files. Now, all I have done is
made
minor changes to index.xml and not added/subtracted any links at all,
but
because of timestamping of files etc I find that my editor wants me to
upload all files, inlcuding images, because they have changed. If, in
the
future I make only minor changes to an .xml file, is there a better way
to
update this to produce the static .html equivelant ?
2. This is a minor point but I mention it in case it needs addressing or
ignored
due to upcoming updates. The produced 'tabs.xml' from a 'forrest seed'
contains the following amongst others :-
<tab label="Apache XML Projects" href="http://xml.apache.org">
<tab label="Forrest" href="http://forrest.apache.org"/>
<tab label="Xerces" href="http://xml.apache.org/xerces"/>
</tab>
The two 'second level' tabs pointing to 'Forrest' and 'Xerces' are useless
as far
as I can see as they will never get shown because the main tab they belong
to
takes you to an external site., or have I misunderstood ?
Gav...
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.2/137 - Release Date: 16/10/2005
Re: Static site updating of xml files
Posted by Diwaker Gupta <di...@apache.org>.
On Tuesday 18 October 2005 1:37 am, Ross Gardler wrote:
> I *think* that the forrestbot uses the timestamp of the source file not
> the generated file to detect when a cheange occured.
Atleast the deploy.target that I used uses checksums. I think there's a flag
to turn it on/off.
--
Web/Blog/Gallery: http://floatingsun.net
On Apache: http://people.apache.org/~diwaker
Re: Static site updating of xml files
Posted by Ross Gardler <rg...@apache.org>.
Diwaker Gupta wrote:
> On Monday 17 October 2005 7:00 am, Gav.... wrote:
>
>>1. Whenever a change is made to an xml file, for instance index.xml, I >
>
> again do > a 'forrest site' and upload the updated files. Now, all I have
> done is > made > minor changes to index.xml and not added/subtracted any
> links at all, > but > because of timestamping of files etc I find that my
> editor wants me to > upload all files, inlcuding images, because they have
> changed. If, in > the > future I make only minor changes to an .xml file, is
> there a better > way to > update this to produce the static .html
> equivelant ? >
...
> o forrestbot has a FTP deploy target which supports uploading only files which
> differ in content than the uploaded ones. However, since the "Time published"
> string probably gets rewritten with different values, this is unlikely to
> help much with generated documents. But it should certainly avoid uploading
> the image files.
I *think* that the forrestbot uses the timestamp of the source file not
the generated file to detect when a cheange occured.
Ross
Re: Static site updating of xml files
Posted by Diwaker Gupta <di...@apache.org>.
On Monday 17 October 2005 7:00 am, Gav.... wrote:
> 1. Whenever a change is made to an xml file, for instance index.xml, I >
again do > a 'forrest site' and upload the updated files. Now, all I have
done is > made > minor changes to index.xml and not added/subtracted any
links at all, > but > because of timestamping of files etc I find that my
editor wants me to > upload all files, inlcuding images, because they have
changed. If, in > the > future I make only minor changes to an .xml file, is
there a better > way to > update this to produce the static .html
equivelant ? >
This is a known problem, and while there are some discussions on how to
approach it, there is no good solution yet. Its late here so I'm lazy to dig
around in the archives, but if you google, you'll find:
o there have been some discussions on using Cocoon's checksum support to only
build changed file
o forrestbot has a FTP deploy target which supports uploading only files which
differ in content than the uploaded ones. However, since the "Time published"
string probably gets rewritten with different values, this is unlikely to
help much with generated documents. But it should certainly avoid uploading
the image files.
--
Web/Blog/Gallery: http://floatingsun.net
On Apache: http://people.apache.org/~diwaker
Re: Static site updating of xml files
Posted by "Gav...." <br...@brightontown.com.au>.
----- Original Message -----
From: "Thorsten Scherler" <th...@apache.org>
To: <de...@forrest.apache.org>
Sent: Monday, October 17, 2005 11:02 PM
Subject: Re: Static site updating of xml files
| El lun, 17-10-2005 a las 22:37 +0800, Gav.... escribió:
| > ...
| > Yep, will do in the morning, off for some Zzzzz's now.
|
| jeje, good night, good fight. ;-)
|
| > I guess just removing the second level tabs is what you want, or moving
| > elsewhere ?
|
| Hmm, removing not, to show of second level tabbing (but on the other
| hand we have that, right?).
No, that is the problem, if the first level tab points to an external site
then
by clicking on it you are leaving the current site and so the second level
tabs will never show.
|
| Whatever you think is best. ;-)
What I think is we have 2 options.
1. Remove the redundant second level tabs to avoid confusion.
2. Create a page and point the first level tab to it, therefore
second level tabs will show, if clicked on either of these
then the user leaves the site again. I'm really not sure that
use of second level tabs is meant for external sites but someone
put them there for some reason I guess.
?
Gav...
|
| salu2
|
| >
| > Gav... ( write out 10 times : 'build test', 'build test','build
test','build
| > test','build test','build test','build test','build test','build
| > test','build test'. )
| >
| >
| >
| --
| thorsten
|
| "Together we stand, divided we fall!"
| Hey you (Pink Floyd)
|
|
| --
| No virus found in this incoming message.
| Checked by AVG Anti-Virus.
| Version: 7.0.344 / Virus Database: 267.12.2/137 - Release Date: 16/10/2005
|
|
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.2/139 - Release Date: 17/10/2005
Re: Static site updating of xml files
Posted by Thorsten Scherler <th...@apache.org>.
El lun, 17-10-2005 a las 22:37 +0800, Gav.... escribió:
> ...
> Yep, will do in the morning, off for some Zzzzz's now.
jeje, good night, good fight. ;-)
> I guess just removing the second level tabs is what you want, or moving
> elsewhere ?
Hmm, removing not, to show of second level tabbing (but on the other
hand we have that, right?).
Whatever you think is best. ;-)
salu2
>
> Gav... ( write out 10 times : 'build test', 'build test','build test','build
> test','build test','build test','build test','build test','build
> test','build test'. )
>
>
>
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
Re: Static site updating of xml files
Posted by "Gav...." <br...@brightontown.com.au>.
----- Original Message -----
From: "Thorsten Scherler" <th...@apache.org>
To: <de...@forrest.apache.org>
Sent: Monday, October 17, 2005 10:13 PM
Subject: Re: Static site updating of xml files
| El lun, 17-10-2005 a las 22:00 +0800, Gav.... escribió:
| ...
| > 2. This is a minor point but I mention it in case it needs addressing or
| > ignored
| > due to upcoming updates. The produced 'tabs.xml' from a 'forrest
seed'
| > contains the following amongst others :-
| >
| > <tab label="Apache XML Projects" href="http://xml.apache.org">
| > <tab label="Forrest" href="http://forrest.apache.org"/>
| > <tab label="Xerces" href="http://xml.apache.org/xerces"/>
| > </tab>
| >
| > The two 'second level' tabs pointing to 'Forrest' and 'Xerces' are
useless
| > as far
| > as I can see as they will never get shown because the main tab they
belong
| > to
| > takes you to an external site., or have I misunderstood ?
|
| No, you are totally right. I thought I once changed that but it seems
| that I did not ;-). Can you come up with a patch? Thx
|
| salu2
| --
| thorsten
Yep, will do in the morning, off for some Zzzzz's now.
I guess just removing the second level tabs is what you want, or moving
elsewhere ?
Gav... ( write out 10 times : 'build test', 'build test','build test','build
test','build test','build test','build test','build test','build
test','build test'. )
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.2/137 - Release Date: 16/10/2005
Re: Static site updating of xml files
Posted by Thorsten Scherler <th...@apache.org>.
El lun, 17-10-2005 a las 22:00 +0800, Gav.... escribió:
...
> 2. This is a minor point but I mention it in case it needs addressing or
> ignored
> due to upcoming updates. The produced 'tabs.xml' from a 'forrest seed'
> contains the following amongst others :-
>
> <tab label="Apache XML Projects" href="http://xml.apache.org">
> <tab label="Forrest" href="http://forrest.apache.org"/>
> <tab label="Xerces" href="http://xml.apache.org/xerces"/>
> </tab>
>
> The two 'second level' tabs pointing to 'Forrest' and 'Xerces' are useless
> as far
> as I can see as they will never get shown because the main tab they belong
> to
> takes you to an external site., or have I misunderstood ?
No, you are totally right. I thought I once changed that but it seems
that I did not ;-). Can you come up with a patch? Thx
salu2
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)