Is there any reason not to simply create an html page that loads the plugin via ajax and parses that? Depending on the intended use the page would output the documentation directly or generate xml to copy into a static file.

John's current code could probably be copyed almost exactly.

Blair

On 8/22/06, Sam Collett <[EMAIL PROTECTED]> wrote:
On 22/08/06, Christian Bach <[EMAIL PROTECTED]> wrote:
> Sam Collett wrote:
> > On 22/08/06, Christian Bach < [EMAIL PROTECTED]> wrote:
> >> Hi All,
> >>
> >> I have put together a very simple package regarding plugin documentation.
> >>
> >> The package includes:
> >>
> >> Build.xml - The ant build file containing two tasks "docs" and "clean".
> >> Plugin.xml - A simple xml based documentation for plugins
> >> build - Dir containing the css file and xsl stylesheet.
> >>
> >> The Plugin.xml is converted to a html file using a xsl stylesheet
> >> located in build/docs/.
> >>
> >> To generate the docs file, Just run "ant docs"
> >>
> >> This is just a sample example of what could be done to ease plugin
> >> development.
> >>
> >> /christian
> >>
> > Is there a way to generate the Plugin.xml through parsing the source
> > code of the plugin?
>
> Yes, you can parse the source code using some js and rhino, as John
> does. The only down side is that rhino needs to be included, weighing
> in around 600kb.
>
> In my opinion this is a bit overkill for a simple plugin.
>
> Perhaps we need a new way?!
>
> /c
>

It does sound a bit overkill for that (still helpful nonetheless).
Maybe Firefox could do it - probably as an extension? I wouldn't know
how to do that though (or have to time to learn).

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to