[TIMOB-10241] APIDoc: docgen.py should mark creator method as deprecated when the associated object is deprecated
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-22T13:20:41.000+0000 |
Affected Version/s | Release 1.7.6 |
Fix Version/s | Sprint 2012-17 Core, Release 3.0.0 |
Components | Tooling |
Labels | n/a |
Reporter | Arthur Evans |
Assignee | Bill Dawson |
Created | 2011-12-11T11:37:59.000+0000 |
Updated | 2012-12-04T22:56:44.000+0000 |
Description
Added a deprecated version of Ti.UI.3DMatrix, but Ti.UI.create3DMatrix shows up as non-deprecated.
We could add it back in manually and deprecate it, but it seems like it should be deprecated automatically.
There might be some issues here with producing the correct documentation, however. If the deprecation annotation
included an alternate field (or something like that) identifying the Ti type replacing the object, we could generate
the appropriate summary text automatically. Have to think on that, but I'm noting the issue now before I forget it.
Would like to propose adding information a text field to the deprecation tag.
Testing Notes
* Open apidoc/Titanium/UI/Button.yml in an editor. * Add ...... near the top (like under
summary
would be fine.) * Runpython apidoc/docgen.py
* When it's finished open dist/apidoc/index.html in a web browser. * Navigate to Titanium.UI and to the list of methods therein. * Find thecreateButton
method in the list and click on it. * At thecreateButton
's documentation page you should see that the method has been deprecated since 2.2.0.PR ready https://github.com/appcelerator/titanium_mobile/pull/2800
Tested with 3.0.0.v20121130200208