Adding custom documentation to Matlab
17 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to add my own custom Matlab documentation to the Matlab Help (doc).
Previously, I used custom html files which could be viewed in the Matlab browser (web), but I prefer to use the standard documentation browser such that the environment of the documentation aligns with the Matlab documentation.
I've found the article that has been written about adding custom documentation (Display Custom Examples), but I still don't get it working. This Question is related to my question, but my documentation does not show up in the Help when I follow the givern answer.
Does anyone have an example (preferably in downloadable files) that does work, which I can use as reference?
0 件のコメント
採用された回答
EvanW
2019 年 7 月 15 日
2 件のコメント
Tobias Held
2022 年 5 月 27 日
Thank you for your follow up but could you also share the supplemental software? :)
その他の回答 (1 件)
Shubham
2024 年 8 月 21 日
Hi Evan,
As per my understanding, you want to add "Custom Documentation" to the MATLAB Help Browser.
You can do so by following these steps:
1. Creating HTML Help Files containing your custom documentation information
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MathJax Test</title>
</head>
<body>
<h1>MathJax Equation</h1>
<p>Here is an equation:</p>
<p>
a=b+c
</p>
</body>
</html>
2. Creating "info.xml" file for identifying your HTML help files
<?xml version="1.0" encoding="utf-8"?>
<productinfo
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="optional">
<?xml-stylesheet type="text/xsl" href="optional"?>
<matlabrelease>R2024a</matlabrelease>
<name>MyToolbox</name>
<type>toolbox</type>
<icon></icon>
<help_location>help</help_location>
</productinfo>
3. Creating "helptoc.xml" file defining the "Table of Contents" displayed in the Contents pane of the Supplemental Software browser
<?xml version="1.0" encoding="utf-8"?>
<toc version="2.0">
<tocitem target="example.html">MathJax Example</tocitem>
</toc>
4. To make your documentatoin searchable, create a search database using the "builddocsearchdb" function.
builddocsearchdb('path_to_your_html_help_files')
5. Updating the documentation using the command "rehash toolboxcache".
Please note that you need to place the HTML help files and "helptoc.xml" file in the same folder which in the above example is named as "help".

Refer to the following documentation link for more information on creating "Custom Documentation":
Hope this helps.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Adding custom doc についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!