pradosoft / prado

Prado - Component Framework for PHP
Other
187 stars 70 forks source link

[WIP] Doc updates; fix #964 #965

Closed ctrlaltca closed 12 months ago

ctrlaltca commented 1 year ago

This PR replaces all < code > tags with markdown tags in phpdoc comments. The Prism js library has been included in prado-phpdoc-template to enable syntax highlight. It looks some more fixes are needed, eg. most link tags seems to be currently broken.

belisoful commented 1 year ago

Can you write a line or two about the issues you have encountered with @link? and why the move to @see. No problems, just trying to understand the bigger picture.

ctrlaltca commented 1 year ago

Can you write a line or two about the issues you have encountered with @link? and why the move to @see. No problems, just trying to understand the bigger picture.

In the "old times" only @link existed, and it could accept both an URL or a class/method/variable name . In the current specs @link can be used only for urls, and @see must be used for references to classes/methods etc.. There are a few more complications:

belisoful commented 1 year ago

Thank you for this description! It illuminates your very clear view of this issue (and what I-we "need" to be doing better).

belisoful commented 1 year ago

I don't know if this helps. Yii2 uses the double bracket [[class]] instead of @see class. eg.

 * BaseArrayHelper provides concrete implementation for [[ArrayHelper]].
 * Do not use BaseArrayHelper. Use [[ArrayHelper]] instead.
ctrlaltca commented 1 year ago

Yep, Yii uses its own implementation on top of phpDocumentor: https://github.com/yiisoft/yii2-apidoc

ctrlaltca commented 12 months ago

This is finally ready for merging, the results are already online at https://pradosoft.github.io/docs/manual