On Sun, Mar 25, 2012 at 5:08 PM, Alexey Borzov <
borz_off@...> wrote:
Yeah I did look around further at this, but couldn't figure it out. You can
see the packages generated -
http://test.pear.php.net/package/HTML_Select/docs/latest/packages/ - but
not listed in the index.
There's
https://github.com/phpDocumentor/phpDocumentor2/issues/384https://github.com/phpDocumentor/phpDocumentor2/issues/356and I think the thing we are seeing is
https://github.com/phpDocumentor/phpDocumentor2/issues/402Another half is that DocBook-based documentation links to generated API
>
> I think 3) is the most feasible solution, but we should synchronize phpdoc
> and Phd_PEAR upgrades to prevent an obvious issue when links in the
> DocBook-based docs are different from those in API docs.
>
I agree that 3 is the most feasible; and would probably do that first.
But I am worried about incoming links in old documentation a bit.
That URI above has only links we control, which is OK
https://www.google.com.au/webhp?sourceid=chrome-instant&ix=sea&ie=UTF-8&ion=1#q=link%3Ahttp%3A%2F%2Fpear.php.net%2Fpackage%2FHTML_QuickForm2%2Fdocs%2Flatest%2FHTML_QuickForm2%2FHTML_QuickForm2_Factory.html&hl=en&prmd=imvns&filter=0&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&fp=e53ed314101be7dc&ix=sea&ion=1&biw=1660&bih=989... but there must be lots of tutorials, blog posts, etc that link to
specific manual pages.
I wonder if we can do an error document which does:
1. You linked to a /latest/ URI, using format which looks like old style
links, but got a 404
2. Redirect the user to /x.y.z/
and
1. You linked to a /x.y.z/ URI, using format which looks like old style
links, but got a 404
2. Redirect user to /(x.y.z) - 1/
It's a pity there's no SELECT * FROM valid_paths or something - doing this
via the filesystem/repeated redirects seems difficult.