Re: Re: Building Docs
| From: | Hannes Magnusson | Date: | Sat, 04 Jun 2011 14:59:03 +0000 |
| Subject: | Re: Re: Building Docs | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969382737@lists.php.net to get a copy of this message | ||
On Sat, Jun 4, 2011 at 16:43, Richard Riley <rileyrg@googlemail.com> wrote:
> Hannes Magnusson <hannes.magnusson@gmail.com> writes:
>
>> On Fri, Jun 3, 2011 at 17:11, Richard Riley <rileyrg@googlemail.com> wrote:
>>> Richard Riley <rileyrg@googlemail.com> writes:
>>>
>>>> Alexey Shein <confik@gmail.com> writes:
>>>>
>>>>> 2011/6/3 Richard Riley <rileyrg@googlemail.com>:
>>>>>> Alexey Shein <confik@gmail.com> writes:
>>>>>>
>>>>>>> 2011/6/3 Richard Riley <rileyrg@googlemail.com>:
>>>>>>>>
>>>>>>>> I am trying to set up a local php web for doc lookup. I followed
>>>>>>>> the
>>>>>>>> instructions here
>>>>>>>>
>>>>>>>> https://wiki.php.net/doc/phd
>>>>>>>>
>>>>>>>> but this line
>>>>>>>>
>>>>>>>> phd -d doc-base/.manual.xml -o output_dir -f php -P PHP
>>>>>>>>
>>>>>>>> falls over with
>>>>>>>>
>>>>>>>> [08:28:02 - E_USER_ERROR ]
>>>>>>>> /usr/share/php/phpdotnet/phd/Options/Handler.php:165
>>>>>>>> Invalid Package (Tried: 'PHP' Supported:
>>>>>>>> 'Generic')
>>>>>>>>
>>>>>>>
>>>>>>> It seems that you installed only Generic phd package and not PHP one
>>>>>>> (i.e. that used for rendering php docs).
>>>>>>> This link can help
>>>>>>> https://doc.php.net/phd/docs/ (see PEAR install)
>>>>>>> You can also try pear option --alldeps if dependencies still not
>>>>>>> fetched automatically.
>>>>>>
>>>>>> Ah yes. Thanks. Another case of too many cooks spoiling the broth. The
>>>>>> other instructions I followed didn't mention this
>>>>>>
>>>>>> pear install doc.php.net/phd_php
>>>>>>
>>>>>> Many thanks for your prompt help,
>>>>>>
>>>>>
>>>>> You're welcome. You also may want to setup your local "mirror",
>>>>> see
>>>>> https://wiki.php.net/doc/phd/view for
>>>>> instructions, and this will give
>>>>> you some "fuzzy" searching like on php.net, but it kinda slow (2-3
>>>>> sec) on my box, but YMMV.
>>>>
>>>> Yeah, I'm doing that now but its still not finding the docs (I put the
>>>> symbolic link in my web mirror back to my phpdocs/manual/en
>>>> too). There's a lot of conflicting and incomplete info out there in php
>>>> doc land but I'll find my through ;)
>>>
>>> My local mirror is still not able to find functions or fuzzy search
>>> despite building php docs locally and linking them.
>>
>> What is your test url? Are you attempting to go through the error handler?
>> Have copied the virtualhost example from
>> http://php.net/mirroring?
>>
>> -Hannes
>
> test url? This is a local vhost. Go through the error handler? Sorry, I
> dont know what that means.
>
> php.net with a localhost /etc/hosts entry.
http://localhost/strpos
or
http://localhost/manual-lookup.php?pattern=strpos
or what exactly isn't working? And what is the error you are getting?
-Hannes