You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Chris Berry <ch...@gmail.com> on 2008/07/05 22:59:11 UTC
skin html files in site ??
Greetings,
Is there a way to include straight HTML files into a site (using mvn
site:site) and have them skinned along with all the other files??
(e.g. index.apt, xdoc files, etc.)
I have many HTML files in site/resources/. And I want them to have the
same, standard Maven header, side navigation bar, logos, etc.
It seems that this should be possible since the maven-site-plugin
seems capable of doing it...
Thanks,
-- Chris
S'all good --- chriswberry at gmail dot com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: skin html files in site ??
Posted by Dennis Lundberg <de...@apache.org>.
The short answer is, no you can't do that.
The longer answer is that the underlying framework Doxia, doesn't have a
reader for (x)html files - only a writer. It has readers for the other
formats, such as apt, xdoc and fml, but not for html. Writing such a
reader is difficult because of the often poor xml compliance of html files.
My advice to you is to convert your html files to xdoc files. It is not
so much work to do that. That's what I did when faced with a similar task.
Chris Berry wrote:
> Greetings,
> Is there a way to include straight HTML files into a site (using mvn
> site:site) and have them skinned along with all the other files?? (e.g.
> index.apt, xdoc files, etc.)
> I have many HTML files in site/resources/. And I want them to have the
> same, standard Maven header, side navigation bar, logos, etc.
> It seems that this should be possible since the maven-site-plugin seems
> capable of doing it...
> Thanks,
> -- Chris
>
> S'all good --- chriswberry at gmail dot com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: skin html files in site ??
Posted by Lukas Theussl <lt...@apache.org>.
Oops, thanks Dennis! Also, I meant maven-2.0.10 of course. As you might
guess, my mind is already set on vacation mode...
-Lukas
Dennis Lundberg wrote:
> The missing link is here
>
> [1] http://docs.codehaus.org/display/MAVEN/Doxia+Release+Plan
>
> Lukas Theussl wrote:
>
>>
>> There is a scetchy release plan at [1] but I think at the moment it is
>> impossible to give an ETA, the main problem is that we have to wait
>> for maven-1.0.10 and that it won't work with any earlier version. And
>> then it's vacation time...
>>
>> Cheers,
>> -Lukas
>>
>>
>> Chris Berry wrote:
>>
>>> Thanks Lukas.
>>> Is there any ETA for the new site plugin??
>>> And is this code available in the current SNAPSHOT of the site plugin ??
>>> This seems the easiest route over Jason's suggestion of the xsite
>>> plugin, which requires a more major overhaul.
>>> (BTW: Thanks Jason ;-)
>>> Cheers,
>>> -- Chris
>>>
>>> On Jul 6, 2008, at 1:09 PM, Lukas Theussl wrote:
>>>
>>>>
>>>> You can do what you want with current doxia-1.0-beta-1 (not
>>>> released yet but scheduled to be used in the next version of the
>>>> site plugin), you will be able to just put your xhtml files into
>>>> src/site/ xhtml.
>>>>
>>>> -Lukas
>>>>
>>>>
>>>> Chris Berry wrote:
>>>>
>>>>> Hi Martin,
>>>>> AFAICT, that doesn't solve the problem I have. I want straight-up
>>>>> HTML files to be skinned by Doxia according to the site.xml
>>>>> I think Dennis answered my question; Doxia cannot do this today
>>>>> -- which is a shame.
>>>>> IMHO, it would be better to skin HTML files unless they are
>>>>> <excludes>, and just enforce/assume XML compliance.
>>>>> Thanks,
>>>>> -- Chris
>>>>> On Jul 6, 2008, at 9:17 AM, Martin Gainty wrote:
>>>>>
>>>>>>
>>>>>> Hi Chris
>>>>>> did you look at segregating off the site descriptor to
>>>>>> incorporate the list of files to be installed/deployed
>>>>>> ${basedir}/ src/site
>>>>>> http://maven.apache.org/plugins/maven-site-plugin/attach-descriptor-mojo.html#siteDirectory
>>>>>>
>>>>>> HTHMartin ______________________________________________
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>
>>> S'all good --- chriswberry at gmail dot com
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: skin html files in site ??
Posted by Dennis Lundberg <de...@apache.org>.
The missing link is here
[1] http://docs.codehaus.org/display/MAVEN/Doxia+Release+Plan
Lukas Theussl wrote:
>
> There is a scetchy release plan at [1] but I think at the moment it is
> impossible to give an ETA, the main problem is that we have to wait for
> maven-1.0.10 and that it won't work with any earlier version. And then
> it's vacation time...
>
> Cheers,
> -Lukas
>
>
> Chris Berry wrote:
>> Thanks Lukas.
>> Is there any ETA for the new site plugin??
>> And is this code available in the current SNAPSHOT of the site plugin ??
>> This seems the easiest route over Jason's suggestion of the xsite
>> plugin, which requires a more major overhaul.
>> (BTW: Thanks Jason ;-)
>> Cheers,
>> -- Chris
>>
>> On Jul 6, 2008, at 1:09 PM, Lukas Theussl wrote:
>>
>>>
>>> You can do what you want with current doxia-1.0-beta-1 (not released
>>> yet but scheduled to be used in the next version of the site
>>> plugin), you will be able to just put your xhtml files into src/site/
>>> xhtml.
>>>
>>> -Lukas
>>>
>>>
>>> Chris Berry wrote:
>>>
>>>> Hi Martin,
>>>> AFAICT, that doesn't solve the problem I have. I want straight-up
>>>> HTML files to be skinned by Doxia according to the site.xml
>>>> I think Dennis answered my question; Doxia cannot do this today --
>>>> which is a shame.
>>>> IMHO, it would be better to skin HTML files unless they are
>>>> <excludes>, and just enforce/assume XML compliance.
>>>> Thanks,
>>>> -- Chris
>>>> On Jul 6, 2008, at 9:17 AM, Martin Gainty wrote:
>>>>
>>>>>
>>>>> Hi Chris
>>>>> did you look at segregating off the site descriptor to
>>>>> incorporate the list of files to be installed/deployed ${basedir}/
>>>>> src/site
>>>>> http://maven.apache.org/plugins/maven-site-plugin/attach-descriptor-mojo.html#siteDirectory
>>>>>
>>>>> HTHMartin ______________________________________________
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>
>> S'all good --- chriswberry at gmail dot com
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: skin html files in site ??
Posted by Lukas Theussl <lt...@apache.org>.
There is a scetchy release plan at [1] but I think at the moment it is
impossible to give an ETA, the main problem is that we have to wait for
maven-1.0.10 and that it won't work with any earlier version. And then
it's vacation time...
Cheers,
-Lukas
Chris Berry wrote:
> Thanks Lukas.
> Is there any ETA for the new site plugin??
> And is this code available in the current SNAPSHOT of the site plugin ??
> This seems the easiest route over Jason's suggestion of the xsite
> plugin, which requires a more major overhaul.
> (BTW: Thanks Jason ;-)
> Cheers,
> -- Chris
>
> On Jul 6, 2008, at 1:09 PM, Lukas Theussl wrote:
>
>>
>> You can do what you want with current doxia-1.0-beta-1 (not released
>> yet but scheduled to be used in the next version of the site plugin),
>> you will be able to just put your xhtml files into src/site/ xhtml.
>>
>> -Lukas
>>
>>
>> Chris Berry wrote:
>>
>>> Hi Martin,
>>> AFAICT, that doesn't solve the problem I have. I want straight-up
>>> HTML files to be skinned by Doxia according to the site.xml
>>> I think Dennis answered my question; Doxia cannot do this today --
>>> which is a shame.
>>> IMHO, it would be better to skin HTML files unless they are
>>> <excludes>, and just enforce/assume XML compliance.
>>> Thanks,
>>> -- Chris
>>> On Jul 6, 2008, at 9:17 AM, Martin Gainty wrote:
>>>
>>>>
>>>> Hi Chris
>>>> did you look at segregating off the site descriptor to incorporate
>>>> the list of files to be installed/deployed ${basedir}/ src/site
>>>> http://maven.apache.org/plugins/maven-site-plugin/attach-descriptor-mojo.html#siteDirectory
>>>>
>>>> HTHMartin ______________________________________________
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> S'all good --- chriswberry at gmail dot com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: skin html files in site ??
Posted by Chris Berry <ch...@gmail.com>.
Thanks Lukas.
Is there any ETA for the new site plugin??
And is this code available in the current SNAPSHOT of the site plugin ??
This seems the easiest route over Jason's suggestion of the xsite
plugin, which requires a more major overhaul.
(BTW: Thanks Jason ;-)
Cheers,
-- Chris
On Jul 6, 2008, at 1:09 PM, Lukas Theussl wrote:
>
> You can do what you want with current doxia-1.0-beta-1 (not released
> yet but scheduled to be used in the next version of the site
> plugin), you will be able to just put your xhtml files into src/site/
> xhtml.
>
> -Lukas
>
>
> Chris Berry wrote:
>> Hi Martin,
>> AFAICT, that doesn't solve the problem I have. I want straight-up
>> HTML files to be skinned by Doxia according to the site.xml
>> I think Dennis answered my question; Doxia cannot do this today --
>> which is a shame.
>> IMHO, it would be better to skin HTML files unless they are
>> <excludes>, and just enforce/assume XML compliance.
>> Thanks,
>> -- Chris
>> On Jul 6, 2008, at 9:17 AM, Martin Gainty wrote:
>>>
>>> Hi Chris
>>> did you look at segregating off the site descriptor to
>>> incorporate the list of files to be installed/deployed ${basedir}/
>>> src/site
>>> http://maven.apache.org/plugins/maven-site-plugin/attach-descriptor-mojo.html#siteDirectory
>>> HTHMartin ______________________________________________
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
S'all good --- chriswberry at gmail dot com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: skin html files in site ??
Posted by Lukas Theussl <lt...@apache.org>.
You can do what you want with current doxia-1.0-beta-1 (not released yet
but scheduled to be used in the next version of the site plugin), you
will be able to just put your xhtml files into src/site/xhtml.
-Lukas
Chris Berry wrote:
> Hi Martin,
> AFAICT, that doesn't solve the problem I have. I want straight-up HTML
> files to be skinned by Doxia according to the site.xml
> I think Dennis answered my question; Doxia cannot do this today --
> which is a shame.
> IMHO, it would be better to skin HTML files unless they are <excludes>,
> and just enforce/assume XML compliance.
> Thanks,
> -- Chris
>
>
> On Jul 6, 2008, at 9:17 AM, Martin Gainty wrote:
>
>>
>> Hi Chris
>> did you look at segregating off the site descriptor to incorporate
>> the list of files to be installed/deployed ${basedir}/src/site
>> http://maven.apache.org/plugins/maven-site-plugin/attach-descriptor-mojo.html#siteDirectory
>>
>> HTHMartin ______________________________________________
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: skin html files in site ??
Posted by Jason van Zyl <ja...@maven.org>.
Use xsite to do this. Works great if you just want to skin html.
http://xsite.codehaus.org/
On 6-Jul-08, at 11:46 AM, Chris Berry wrote:
> Hi Martin,
> AFAICT, that doesn't solve the problem I have. I want straight-up
> HTML files to be skinned by Doxia according to the site.xml
> I think Dennis answered my question; Doxia cannot do this today --
> which is a shame.
> IMHO, it would be better to skin HTML files unless they are
> <excludes>, and just enforce/assume XML compliance.
> Thanks,
> -- Chris
>
>
> On Jul 6, 2008, at 9:17 AM, Martin Gainty wrote:
>
>>
>> Hi Chris
>> did you look at segregating off the site descriptor to incorporate
>> the list of files to be installed/deployed ${basedir}/src/site
>> http://maven.apache.org/plugins/maven-site-plugin/attach-descriptor-mojo.html#siteDirectory
>> HTHMartin ______________________________________________
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: skin html files in site ??
Posted by Chris Berry <ch...@gmail.com>.
Hi Martin,
AFAICT, that doesn't solve the problem I have. I want straight-up HTML
files to be skinned by Doxia according to the site.xml
I think Dennis answered my question; Doxia cannot do this today --
which is a shame.
IMHO, it would be better to skin HTML files unless they are
<excludes>, and just enforce/assume XML compliance.
Thanks,
-- Chris
On Jul 6, 2008, at 9:17 AM, Martin Gainty wrote:
>
> Hi Chris
> did you look at segregating off the site descriptor to incorporate
> the list of files to be installed/deployed ${basedir}/src/site
> http://maven.apache.org/plugins/maven-site-plugin/attach-descriptor-mojo.html#siteDirectory
> HTHMartin ______________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: skin html files in site ??
Posted by Martin Gainty <mg...@hotmail.com>.
Hi Chris
did you look at segregating off the site descriptor to incorporate the list of files to be installed/deployed ${basedir}/src/site
http://maven.apache.org/plugins/maven-site-plugin/attach-descriptor-mojo.html#siteDirectory
HTHMartin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > From: chriswberry@gmail.com> To: users@maven.apache.org> Subject: skin html files in site ??> Date: Sat, 5 Jul 2008 15:59:11 -0500> > Greetings,> Is there a way to include straight HTML files into a site (using mvn > site:site) and have them skinned along with all the other files?? > (e.g. index.apt, xdoc files, etc.)> I have many HTML files in site/resources/. And I want them to have the > same, standard Maven header, side navigation bar, logos, etc.> It seems that this should be possible since the maven-site-plugin > seems capable of doing it...> Thanks,> -- Chris> > S'all good --- chriswberry at gmail dot com> > > > > ---------------------------------------------------------------------> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org> For additional commands, e-mail: users-help@maven.apache.org>
_________________________________________________________________
Need to know now? Get instant answers with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_messenger_072008