Why does web('name.html','-new') open the html-file in the Help browser?
Ältere Kommentare anzeigen
Experiments with R2018b show that
- web('name.html','-new') honors the Matlab documentation and displays 'name.html' in the Matlab Web Browser only when there doesn't exist an info.xml that points to the folder of 'name.html'.
- when there exists an info.xml that points to the folder of 'name.html', web('name.html','-new') displays 'name.html' in the Matlab Help Browser
Questions:
- The behavior that web() dispays in the Help browser is that a bug or a poorly documented feature?
- Is there a way to force web() to always display in the Matlab Web Browser?
4 Kommentare
Mohammad Sami
am 18 Sep. 2020
It seems the web function checks if the help file is a demo or part of toolbox.
edit web.m
You can perhaps see the internal implementation of the web function.
% line 112. (R2020a)
% Redirect links to old demo pages to corresponding Examples pages.
[redirect,mapfile,topic] = helpUtils.checkForDemoRedirect(html_file);
You may have to make a copy and modify the copy to force it to open in Matlab Web Browser.
Harry Dymond
am 18 Sep. 2020
Bearbeitet: Harry Dymond
am 18 Sep. 2020
Hi there,
Thanks for highlighting this issue. Please could you provide more details on what exactly is the content of the "info.xml" file, and where it is located, relative to the .html file?
Edit - sorry, I didn't see that your first mention of info.xml is actually a link that explains more.
Perhaps I'm missing something, but isn't the whole point of info.xml to make .html pages open in the help browser? Or are you saying that you feel that the web() function should override what the .xml is instructing MATLAB to do?
per isakson
am 18 Sep. 2020
per isakson
am 19 Sep. 2020
Antworten (0)
Kategorien
Mehr zu Web Services finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!