-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish_html_docs.m
More file actions
47 lines (38 loc) · 1.56 KB
/
publish_html_docs.m
File metadata and controls
47 lines (38 loc) · 1.56 KB
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
47
global testRun
close all
testRun = true;
oclPath = fileparts(which('ocl'));
assert( exist(fullfile(oclPath,'.git'), 'dir') > 0, 'Only works for a git repo version of OpenOCL. Remove other ocl version from path.')
publish('ocl.examples.vanderpol');
close all
publish('ocl.examples.ballandbeam');
close all
publish('ocl.examples.cartpole');
close all
publish('ocl.examples.racecar');
close all
publish('ocl.examples.bouncingball');
close all
publish('ocl.examples.pendulum_sim');
close all
publish('ocl.examples.bouncingball_sim');
close all
publish('index');
close all
publish('examples');
close all
copyfile(fullfile(oclPath,'+ocl','+examples','html','*'), 'html')
rmdir(fullfile(oclPath,'+ocl','+examples','html'),'s')
copyfile(fullfile(oclPath,'doc','helptoc.xml'), fullfile('html','helptoc.xml'));
rmdir('docs','s')
copyfile(fullfile('html','*'), 'docs')
rmdir('html','s')
copyfile(fullfile('docs','index.html'), fullfile(oclPath,'doc','index.html'))
copyfile(fullfile('docs','index_01.png'), fullfile(oclPath,'doc','index_01.png'))
copyfile(fullfile('docs','index_02.png'), fullfile(oclPath,'doc','index_02.png'))
copyfile(fullfile('docs','index_03.png'), fullfile(oclPath,'doc','index_03.png'))
copyfile(fullfile('docs','index_04.png'), fullfile(oclPath,'doc','index_04.png'))
copyfile(fullfile('docs','index_05.png'), fullfile(oclPath,'doc','index_05.png'))
copyfile(fullfile('docs','index_06.png'), fullfile(oclPath,'doc','index_06.png'))
copyfile(fullfile('docs','index_07.png'), fullfile(oclPath,'doc','index_07.png'))
testRun = false;