Ignore:
Timestamp:
08/29/06 14:59:46 (18 years ago)
Author:
navarro
Message:

header improvements : type of parameters and keywords, default values, spell checking + idldoc assistant (IDL online_help)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/xmldoc/savesaxo.sh

    r159 r163  
    33# update : 
    44# $Id$ 
     5# snlod/fplod 2006-08-25T08:30:36Z electre.locean-ipsl.upmc.fr (Darwin) 
     6# add for idldoc assistant 
    57# fplod 2006-08-17T09:19:06Z aedon.locean-ipsl.upmc.fr (Darwin) 
    68# add transformation after idldoc to force non-proportionnal font 
    79# on bloc delimited by 
    8 # ; <fixe> 
    9 # ; </fixe> 
     10# <fixe> 
     11# </fixe> 
    1012# in .pro files (with modification of css) 
    1113# !! do not replace \ by \\ inside this block 
     
    5658set -u 
    5759# 
    58 docompileall=1 
     60docompileall=0 
    5961dohtml=0 
    6062dooldtest=0 
    6163doidlwavedoc=0 
    62 doidldoc_html=0 
    63 doidldoc_assistant=0 
     64doidldoc_html=1 
     65doidldoc_assistant=1 
    6466doTARsrc=0 
    6567doTARdata=0 
     
    198200idldoc,root="../../",title="SAXO Documentation", $ 
    199201LOG_FILE="${log}", $ 
    200 output="${output}", /preformat, /embed 
     202output="${output}", $ 
     203overview="../../overview", /statistics, /preformat, /embed 
    201204exit 
    202205EOF 
     
    244247     -e 's@<div class="value">@<div class="preformat">@' \ 
    245248     -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 
    246      -e 's@^; <fixe>@<p class="preformat">@' \ 
    247      -e 's@^; </fixe>@</p>@' \ 
     249     -e 's@^ <fixe>@<p class="preformat">@' \ 
     250     -e 's@^ </fixe>@</p>@' \ 
    248251     -e '/Main styles/r /tmp/css_modification' \ 
    249252     ${file_html} > ${file_html}_modify 
     
    263266    echo "iii : you can see log file in ${log}" 
    264267    echo "iii : and look ${output}/idldoc-warnings.html#undoc" 
    265     exit 1 
    266268fi 
    267269#------------------------------------------------------------------ 
     
    269271then 
    270272# 
    271     echo "eee : pas encore ecrit" 
    272     exit 1 
     273    # build a idl file to launch idldoc 
     274    output=../idldoc_assistant_output/ 
     275    log="/tmp/idldocassistant_${$}.log" 
     276    pro="/tmp/idldocassistant_${$}.pro" 
     277    cat <<EOF > ${pro} 
     278!path = expand_path('+' + '../idldoc/') 
     279print,!path 
     280idldoc,root="../../",title="SAXO Documentation Assistant", $ 
     281LOG_FILE="${log}", $ 
     282output="${output}", overview='../../overview', /statistics, /preformat, /embed, /assistant 
     283exit 
     284EOF 
     285    # launch idl with the file built above 
     286    IDL_STARTUP=${pro};${IDL_DIR}/bin/idl 
     287    /bin/rm ${pro} 
     288    # In order to do not have to many revision in svn, we modify some 
     289    # lines produced by idldoc : 
     290    # examples : 
     291    # <!-- Generated by IDLdoc 2.0 on Wed Jun  7 10:25:28 2006 --> 
     292    # will be replaced by 
     293    # <!-- Generated by IDLdoc 2.0 --> 
     294    # <div id="tagline">Produced by IDLdoc 2.0 on Wed Jun  7 10:54:37 2006.</div 
     295    # will be replaced by 
     296    # <div id="tagline">Produced by IDLdoc 2.0</div> 
     297    # <h2>Produced on Wed Jun  7 10:23:13 2006</h2> 
     298    # will be delete  
     299    # other lines will be deleted because the time is the time of checkout not  
     300    # the time of revision. 
     301    # the sequence of lines 
     302    #<dl> 
     303    #      <dt>Last modification:</dt> 
     304    #       <dd>Fri Jun  2 11:46:24 2006</dd> 
     305    #    </dl> 
     306    # should also be removed ++ je ne sais pas dire en sed la ligne 
     307    # suivant l'occurence de Last modification 
     308    # replace *_param_* in href attributes because anchors are badly written 
     309    # with _keyword_ 
     310    #++ -e 's@\(href="#_.*\)\(_param_\)\(.*"\)@\1_keyword_\3@g' \ # ++ pb global 
     311    # DON'T add here (in assistant idldoc output) ?format=raw to link because 
     312    #  ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path    # won't work 
     313    list_html=$(find ${output} -name "*.html") 
     314    for file_html in ${list_html} 
     315    do 
     316     sed \ 
     317     -e "s/\(Generated by IDLdoc 2.0\)\( on .*\)\( -->\)/\1\3/" \ 
     318     -e "s/\(Produced by IDLdoc 2.0\)\( on .*\)\(\.<\/div>\)/\1\3/" \ 
     319     -e "/<h2>Produced on/d" \ 
     320     -e "/Last modification:/d" \ 
     321     -e "/<dd>... ... .* ..:..:.. ....<\/dd>/d" \ 
     322     -e '/href/s@_param_@_keyword_@g' \ 
     323     -e 's@<div class="value">@<div class="preformat">@' \ 
     324     -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 
     325     -e 's@^ <fixe>@<pre style="font-family: Courier;">@' \ 
     326     -e 's@^ </fixe>@</pre>@' \ 
     327     ${file_html} > ${file_html}_modify 
     328     mv ${file_html}_modify ${file_html} 
     329    done 
     330    echo "iii : you can see log file in ${log}" 
     331    echo "iii : and look ${output}/idldoc-warnings.html#undoc" 
    273332fi 
    274333#------------------------------------------------------------------ 
Note: See TracChangeset for help on using the changeset viewer.