Ok, so I added a dependency to site plugin 2.0-beta-6 and now i can use the
file parameter like you suggested.

However, the generated html is not including the file like I expect. Instead
it is doing the following:

%<a 
name="snippet|id=myid|file=src/main/resources/help/basichelp.txt">snippet|id=myid|file=src/main/resources/help/basichelp.txt</a>

given the apt:

%{snippet|id=myid|file=src/main/resources/help/basichelp.txt}




On Feb 4, 2008 8:55 AM, Lukas Theussl <[EMAIL PROTECTED]> wrote:

> Which doxia version are you using? The file parameter was added in
> doxia-1.0-alpha-9 (ie site-plugin 2.0-beta-6).
>
> -Lukas
>
>
> Kallin Nagelberg wrote:
> > Thanks Lukas,
> >
> > You know I tried that, but I keep getting the error that 'url' is a
> required
> > parameters :S
> >
> >
> > On Feb 4, 2008 5:32 AM, Lukas Theussl <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Use the file parameter instead of url, eg:
> >>
> >>%{snippet|id=myid|file=src/main/resources/help/basichelp.txt}
> >>
> >>HTH,
> >>-Lukas
> >>
> >>
> >>Kallin Nagelberg wrote:
> >>
> >>>Hi Everyone,
> >>>
> >>>I've been tasked with creating some .apt documentation for a new maven
> >>
> >>built
> >>
> >>>project. Ideally, I'd like to have a lot of the site documentation come
> >>
> >>from
> >>
> >>>files in my src/main/resources directory.
> >>>
> >>>I've read about using the snippet macro, but I can't get it to access
> >>
> >>the
> >>
> >>>artifacts resources.
> >>>
> >>>I've tried something like this but it doesn't work:
> >>>%{snippet|id=myid|url=file:///./src/main/resources/help/basichelp.txt}
> >>>
> >>>Any ideas would be appreciated!
> >>>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to