Skip to content

Commit 9290c07

Browse files
committed
Add file to git in new location.
1 parent b0fb934 commit 9290c07

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

toolbox/html/openBossdeviceDoc.m

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
function openBossdeviceDoc
2+
%OPENBOSSDEVICEDOC Open the bossdevice documentation
3+
% Prompts user to build HTML documentation if not available or open doc sources
4+
5+
thisFolder = fileparts(which(mfilename));
6+
docInit = fullfile(thisFolder,'bossdevice_api_landing_page.html');
7+
8+
if ~exist(docInit,'file')
9+
answer = questdlg('HTML documentation was not found. Do you want to build it from sources now or open the doc sources directly?',...
10+
'HTML documentation not found',...
11+
'Build HTML doc','Open doc sources','Cancel','Open doc sources');
12+
switch answer
13+
case 'Build HTML doc'
14+
buildDoc;
15+
openDoc = true;
16+
case 'Open doc sources'
17+
open('docSource/bossdevice_api_landing_page.mlx');
18+
openDoc = false;
19+
case 'Cancel'
20+
openDoc = false;
21+
end
22+
else
23+
openDoc = true;
24+
end
25+
26+
if openDoc
27+
web(docInit);
28+
end
29+
30+
end

0 commit comments

Comments
 (0)