Changeset 694

Show
Ignore:
Timestamp:
09/07/10 19:33:35 (21 months ago)
Author:
mgalloy
Message:

Draft of reference manual complete.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/reference/idldoc-reference.rst

    r693 r694  
    187187.. table:: rst format style tag attributes 
    188188 
    189   =============== ================= ========================================== 
    190   Attribute name  Syntax            Description 
    191   =============== ================= ========================================== 
    192   in              in                indicates the parameter is an input 
    193   out             out               indicates the parameter is an output 
    194   optional        optional          indicates argument is optional 
    195   private         private           indicates argument is not shown if IDLdoc  
    196                                     is run in user mode (`USER` keyword to  
    197                                     IDLdoc is set) 
    198   hidden          hidden            indicates the argument is not to be shown 
    199   required            required          indicates argument is required 
    200   type            type=comments     IDL data type of the argument 
    201   default         default=comments  default value of the argument 
    202   =============== ================= ========================================== 
     189  =============== ==================== ======================================= 
     190  Attribute name  Syntax               Description 
     191  =============== ==================== ======================================= 
     192  in              ``in``               indicates the parameter is an input 
     193  out             ``out``              indicates the parameter is an output 
     194  optional        ``optional``         indicates argument is optional 
     195  private         ``private``          indicates argument is not shown if  
     196                                       IDLdoc is run in user mode (`USER`  
     197                                       keyword to IDLdoc is set) 
     198  hidden          ``hidden``           indicates the argument is not to be  
     199                                       shown 
     200  required            ``required``         indicates argument is required 
     201  type            ``type=comments``    IDL data type of the argument 
     202  default         ``default=comments`` default value of the argument 
     203  =============== ==================== ======================================= 
    203204 
    204205 
     
    353354.. table:: IDLdoc format style tag attributes 
    354355 
    355   =============== ================= ========================================== 
    356   Attribute name  Syntax            Description 
    357   =============== ================= ========================================== 
    358   in              in                indicates the parameter is an input 
    359   out             out               indicates the parameter is an output 
    360   optional        optional          indicates argument is optional 
    361   private         private           indicates argument is not shown if IDLdoc  
    362                                     is run in user mode (`USER` keyword to  
    363                                     IDLdoc is set) 
    364   hidden          hidden            indicates the argument is not to be shown 
    365   required            required          indicates argument is required 
    366   type            type=comments     IDL data type of the argument 
    367   default         default=comments  default value of the argument 
    368   =============== ================= ========================================== 
     356  =============== ==================== ======================================= 
     357  Attribute name  Syntax               Description 
     358  =============== ==================== ======================================= 
     359  in              ``in``               indicates the parameter is an input 
     360  out             ``out``              indicates the parameter is an output 
     361  optional        ``optional``         indicates argument is optional 
     362  private         ``private``          indicates argument is not shown if  
     363                                       IDLdoc is run in user mode (`USER`  
     364                                       keyword to IDLdoc is set) 
     365  hidden          ``hidden``           indicates the argument is not to be  
     366                                       shown 
     367  required            ``required``         indicates argument is required 
     368  type            ``type=comments``    IDL data type of the argument 
     369  default         ``default=comments`` default value of the argument 
     370  =============== ==================== ======================================= 
    369371 
    370372The tags available in an overview file describe the entire library. There are a few tags shared with the file tags and the additional `@dir` tag which provides a simple table of contents for the directories in the library. 
     
    517519                           IDLdoc gets the calling sequence from the routine 
    518520                           declaration 
    519   `category`               TODO: 
    520   `common blocks`          TODO: 
    521   `example`                TODO: 
    522   `inputs`                 TODO: 
    523   `keyword parameters`     TODO: 
    524   `modification history`   TODO: 
     521  `category`               list of comma or period separated categories 
     522  `common blocks`          List common blocks, as in:: 
     523 
     524                             BLOCK1: description. 
     525                              
     526  `example`                list a simple example 
     527  `inputs`                 list positional input parameters here as:: 
     528   
     529                             Param1: describe param1 here 
     530 
     531                             Param2: describe param2 here 
     532                           
     533  `keyword parameters`     document the keyword parameters here, listed as:: 
     534   
     535                             KEY1: key1 description 
     536 
     537                             KEY2: key2 description 
     538                           
     539  `modification history`   list history of modifications to the routine:: 
     540   
     541                             Written by: author name 
     542                             July 1994 Describe modifications done on this  
     543                                       date  
     544 
    525545  `name`                   name of the routine; unneeded since IDLdoc gets 
    526546                           the name of the routine from the routine 
    527547                           declaration 
    528   `optional inputs`        TODO: 
    529   `optional outputs`       TODO: 
    530   `outputs`                TODO: 
    531   `procedure`              TODO: 
    532   `purpose`                TODO: 
    533   `restrictions`           TODO: 
    534   `side effects`           TODO: 
     548  `optional inputs`        list optional input parameters here, like:: 
     549   
     550                             Param3: describe param3 here 
     551 
     552  `optional outputs`       describe the optional outputs here 
     553  `outputs`                documentation of the return value 
     554  `procedure`              describe/cite any algorithms being used in this  
     555                           routine 
     556  `purpose`                main description of the routine 
     557  `restrictions`           describe restrictions 
     558  `side effects`           describe side effects 
    535559  ======================== ================================================== 
    536560 
     
    567591The output produced by IDLdoc can be customized by modifying the template files provides in the `templates/` directory of the IDLdoc distribution. 
    568592 
    569 TODO: template description 
    570  
    571 TODO: new output type 
    572  
     593Instead of modifying the existing templates, it is best to copy the templates and specify their location with the `TEMPLATE_LOCATION` keyword to `IDLDOC`. If you have multiple template families, the `TEMPLATE_PREFIX` keyword can be used to specify a string that prefixes each filename of the template family. For example, IDLdoc itself uses the "latex-" prefix to specify the templates used to produce LaTeX output. 
     594 
     595If IDLdoc is intended to produce some type of output besides HTML, the `COMMENT_STYLE` keyword must be used to specify the engine to produce that type of output. For example, IDLdoc provides the "latex" comment style to produce LaTeX output. Creating new comment style engines is beyond the scope of this reference guide.