Skip to content
Snippets Groups Projects
Select Git revision
  • 782437e1d46d264123419db4a518772b0a773e8b
  • master default protected
  • updateOptitrackToNatNet3
  • develop
  • feature/pigeon-udfa
  • changes-pc-rar2
  • feature/update-cdisp
  • ita-fileformat-cleanup
  • switchFromSerialToSerialport
  • ma23-mika
  • subjectOrientationFeedback
  • feature/iem_dynamic_auralization
  • feature/individualizeHRTFbyITD
  • features/hoa-decoders
  • jst
  • ahe
  • ahe_local
  • feature/changeItaCoordinatesElevationAndAzimuthFromDegreesToRadians
  • 35-output-measurement-chain-calibration
  • bugfix/midi
  • feature/propagation_models protected
  • pynamic-v0.0.1
  • paper_linking_atmospheric_urban_auralization
  • documentationFix
  • Last-SVN-Commit
25 results

ita_generate_documentation.m

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ita_generate_documentation.m 3.38 KiB
    function ita_generate_documentation(varargin)
    %ITA_GENERATE_DOCUMENTATION - Generate Toolbox Help
    %  This function automatically generated the html help used for the Toolbox
    %
    %   See also help, doc, helpdesk, ita_toolbox_setup.
    %
    %   Reference page in Help browser
    %        <a href="matlab:doc ita_generate_documentation">doc ita_generate_documentation</a>
    
    % <ITA-Toolbox>
    % This file is part of the application HTMLhelp for the ITA-Toolbox. All rights reserved.
    % You can find the license for this m-file in the application folder.
    % </ITA-Toolbox>
    
    %
    % Author: Pascal Dietrich -- Email: pdi@akustik.rwth-aachen.de
    % Created:  17-Apr-2009
    % Edited: 18-May-2012 Tumbr�gel
    
    
    % pdi not for preferences
    sArgs = struct('rootpath',ita_toolbox_path);
    sArgs = ita_parse_arguments(sArgs,varargin);
    
    currentDir = pwd;
    
    %generate helpbrowser html files - Tumbr�gel 05/2012:
    ita_generate_helpOverview(sArgs.rootpath); 
    
    cd(sArgs.rootpath)
    %% Get folders for m2html
    ignoreList  = {'.svn', ...
                   '.git', ...
                   'private', ...
                   'tmp', ...
                   'prop-base', ...
                   'props', ...
                   'text-base', ...
                   'template', ...
                   'doc', ...
                   'GuiCallbacks', ...
                   'external_packages', ...
                   'ExternalPackages'};
    pathStr = genpath(sArgs.rootpath);
    prefixToolbox = fliplr(strtok(fliplr(sArgs.rootpath),filesep)); %get Toolbox folder name
    
    outpathStr  = [];
    outpathList = [];
    tokenIdx    = [0 strfind(pathStr,pathsep)];
    
    for idx=1:(length(tokenIdx)-1)
       tokenCell{idx} = pathStr(tokenIdx(idx)+1:tokenIdx(idx+1)-1); %get single folder name
       isIgnore = false;
       for ignIdx = 1:length(ignoreList)
           foundIdx     = strfind(tokenCell{idx},ignoreList{ignIdx}); %folder in ignore list?
           isIgnore     = ~isempty(foundIdx) || isIgnore;
        end
       if ~isIgnore %add string token
           outpathStr   = [outpathStr,pathsep,tokenCell{idx}]; %#ok<*AGROW>
           idxITA = strfind(tokenCell{idx},prefixToolbox); %pdi
           outpathList  = [outpathList; {tokenCell{idx}(idxITA:end)}]; % make path relative
       end  
    end
    
    % delete old one first
    graphInst = ita_preferences('isGraphVizInstalled');
    
    if ischar(graphInst), graphInst = str2double(graphInst); end;
    
    %% ignorelist -- doc - guicallbacks - externalpackages