Skip to content

Commit

Permalink
Add file to git in new location.
Browse files Browse the repository at this point in the history
  • Loading branch information
pablorcum committed Apr 15, 2024
1 parent b0fb934 commit 9290c07
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions toolbox/html/openBossdeviceDoc.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
function openBossdeviceDoc
%OPENBOSSDEVICEDOC Open the bossdevice documentation
% Prompts user to build HTML documentation if not available or open doc sources

thisFolder = fileparts(which(mfilename));
docInit = fullfile(thisFolder,'bossdevice_api_landing_page.html');

if ~exist(docInit,'file')
answer = questdlg('HTML documentation was not found. Do you want to build it from sources now or open the doc sources directly?',...
'HTML documentation not found',...
'Build HTML doc','Open doc sources','Cancel','Open doc sources');
switch answer
case 'Build HTML doc'
buildDoc;
openDoc = true;
case 'Open doc sources'
open('docSource/bossdevice_api_landing_page.mlx');
openDoc = false;
case 'Cancel'
openDoc = false;
end
else
openDoc = true;
end

if openDoc
web(docInit);
end

end

0 comments on commit 9290c07

Please sign in to comment.