-
Notifications
You must be signed in to change notification settings - Fork 3
/
update_Mcalibrator2_html_docs.m
46 lines (36 loc) · 1.09 KB
/
update_Mcalibrator2_html_docs.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
function update_Mcalibrator2_html_docs()
% Generates/updates Mcalibrator2 html-based documents.
% function update_Mcalibrator2_html_docs()
%
% This function generates/updates html-based documents of Mcalibrator2
%
% [input]
% no input variable
%
% [output]
% New html-baesd documents will be generated in ~/doc/html.
% To read the document, please open ~/doc/html/index.html
% in your browser.
%
%
% Created : "2011-11-02 11:31:48 banh"
% Last Update: "2018-02-01 18:20:48 ban"
% add path to m2html
m2htmlpath=fullfile(fileparts(mfilename('fullpath')),'utils','m2html');
addpath(m2htmlpath);
docpath=fullfile(fileparts(mfilename('fullpath')),'doc','html');
if exist(docpath,'dir'), rmdir(docpath,'s'); end
% generate html-based documents
disp('Updating Mcalibrator2 documents....');
disp(' ');
cdir=pwd;
cd(fileparts(mfilename('fullpath')));
cd('..');
tgt_path={'Mcalibrator2'};
m2html('mfiles',tgt_path,'htmldir',docpath,'recursive','on','globalHypertextLinks','on');
disp(' ');
disp('completed.');
cd(cdir);
% remove path to m2html
rmpath(m2htmlpath);
return