2011/4/28 Hannes Magnusson <hannes.magnus...@gmail.com>

> On Thu, Apr 28, 2011 at 08:27, Yannick Torrès <yannick.tor...@gmail.com>
> wrote:
> > Hi Hannes,
> >
> > 2011/4/27 Hannes Magnusson <hannes.magnus...@gmail.com>
> >>
> >> On Wed, Apr 27, 2011 at 14:58, Hannes Magnusson
> >> <hannes.magnus...@gmail.com> wrote:
> >> > All this takes us alot closer to be able to provide "live preview" in
> >> > PhD OE..
> >> > The "whole shebang" (configure.php, phd indexing, phd rendering) for
> >> > one book (mysqli, for example) takes my laptop less then 7seconds[1]
> >> > :D
> >>
> >>
> >> Quick follow up.. Did some more optimizations... 25% extra :)
> >> The book.mysqli now takes 4second on my laptop.
> >>
> >> After that, I realized rendering one page would obviously be quicker
> >> so I tried that out..
> >>
> >>
> >> $ rm -rf output; time ( php doc-base/configure.php
> >> --generate=en/reference/mysqli/mysqli/real-escape-string.xml ; php
> >> ~/Work/OSS/php/phd/render.php --package PHP --format php -d
> >> doc-base/.manual.xml )
> >
> > I haven't play so much with phd.. ;)
> >
> > Could you give me some information about this command line ?
>
> The --generate option to configure.php generates a <set> wrapper for
> the file you specify as an argument.
> The resulting .manual.xml will have one container chunk (index) and
> then the file you passed as an argument.
>
> The "php ~/Work.../render.php" should be replaced with "phd", I was
> just using phd from svn as we haven't released a new version with the
> performance changes.
> Other then that, it is just standard command we have to write, with a
> timing wrapper and removing previous generated output.
>
>
> I added another option to PhD after this email, --memoryindex, which
> should be used when generating one page.
>
> >
> > php doc-base/configure.php
> > --generate=en/reference/mysqli/mysqli/real-escape-string.xml ; php
> > ~/Work/OSS/php/phd/render.php --package PHP --format php -d
> > doc-base/.manual.xml
> > What's the output of it ? inline html ? a file ?
>
> Just like normal, an
> output/<packagename>-<formatname>/<chunkname>.<fileext>
> So in that case it generated: output/php-web/real-escape-string.php
> and an additional output/php-web/index.php file, only linking to the
> rea-esacpe-string
>
>
> >
> > In the online editor, when a file haven't been commited, it was saved in
> > .new file. Is it a problem to generate the output ? the command line will
> be
> > somethings like this :
> > php doc-base/configure.php
> > --generate=en/reference/mysqli/mysqli/real-escape-string.xml.new ; php
> > ~/Work/OSS/php/phd/render.php --package PHP --format php -d
> > doc-base/.manual.xml
> >
> > Where did you see the "view the output" button ? on each file ? for the
> > global manual ? ;)
>
>
> On every file I think, just like you can xmllint every file you should
> be able to preview it.
>

Ok thanks Hannes for this details.
I will give it a try asap.

Best,
Yannick



>
> -Hannes
>

Reply via email to