フィルターのクリア

Toolbox helptoc.xml with folder structure

4 ビュー (過去 30 日間)
Johannes Milvich
Johannes Milvich 2015 年 5 月 6 日
回答済み: Tricia 2015 年 6 月 11 日
Hello,
Matlab allows to create custom help html files as shown in http://de.mathworks.com/help/matlab/matlab_prog/display-custom-documentation.html.
When you create your info.xml file in your main folder, you specify the path where the HTML help files lie. I created a script which automatically creates a helptoc.xml file in that \html\ folder, which uses the folder hierarchy of html help files to create a nested tocitem table.
<?xml version='1.0' encoding="utf-8"?>
<toc version="2.0">
<tocitem target="\HelpFiles\Contents.html"> HelpFiles
<tocitem target="\HelpFiles\Contents.html"> Contents
<\tocitem>
<tocitem target="\HelpFiles\Design\Contents.html"> Design
<tocitem target="\HelpFiles\Design\ClassDefs\Contents.html"> ClassDefs
<tocitem target="\HelpFiles\Design\ClassDefs\TestClass.html"> TST
<\tocitem>
If I press F1, however, the tocitems are not shown in the help browser.
My questions are:
Do all html files have to be directly in the html folder? Is there a way to create an automated hierarchy based on a folder structure?
Best regards,
Johannes

回答 (1 件)

Tricia
Tricia 2015 年 6 月 11 日
Hi Johannes, Yes. Your html files should be located in your html folder, or a child folder in your html folder. The F1 command is supported for functions. Be sure that you are using F1 for a function that is on the matlab path and that has matlab file help.

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by