필터 지우기
필터 지우기

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 CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by