0001 function updateDocumentation()
0002
0003
0004
0005
0006
0007
0008
0009 ravenDir=findRAVENroot();
0010
0011 path(fullfile(ravenDir,'software','m2html'),path);
0012
0013
0014
0015 ravenDirs=dir(fullfile(ravenDir,'**/*.m'));
0016 ravenDirs=unique({ravenDirs.folder})';
0017
0018
0019 ravenDirs(startsWith(ravenDirs,strcat(ravenDir,filesep,'software')))=[];
0020 ravenDirs(startsWith(ravenDirs,strcat(ravenDir,filesep,'legacy',filesep,'software')))=[];
0021
0022
0023 if exist(fullfile(ravenDir,'external','kegg','keggModel.mat'), 'file') == 2
0024 delete(fullfile(ravenDir,'external','kegg','keggModel.mat'));
0025 end
0026
0027
0028 rmdir(fullfile(ravenDir,'doc'),'s');
0029
0030
0031 relStart = numel(ravenDir)+2;
0032 for i=1:numel(ravenDirs)
0033 ravenDirs{i,1} = ravenDirs{i,1}(relStart:end);
0034 end
0035
0036
0037 originalDir=pwd;
0038 cd(ravenDir);
0039
0040 m2html('mFiles',ravenDirs,'htmldir','doc');
0041
0042 cd(originalDir);
0043
0044 end