Re: [DOC-WEB] PhD for Uniface
[email protected] (Hannes Magnusson)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <CADNQb0VUa6q5MnfZRqjW+2_38m7vFVkoi7L2M+V-yL5ZYb1ZFg@mail.gmail.com> |
On Sat, Feb 18, 2012 at 14:06, Dennis E.J. Vorst <[email protected]> wrote: > Hello, > > > > I have been playing with PhD for a couple of days now and I am very > impressed by the way it works. I have started with a small documentation set > for Uniface (a 4GL product by Compuware) > > > > I basically have two questions: > > 1. I would like to generate chm or PDF files of this set using PhD. > But how do I do this. I have tried using the -f pdf switch and then I get > the message that the package is not supported. Where can I get the package > that supports both CHM and PDF? did you install the 'haru' extension? Try running `pecl install haru` first. PhD uses that extension to deal with the actual pdf generation. > 2. As far as I know the php.net website is also build using the PhD > documentation. However users can add there own code examples to display > techniques on how to use commands, datatype etc. Is it possible to generate > this functionality using PhD or do I need some addon. PhD generates a specific PHP code for the php.net website. That code is really just pre- and post-hooks that call into the actual php.net website to handle the user notes. It shouldn't be very hard to add such system to PhD, but it would have to make several assumptions about your environment, which may not be very reliable all the time.... You would probably be better of by extending the builtin formats and inject your own code there. -Hannes