Re: What Is LiveDocs?]
| From: | Wez Furlong | Date: | Wed, 05 May 2004 12:05:20 +0000 |
| Subject: | Re: What Is LiveDocs?] | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-3900@lists.php.net to get a copy of this message | ||
> I hear a lot about LiveDocs, but I can find no useful information about
> it for someone who does not already know what it is.
>
> Although Google reveals its home page at
> http://thebrainroom.com/opensource/livedocs.php, that
> doesn't say much,
> nor does its README in the downloadable source code.
>
> Davey has pointed me to docs.php.net repeatedly, but that site says
> nothing about LiveDocs itself.
docs.php.net is currently outdated; you can try out
http://livedocs.thebrainroom.net for an up-to-date
version.
> Is there anyone on this list who can answer the following questions, or
> point me to narratives that answer them?
>
> 1. What is LiveDocs, as explained for relative n00bs? (That is,
> what does it do, and how does it do it?)
Livedocs is a less-painful way to view docbook documentation as HTML.
It works by generating an index of docbook ID's and mapping them to
the individual files where they live.
When you view a page from the docs, say for the "fopen" function, livedocs
knows that it should display the node with the ID "function.fopen".
It determines which XML file contains that node and parses it using a
tolerant docbook xml parser (actually, it's really lax and doesn't care
much about validity). It will then convert everything from that node
into HTML and output it to the browser.
It can optionally cache the output and save it to an .html file, so
that the generation need only be performed once.
It also indexes the content so that you can search it, and just recently
has support for rendering user contributed notes.
All the database stuff is implemented in SQLite, meaning that you need
to have SQLite on the server where you generate the docs, but if you
are pre-rendering them to HTML, you need only distribute the HTML.
> 2. How does one work with it? Is it an online web form kind of
> system, or is it based on CVS, or what?
You checkout your docs, run livedocs over it, and it generates either
a dynamic on-the-fly installation (useful while writing docs), or a
static-pre-generation installation (aka "The 404 trick"), where the docs
are rendered on demand and then saved as .html files that subsequent
visitors will request directly.
> 3. Is LiveDocs itself documented somewhere?
No, except in the source.
> I ask because, although some think LiveDocs is the answer to our
> documentation problems, they can't seem to explain to the rest of us
> (me :-) what it is and how it works.
>
> Thanks in advance for any useful information about LiveDocs.
phpdoc@lists.php.net is probably the place to make yourself known
for more info; why not talk to the people working on livedocs if you
want to find out about it? :)
Currently it is geared towards (and makes assumptions based on!) the
phpdoc tree layout and implementation.
--Wez.