Force doc command to open a specified reference HTML page
1 次查看(过去 30 天)
显示 更早的评论
Say I've written a class in a package, called mypackage.myclass.
I've written my own HTML documentation for the package and the class, and have included this within the MATLAB help browser as described in the MATLAB documentation.
I can display this HTML documentation by using the help browser to navigate directly to it, but typing
doc mypackage.myclass
does not display it; instead it displays some HTML documentation that is auto-generated by helpwin (which is a nice feature, but not what I want - the auto-generated documentation is too techy for my users).
How can I force doc to display my documentation, rather than the auto-generated documentation?
Equivalently:
When you run
doc docTopic
inside the doc command, the Java class
com.mathworks.mlservices.MLHelpServices.showReferencePage(docTopic)
gets called. If a reference page for docTopic exists, it displays it and returns a success value. If a reference page doesn't exist, it returns a failure value, which then causes helpwin(docTopic) to get called. Somewhere there must be some catalog, used by the Java class, that connects values of the string docTopic with individual reference HTML files. How can I fiddle with that catalog - or can I create one for my package?
MathWorkers and Yair, please give me enough undocumented rope to hang myself with :)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!