Directly open custom documentation
显示 更早的评论
I've created custom documentation that when typing "doc" is viewable by following the trail under Supplemental Software. However, I would prefer to access the custom documentation directly without having to use "doc" and then follow down the Supplemental Software trail. Is there any way to directly open custom documentation with a single command?
采纳的回答
更多回答(1 个)
Sean de Wolski
2019-12-23
web(fullfile(docroot, '3ptoolbox/toolbox_name/doc/Index.html'))
You can get this by navigating to your custom doc page's Index, right clicking and "Get Page Address". This provides the nav panel on the right-hand side.
4 个评论
per isakson
2019-12-23
Not on my system. I'm running R2018b. The info for my nav panel is in ...\doc\helptoc.xml. I have no file named Index.html
Sean de Wolski
2019-12-24
编辑:Sean de Wolski
2019-12-24
I just confirmed it works in 19b and not 18b. This is the structure of the helptoc.xml I'm using:
<?xml version='1.0' encoding="utf-8"?>
<toc version="2.0">
<tocitem target="Index.html">Load Forecaster
<tocitem target="Setup/Index.html">Setup
<tocitem target="Setup/DemoSetup.html">Demo Setup</tocitem>
<tocitem target="Setup/ProductionSetup.html">Production Setup</tocitem>
</tocitem>
<tocitem target="Examples/DemoingIndex.html">Demoing Load Forecaster
<tocitem target="Examples/DemoingOnlineOffline.html">Demoing Online and Offline</tocitem>
<tocitem target="Examples/MakeForecast.html">Make a Load Forecast</tocitem>
<tocitem target="Examples/TrainModels.html">Train Models</tocitem>
<tocitem target="Examples/GenerateReport.html">Generate a Forecast Report</tocitem>
<tocitem target="Examples/DealingData.html">Dealing with the Data</tocitem>
</tocitem>
</SNIP>
Faker Mayfield
2019-12-24
Sean de Wolski
2019-12-24
Just confirmed it works in 19a as well so was apparently added then.
类别
在 帮助中心 和 File Exchange 中查找有关 Adding custom doc 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
