source: prextra/helptohtml.m @ 113

Last change on this file since 113 was 14, checked in by bduin, 13 years ago

help-to-html commands added

File size: 736 bytes
Line 
1%HELPTOHTML
2%
3%   HELPTOHTML(TOOLBOX,DIR)
4%
5% Converts the help text of TOOLBOX, provided it is PRLab format, into html
6% and stores them in DIR.
7%
8% Defaults: prtools, /data/franklin/httpd/prtools/html/prhtml
9
10function helptohtml(toolbox,dirname)
11
12if nargin < 2, dirname = []; end
13if nargin < 1, toolbox = 'prtools'; end
14
15actdir = cd;
16
17switch toolbox
18        case 'prtools'
19                if isempty(dirname)
20                        if isunix
21                                dirname = '/data/franklin/httpd/prtools/html/prhtml';
22                        elseif ispc
23                                dirname = 's:/prt/prhtml';
24                        end
25                end
26                cd(dirname)
27                prhelp2html;
28                prcontent2html('prtools');
29               
30        otherwise
31                if ~isempty(dirname)
32                        cd(dirname);
33                        prcontent2html(toolbox);
34                end
35end
36
37cd(actdir)
38
39return
40
41
42
43
Note: See TracBrowser for help on using the repository browser.