I want to generate a complete help for a Matlab toolbox I have developped.
I have seen how to Display custom documentation by making a helptoc.xml
file, but I do not understand how you can add the pages generated when you type doc My_class
.
Is there a way to save the result of doc My_class
to HTML pages with all links for properties and methods pages?
You can use help2html
which is not very documented but it works.
Calling:
html = help2html(mfilename);
returns verbatim the HTML file that gets displayed by doc
as a 1XN char array. mfilename
is the full path to the m-file you want to document. Though as an undocumented function, its interface isn't guaranteed to stay constant, the copyright notice is from 2008. So it looks like the file isn't being touched often and you can probably trust it to keep working for a while.