-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add best practices for toolbox custom documentation #5
Comments
Great idea! Proper doc is always important! |
Capturing the comment from Reddit: This one was right on the edge of making it into v1 of the best practice. Here's my advice: You can create custom documentation for functions in your toolbox. Place your shipping documentation in a doc folder under the toolbox folder. Custom documentation requires the following files:
You can use the publish command to create documentation HTML help files. When we add custom documentation to our example toolbox: arithmetic/
:
├───toolbox/
│ │ gettingStarted.mlx
│ │ info.xml
│ ├───doc/
│ │ helptoc.xml
│ │ coolDoc.mlx
│ ├──────html/
│ │ coolDoc.html Please understand that this was draft advice, and is subject to change in the future. |
This is something that we'll add in a future revision. |
R2024b break what was barely working.... It was already be difficult to provide a nice "example experience" to the user especially having the possibility to run some code in the user editor. But it was still possible by executing copy command with "matlab:" pragma in an html link. Now this does not work because the doc is now displayed by the system browser. I really urge the Matlab dev team to rework the way user can provide high quality documentation to their users. It is really sad that this has not been reworked for years. Matlab main strength its is high quality doc. This should be available for custom toolbox. Now the doc is pure html. Most/many of us will follow the advices and use mlx files to generate our doc.
It is absolutely not clear to me why we have to declare example in a dedicated xml file as there is absolutely no benefits to do this:
So far the user experience is much better by displaying the example page as a "normal" subsection of the main doc. Please Mahtworks, do something with the custom toolbox help. |
Add description and example of best practices for custom documentation for toolbox folders and files.
The text was updated successfully, but these errors were encountered: