3 %> @brief Calls browser with Doxygen help
for prefix
5 %> MATLAB web browser is absolutely crap! Doxygen 1.7.4 does not use frames anymore and has lots of JavaScript when its advanced options are set.
6 %> However, even turning all JavaScript off, MATLAB web browser still fails to produce a decent rendering of Doxygen help.
8 %> Therefore, will open help in external browser! Windows users shouldn
't have any problem. I had a problem in
9 %> Linux with starting Firefox, but using NetSurf it worked fine (although NetSurf does not support JavaScript).
11 %> MATLAB external browser is configurable at File->Preferences...->Web
12 function help2(prefix)
20 if nargin < 1 || isempty(prefix)
23 [~, prefix] = fileparts(prefix);
24 prefix = strrep(prefix, '_
', '__
'); % Doxygen replaces all underscores with double underscores
26 url = [PATH.doc, '/html/
', prefix, '_8m.html
'];
28 % % dd = dir(fullfile(PATH.doc, 'html
', [prefix '*.html
']));
30 % % url = fullfile(PATH.doc, 'html
', dd(1).name);
32 % % % web(url, '-browser
');
34 % % % irverbose('Opened help page in system web browser
', 3);
36 % % % irverbose('Could not launch system web browser,
using MATLAB browser
', 3);
37 % % % irverbose('Could not launch system web browser,
using MATLAB browser
', 3);
41 % % answer = questdlg(sprintf('No help found
for ''%s
''. Would you like to open IRoot main help page?
', prefix), 'Help
', 'Yes
', 'No
', 'Yes
');
50 url = [PATH.doc, '/html/index.html
'];
54 stat = web(url, '-browser
', '-
new');
56 irverbose(['Launched URL
"', url, '" in external browser
', 0]);
58 inputdlg('Couldn
''t start web browser. Please manually paste the following URL into your web browser:
', 'Error
', 1, {url});