Changeset 411


Ignore:
Timestamp:
11/09/09 17:51:40 (14 years ago)
Author:
pinsard
Message:

correction for wiki links

Location:
trunk/SRC/Documentation/xmldoc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/xmldoc/linkwiki.sed

    r351 r411  
    1 # module : 
     1#+ 
     2# 
     3# module 
     4# ====== 
     5# 
    26# replace html link in wiki link 
    37# 
    4 # update : 
     8# 
     9# TODO 
     10# ==== 
     11# 
     12# images 
     13# 
     14# EVOLUTIONS 
     15# ========== 
     16# 
    517# $Id$ 
    618# 
     19# fplod 20091109T163549Z aedon.locean-ipsl.upmc.fr (Darwin) 
     20# 
     21#  * usage instead of XSL command in saxo_tracwiki.xsl 
     22# 
     23#- 
     24# 
    725# href 
    8 s@href=\"./all_plots.html@href=\"./AllPlots@g 
    9 s@href=\"./faqsaxo.html@href=\"./FaqSaxo@g 
    10 s@href=\"./firststeps.html@href=\"./FirstSteps@g 
    11 s@href=\"./getsaxo.html@href=\"./GetSaxo@g 
    12 s@href=\"./infoupdatecm.html@href=\"./InfoUpdateCm@g 
    13 s@href=\"./infoupdatekwd.html@href=\"./InfoUpdateKwd@g 
    14 s@href=\"./mailing.html@href="./Mailing@g 
    15 s@href=\"./mini_notice.html@href=\"./MiniNotice@g 
    16 s@href=\"./tiplink.html@href=\"./TipLink@g 
    17 s@href=\"./updatesaxo.html@href=\"./UpdateSaxo@g 
    18 s@href=\"./websaxo.html@href=\"./WikiStart@g 
    19 s@href=\"./whatissaxo.html@href=\"./WhatisSaxo@g 
    20 s@href=\"./whatsnew.html@href=\"./WhatsNew@g 
     26s@./all_plots.html@wiki:AllPlots@g 
     27s@./faqsaxo.html@wiki:FaqSaxo@g 
     28s@./firststeps.html@wiki:FirstSteps@g 
     29s@./getsaxo.html@wiki:GetSaxo@g 
     30s@./infoupdatecm.html@wiki:InfoUpdateCm@g 
     31s@./infoupdatekwd.html@wiki:InfoUpdateKwd@g 
     32s@./mailing.html@wiki:Mailing@g 
     33s@./mini_notice.html@wiki:MiniNotice@g 
     34s@./tiplink.html@wiki:TipLink@g 
     35s@./updatesaxo.html@wiki:UpdateSaxo@g 
     36s@./websaxo.html@wiki:WikiStart@g 
     37s@./whatissaxo.html@wiki:WhatisSaxo@g 
     38s@./whatsnew.html@wiki:WhatsNew@g 
    2139# 
    2240# src (attachment) 
  • trunk/SRC/Documentation/xmldoc/makefile

    r410 r411  
    130130$(DIRWIKI)/WikiStart : \ 
    131131$(DIRTMP)/websaxo_full.xml \ 
    132 $(DIRSRC)/saxo_tracwiki.xsl 
    133         @xsltproc \ 
    134         --output ginette \ 
    135         $(DIRSRC)/saxo_tracwiki.xsl \ 
    136         $< 
    137         @xsltproc \ 
    138         $(DIRSRC)/saxo_tracwiki.xsl \ 
    139         $< | \ 
     132$(DIRSRC)/saxo_tracwiki.xsl \ 
     133$(DIRSRC)/linkwiki.sed 
     134        @xsltproc \ 
     135        $(DIRSRC)/saxo_tracwiki.xsl \ 
     136        $< | \ 
     137        sed -f $(DIRSRC)/linkwiki.sed | \ 
    140138        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    141139        sed -e "s+@star@+ *+" \ 
     
    167165$(DIRWIKI)/SvnBasicCommands : \ 
    168166$(DIRTMP)/svnbasiccommands_full.xml \ 
    169 $(DIRSRC)/saxo_tracwiki.xsl 
    170         @xsltproc \ 
    171         $(DIRSRC)/saxo_tracwiki.xsl \ 
    172         $< | \ 
     167$(DIRSRC)/saxo_tracwiki.xsl \ 
     168$(DIRSRC)/linkwiki.sed 
     169        @xsltproc \ 
     170        $(DIRSRC)/saxo_tracwiki.xsl \ 
     171        $< | \ 
     172        sed -f $(DIRSRC)/linkwiki.sed | \ 
    173173        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    174174        sed -e "s+@star@+*+" \ 
     
    200200$(DIRWIKI)/FaqSaxo : \ 
    201201$(DIRTMP)/faqsaxo_full.xml \ 
    202 $(DIRSRC)/saxo_tracwiki.xsl 
    203         @xsltproc \ 
    204         $(DIRSRC)/saxo_tracwiki.xsl \ 
    205         $< | \ 
     202$(DIRSRC)/saxo_tracwiki.xsl \ 
     203$(DIRSRC)/linkwiki.sed 
     204        @xsltproc \ 
     205        $(DIRSRC)/saxo_tracwiki.xsl \ 
     206        $< | \ 
     207        sed -f $(DIRSRC)/linkwiki.sed | \ 
    206208        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    207209        sed -e "s+@star@+*+" \ 
     
    233235$(DIRWIKI)/GetSaxo : \ 
    234236$(DIRTMP)/getsaxo_full.xml \ 
    235 $(DIRSRC)/saxo_tracwiki.xsl 
    236         @xsltproc \ 
    237         $(DIRSRC)/saxo_tracwiki.xsl \ 
    238         $< | \ 
     237$(DIRSRC)/saxo_tracwiki.xsl \ 
     238$(DIRSRC)/linkwiki.sed 
     239        @xsltproc \ 
     240        $(DIRSRC)/saxo_tracwiki.xsl \ 
     241        $< | \ 
     242        sed -f $(DIRSRC)/linkwiki.sed | \ 
    239243        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    240244        sed -e "s+@star@+*+" \ 
     
    271275$(DIRWIKI)/FirstSteps : \ 
    272276$(DIRTMP)/firststeps_full.xml \ 
    273 $(DIRSRC)/saxo_tracwiki.xsl 
    274         @xsltproc \ 
    275         $(DIRSRC)/saxo_tracwiki.xsl \ 
    276         $< | \ 
     277$(DIRSRC)/saxo_tracwiki.xsl \ 
     278$(DIRSRC)/linkwiki.sed 
     279        @xsltproc \ 
     280        $(DIRSRC)/saxo_tracwiki.xsl \ 
     281        $< | \ 
     282        sed -f $(DIRSRC)/linkwiki.sed | \ 
    277283        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    278284        sed -e "s+@star@+*+" \ 
     
    295301$(DIRWIKI)/AllPlots : \ 
    296302$(DIRTMP)/all_plots.xml \ 
    297 $(DIRSRC)/saxo_tracwiki.xsl 
    298         @xsltproc \ 
    299         $(DIRSRC)/saxo_tracwiki.xsl \ 
    300         $< | \ 
     303$(DIRSRC)/saxo_tracwiki.xsl \ 
     304$(DIRSRC)/linkwiki.sed 
     305        @xsltproc \ 
     306        $(DIRSRC)/saxo_tracwiki.xsl \ 
     307        $< | \ 
     308        sed -f $(DIRSRC)/linkwiki.sed | \ 
    301309        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    302310        sed -e "s+@star@+*+" \ 
     
    342350$(DIRWIKI)/Mailing : \ 
    343351$(DIRTMP)/mailing_full.xml \ 
    344 $(DIRSRC)/saxo_tracwiki.xsl 
    345         @xsltproc \ 
    346         $(DIRSRC)/saxo_tracwiki.xsl \ 
    347         $< | \ 
     352$(DIRSRC)/saxo_tracwiki.xsl \ 
     353$(DIRSRC)/linkwiki.sed 
     354        @xsltproc \ 
     355        $(DIRSRC)/saxo_tracwiki.xsl \ 
     356        $< | \ 
     357        sed -f $(DIRSRC)/linkwiki.sed | \ 
    348358        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    349359        sed -e "s+@star@+*+" \ 
     
    375385$(DIRWIKI)/MiniNotice : \ 
    376386$(DIRTMP)/mini_notice_full.xml \ 
    377 $(DIRSRC)/saxo_tracwiki.xsl 
    378         @xsltproc \ 
    379         $(DIRSRC)/saxo_tracwiki.xsl \ 
    380         $< | \ 
     387$(DIRSRC)/saxo_tracwiki.xsl \ 
     388$(DIRSRC)/linkwiki.sed 
     389        @xsltproc \ 
     390        $(DIRSRC)/saxo_tracwiki.xsl \ 
     391        $< | \ 
     392        sed -f $(DIRSRC)/linkwiki.sed | \ 
    381393        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    382394        sed -e "s+@star@+*+" \ 
     
    410422$(DIRWIKI)/TipLink : \ 
    411423$(DIRTMP)/tiplink_full.xml \ 
    412 $(DIRSRC)/saxo_tracwiki.xsl 
    413         @xsltproc \ 
    414         $(DIRSRC)/saxo_tracwiki.xsl \ 
    415         $< | \ 
     424$(DIRSRC)/saxo_tracwiki.xsl \ 
     425$(DIRSRC)/linkwiki.sed 
     426        @xsltproc \ 
     427        $(DIRSRC)/saxo_tracwiki.xsl \ 
     428        $< | \ 
     429        sed -f $(DIRSRC)/linkwiki.sed | \ 
    416430        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    417431        sed -e "s+@star@+*+" \ 
     
    443457$(DIRWIKI)/InfoUpdateCm : \ 
    444458$(DIRTMP)/infoupdatecm_full.xml \ 
    445 $(DIRSRC)/saxo_tracwiki.xsl 
    446         @xsltproc \ 
    447         $(DIRSRC)/saxo_tracwiki.xsl \ 
    448         $< | \ 
     459$(DIRSRC)/saxo_tracwiki.xsl \ 
     460$(DIRSRC)/linkwiki.sed 
     461        @xsltproc \ 
     462        $(DIRSRC)/saxo_tracwiki.xsl \ 
     463        $< | \ 
     464        sed -f $(DIRSRC)/linkwiki.sed | \ 
    449465        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    450466        sed -e "s+@star@+*+" \ 
     
    477493$(DIRWIKI)/InfoUpdateKwd : \ 
    478494$(DIRTMP)/infoupdatekwd_full.xml \ 
    479 $(DIRSRC)/saxo_tracwiki.xsl 
    480         @xsltproc \ 
    481         $(DIRSRC)/saxo_tracwiki.xsl \ 
    482         $< | \ 
     495$(DIRSRC)/saxo_tracwiki.xsl \ 
     496$(DIRSRC)/linkwiki.sed 
     497        @xsltproc \ 
     498        $(DIRSRC)/saxo_tracwiki.xsl \ 
     499        $< | \ 
     500        sed -f $(DIRSRC)/linkwiki.sed | \ 
    483501        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    484502        sed -e "s+@star@+*+" \ 
     
    528546$(DIRWIKI)/WhatisSaxo : \ 
    529547$(DIRTMP)/whatissaxo_full.xml \ 
    530 $(DIRSRC)/saxo_tracwiki.xsl 
    531         @xsltproc \ 
    532         $(DIRSRC)/saxo_tracwiki.xsl \ 
    533         $< | \ 
     548$(DIRSRC)/saxo_tracwiki.xsl \ 
     549$(DIRSRC)/linkwiki.sed 
     550        @xsltproc \ 
     551        $(DIRSRC)/saxo_tracwiki.xsl \ 
     552        $< | \ 
     553        sed -f $(DIRSRC)/linkwiki.sed | \ 
    534554        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    535555        sed -e "s+@star@+*+" \ 
     
    561581$(DIRWIKI)/WhatsNew : \ 
    562582$(DIRTMP)/whatsnew_full.xml \ 
    563 $(DIRSRC)/saxo_tracwiki.xsl 
    564         @xsltproc \ 
    565         $(DIRSRC)/saxo_tracwiki.xsl \ 
    566         $< | \ 
     583$(DIRSRC)/saxo_tracwiki.xsl \ 
     584$(DIRSRC)/linkwiki.sed 
     585        @xsltproc \ 
     586        $(DIRSRC)/saxo_tracwiki.xsl \ 
     587        $< | \ 
     588        sed -f $(DIRSRC)/linkwiki.sed | \ 
    567589        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    568590        sed -e "s+@star@+*+" \ 
     
    594616$(DIRWIKI)/UpdateSaxo : \ 
    595617$(DIRTMP)/updatesaxo_full.xml \ 
    596 $(DIRSRC)/saxo_tracwiki.xsl 
    597         @xsltproc \ 
    598         $(DIRSRC)/saxo_tracwiki.xsl \ 
    599         $< | \ 
     618$(DIRSRC)/saxo_tracwiki.xsl \ 
     619$(DIRSRC)/linkwiki.sed 
     620        @xsltproc \ 
     621        $(DIRSRC)/saxo_tracwiki.xsl \ 
     622        $< | \ 
     623        sed -f $(DIRSRC)/linkwiki.sed | \ 
    600624        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    601625        sed -e "s+@star@+*+" \ 
  • trunk/SRC/Documentation/xmldoc/savesaxo.sh

    r382 r411  
    214214then 
    215215# 
    216 # redo the html files 
     216# redo the HTML files 
    217217# 
    218218    cd ${memopwd} 
     
    224224then 
    225225# 
    226 # redo the html files 
     226# redo the WIKI files 
    227227# 
    228228    cd ${memopwd} 
  • trunk/SRC/Documentation/xmldoc/saxo_tracwiki.xsl

    r376 r411  
    77version="1.0"> 
    88<!-- 
    9 module : 
     9 
     10module 
     11====== 
     12 
    1013transformation docbook en un tracwiki  
    1114 
    12 original location : 
    13 /Users/fplod/SAXO_DIR_ws/SRC/Documentation/xmldoc/saxo_trackwiki.xsl sur aedon.locean-ipsl.upmc.fr 
    14  
    15 must be followed by awk -f saxo_trackwiki.awk 
     15CAUTIONS 
     16======== 
     17 
     18must be followed by : 
     19 awk -f saxo_trackwiki.awk 
     20 
    1621because I did not yet correctly handle "* text" (with no linefeed) 
    1722 
    18 update : 
     23 
     24and 
     25 
     26 sed -f linkwiki.sed 
     27 
     28TODO 
     29==== 
     30 
     31++ voir http://trac-hacks.org/wiki/XsltMacro 
     32 
     33++ add menu tags menuchoice, gui*, shortcut, keycombo, etc. 
     34 
     35++ revoir lien idldoc trop lié à SAXO 
     36 
     37EVOLUTIONS 
     38========== 
     39 
    1940$Id$ 
    20 ++ voir http://trac-hacks.org/wiki/XsltMacro 
    21 ++ add menu tags menuchoice, gui*, shortcut, keycombo, etc. 
     41 
     42- fplod 20091109T164603Z aedon.locean-ipsl.upmc.fr (Darwin) 
     43 
     44  * remove wiki link transformations (see linkwiki.sed) 
     45    to be usable within other IDL toolbox like POST_IT 
     46 
    2247fplod 2008-08-06T09:38:26Z aedon.locean-ipsl.upmc.fr (Darwin) 
    2348add qanda tags (see ugly http://forge.ipsl.jussieu.fr/saxo/wiki/FaqSaxo 
     
    221246<xsl:template match="d:itemizedlist/d:listitem/d:simpara/d:link[@xl:href]"> 
    222247 <xsl:text>&#xA;</xsl:text> 
    223  <xsl:text> [</xsl:text><xsl:value-of select="@xl:href"/> <xsl:text> </xsl:text><xsl:value-of select="."/> <xsl:text>]</xsl:text> 
     248 <xsl:text> [</xsl:text><xsl:value-of select="@xl:href"/> <xsl:text>AAA </xsl:text><xsl:value-of select="."/><xsl:text>]</xsl:text> 
    224249</xsl:template> 
    225250 
     
    231256<xsl:template match="d:variablelist/d:varlistentry/d:listitem/d:simpara/d:link[@xl:href]"> 
    232257 <xsl:text>&#xA;</xsl:text> 
    233  <xsl:text> [</xsl:text><xsl:value-of select="@xl:href"/> <xsl:text> </xsl:text><xsl:value-of select="."/> <xsl:text>]</xsl:text> 
     258 <xsl:text> [</xsl:text><xsl:value-of select="@xl:href"/> <xsl:text>BBB </xsl:text><xsl:value-of select="."/><xsl:text>]</xsl:text> 
    234259</xsl:template> 
    235260 
     
    252277<xsl:template match="d:link[@xl:href]"> 
    253278<xsl:variable name="link"> 
    254  <xsl:choose> 
    255   <xsl:when test="contains(@xl:href,'firststeps.html')"> 
    256    <xsl:text>wiki:FirstSteps</xsl:text> 
    257   </xsl:when> 
    258   <xsl:when test="contains(@xl:href,'all_plots.html')"> 
    259    <xsl:text>wiki:AllPlots</xsl:text> 
    260   </xsl:when> 
    261   <xsl:when test="contains(@xl:href,'faqsaxo.html')"> 
    262    <xsl:text>wiki:FaqSaxo</xsl:text> 
    263   </xsl:when> 
    264   <xsl:when test="contains(@xl:href,'getsaxo.html')"> 
    265    <xsl:text>wiki:GetSaxo</xsl:text> 
    266   </xsl:when> 
    267   <xsl:when test="contains(@xl:href,'infoupdatecm.html')"> 
    268    <xsl:text>wiki:InfoUpdateCm</xsl:text> 
    269   </xsl:when> 
    270   <xsl:when test="contains(@xl:href,'infoupdatekwd.html')"> 
    271    <xsl:text>wiki:InfoUpdateKwd</xsl:text> 
    272   </xsl:when> 
    273   <xsl:when test="contains(@xl:href,'mailing.html')"> 
    274    <xsl:text>wiki:Mailing</xsl:text> 
    275   </xsl:when> 
    276   <xsl:when test="contains(@xl:href,'mini_notice.html')"> 
    277    <xsl:text>wiki:MiniNotice</xsl:text> 
    278   </xsl:when> 
    279   <xsl:when test="contains(@xl:href,'tiplink.html')"> 
    280    <xsl:text>wiki:TipLink</xsl:text> 
    281   </xsl:when> 
    282   <xsl:when test="contains(@xl:href,'updatesaxo.html')"> 
    283    <xsl:text>wiki:UpdateSaxo</xsl:text> 
    284   </xsl:when> 
    285   <xsl:when test="contains(@xl:href,'whatissaxo.html')"> 
    286    <xsl:text>wiki:WhatisSaxo</xsl:text> 
    287   </xsl:when> 
    288   <xsl:when test="contains(@xl:href,'whatsnew.html')"> 
    289    <xsl:text>wiki:WhatsNew</xsl:text> 
    290   </xsl:when> 
    291   <xsl:when test="contains(@xl:href,'websaxo.html')"> 
    292    <xsl:text>wiki:WikiStart</xsl:text> 
    293   </xsl:when> 
     279  <xsl:choose> 
    294280  <xsl:when test="contains(@xl:href,'../../')"> 
    295281   <xsl:text>source:/trunk/SRC/</xsl:text><xsl:value-of select="substring-after(@xl:href,'../../')"/> 
     
    317303 
    318304<xsl:template match="d:email"> 
    319 <xsl:text>[mailto:</xsl:text><xsl:value-of select="."/> <xsl:text> </xsl:text><xsl:value-of select="."/> <xsl:text>]</xsl:text> 
     305<xsl:text>[mailto:</xsl:text><xsl:value-of select="."/> <xsl:text>DDD </xsl:text><xsl:value-of select="."/> <xsl:text>]</xsl:text> 
    320306</xsl:template> 
    321307 
Note: See TracChangeset for help on using the changeset viewer.