RE: [DOC-WEB] PhD for Uniface

[email protected] ("Dennis E.J. Vorst")
Newsgroups php.doc.web
Message-ID <[email protected]>
Hello Magnus, 

Thanx for the help. I have one more question.

Would it be possible to get the code, or at least an insight in the code of the php.net website? We are looking for a way to replicate your site for our programming language.

Kind regards,

Dennis Vorst  

-----Oorspronkelijk bericht-----
Van: Hannes Magnusson [mailto:[email protected]] 
Verzonden: maandag 20 februari 2012 20:52
Aan: Dennis E.J. Vorst
CC: [email protected]
Onderwerp: Re: [DOC-WEB] PhD for Uniface

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.