Directly open custom documentation
Mostrar comentarios más antiguos
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?
2 comentarios
per isakson
el 23 de Dic. de 2019
What about?
doc name
Faker Mayfield
el 23 de Dic. de 2019
Respuesta aceptada
Más respuestas (1)
Sean de Wolski
el 23 de Dic. de 2019
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 comentarios
per isakson
el 23 de Dic. de 2019
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
el 24 de Dic. de 2019
Editada: Sean de Wolski
el 24 de Dic. de 2019
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
el 24 de Dic. de 2019
Sean de Wolski
el 24 de Dic. de 2019
Just confirmed it works in 19a as well so was apparently added then.
Categorías
Más información sobre Adding custom doc en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
