Why does web('name.html','-new') open the html-file in the Help browser?
Mostrar comentarios más antiguos
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 comentarios
Mohammad Sami
el 18 de Sept. de 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
el 18 de Sept. de 2020
Editada: Harry Dymond
el 18 de Sept. de 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
el 18 de Sept. de 2020
per isakson
el 19 de Sept. de 2020
Respuestas (0)
Categorías
Más información sobre Web Services 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!