Changeset 632

Show
Ignore:
Timestamp:
02/26/10 13:14:41 (2 years ago)
Author:
mgalloy
Message:

Added author, copyright, history, and version tags for overview file in rst and IDLdoc formats.

Location:
trunk/idldoc
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • trunk/idldoc/docs/RELEASE

    r629 r632  
    2626* Added a link in each routine's details to its source code. 
    2727 
    28 * Added a preformatted markup style which is nearly equivalant to verbatim,  
     28* Added a preformatted markup style which is nearly equivalent to verbatim,  
    2929  but also makes HTML output respect line-breaks. 
    3030   
     31* Added author, copyright, history, and version tags to the overview file 
     32 
    3133 
    3234IDLdoc 3.2 
  • trunk/idldoc/Makefile

    r612 r632  
    1414         
    1515doc: 
    16         $(IDL) idldoc_build_docs 
     16        $(IDL) < idldoc_build_docs.pro 
    1717 
    1818book: 
     
    4444        mkdir idldoc-$(VERSION) 
    4545         
    46         $(IDL) -IDL_STARTUP "" idldoc_build 
     46        $(IDL) -IDL_STARTUP "" < idldoc_build.pro 
    4747        mv idldoc.sav idldoc-$(VERSION)/ 
    4848         
     
    7070        rm -rf updates.idldev.com/features/com.idldev.idl.idldoc.feature_$(VERSION)/ 
    7171 
    72         $(IDL) -IDL_STARTUP "" idldoc_build 
     72        $(IDL) -IDL_STARTUP "" < idldoc_build 
    7373 
    7474        mkdir updates.idldev.com/plugins/com.idldev.idl.idldoc_$(VERSION)/ 
  • trunk/idldoc/overview

    r631 r632  
    55   svn co http://svn.idldev.com/idldoc/trunk/idldoc 
    66     
    7 Developer: Michael Galloy (http://michaelgalloy.com) 
    87 
    98IDLdoc project site at:: 
    109 
    11        http://idldev.com 
     10       idldev.com 
    1211 
    1312 
     13:Author: 
     14   Michael Galloy, michaelgalloy.com 
     15 
     16    
    1417:Dirs: 
    1518   ./  
     
    1821   
    1922   analysis 
    20       routines used to proper scaling for the visualization of data in a `.sav1` file 
     23      routines used to proper scaling for the visualization of data in a  
     24      `.sav` file 
    2125       
    2226   cmdline_tools 
    23        
     27      used for the color text output 
    2428       
    2529   collection  
     
    2731       
    2832   dist_tools  
    29       Routines for handling distributing applications (imported from mg library). 
     33      Routines for handling distributing applications (imported from mg  
     34      library). 
    3035       
    3136   dist_tools/collection 
     
    4550       
    4651   textmarkup 
    47       Classes to convert a markup tree to a particular markup language (imported  
    48       from mg library). 
     52      Classes to convert a markup tree to a particular markup language  
     53      (imported from mg library). 
    4954       
    5055   tree 
  • trunk/idldoc/src/doc_system__define.pro

    r629 r632  
    7979    'system': return, self 
    8080     
    81     'idldoc_version': return, self.version 
     81    'idldoc_version': return, self.idldoc_version 
    8282    'charset': return, self.charset 
    8383    'date': return, systime() 
     
    9999    'output_root': return, self.output 
    100100    'relative_root': return, '' 
     101 
     102    'has_author_info': return, self.hasAuthorInfo 
     103     
     104    'has_author': return, obj_valid(self.author) 
     105    'author': return, self->processComments(self.author) 
     106    'plain_author': return, self->processPlainComments(self.author) 
     107 
     108    'has_copyright': return, obj_valid(self.copyright) 
     109    'copyright': return, self->processComments(self.copyright) 
     110     
     111    'has_history': return, obj_valid(self.history) 
     112    'history': return, self->processComments(self.history) 
     113 
     114    'has_version': return, obj_valid(self.version) 
     115    'version': return, self->processComments(self.version) 
    101116         
    102117    'n_dirs': return, self.directories->count() 
     
    292307; Set properties of the system. 
    293308;- 
    294 pro doc_system::setProperty, overview_comments=overviewComments 
     309pro doc_system::setProperty, overview_comments=overviewComments, $ 
     310                             author=author, copyright=copyright, $ 
     311                             history=history, version=version 
    295312  compile_opt strictarr, hidden 
    296313 
     
    298315    self.overviewComments = overviewComments 
    299316  endif 
     317   
     318  ; "author info" attributes 
     319  if (n_elements(author) gt 0) then begin 
     320    self.hasAuthorInfo = 1B 
     321    self.author = author 
     322  endif 
     323 
     324  if (n_elements(copyright) gt 0) then begin 
     325    self.hasAuthorInfo = 1B 
     326    self.copyright = copyright 
     327  endif 
     328   
     329  if (n_elements(history) gt 0) then begin 
     330    self.hasAuthorInfo = 1B 
     331    self.history = history 
     332  endif 
     333 
     334  if (n_elements(version) gt 0) then begin 
     335    self.hasAuthorInfo = 1B 
     336    self.version = version 
     337  endif   
    300338end 
    301339 
     
    377415  compile_opt strictarr, hidden 
    378416   
    379   msg = ['IDLdoc ' + self.version, $ 
     417  msg = ['IDLdoc ' + self.idldoc_version, $ 
    380418         '', $ 
    381419         'Usage:', $ 
     
    11581196  if (nCategories gt 0) then obj_destroy, categoryLists 
    11591197  obj_destroy, self.categories 
    1160    
     1198 
     1199  obj_destroy, [self.author, self.copyright, self.history, self.version] 
     1200     
    11611201  obj_destroy, self.overviewComments 
    11621202   
     
    12731313  compile_opt strictarr, hidden 
    12741314   
    1275   self.version = idldoc_version() 
     1315  self.idldoc_version = idldoc_version() 
    12761316   
    12771317  self.isTty = keyword_set(colorOutputlog) ? 1B : self->_findIfTty() 
    12781318   
    12791319  if (keyword_set(version)) then begin 
    1280     self->print, 'IDLdoc ' + self.version 
     1320    self->print, 'IDLdoc ' + self.idldoc_version 
    12811321    return, 0 
    12821322  endif 
     
    14671507; 
    14681508; :Fields: 
    1469 ;    version 
     1509;    idldoc_version 
    14701510;       IDLdoc version 
    14711511;    root  
     
    15281568   
    15291569  define = { DOC_System, $ 
    1530              version: '', $ 
     1570             idldoc_version: '', $ 
    15311571              
    15321572             root: '', $ 
     
    15391579              
    15401580             sourceLocation: '', $ 
    1541               
     1581 
     1582             hasAuthorInfo: 0B, $ 
     1583             author: obj_new(), $ 
     1584             copyright: obj_new(), $ 
     1585             history: obj_new(), $ 
     1586             version: obj_new(), $ 
     1587                           
    15421588             directories: obj_new(), $  
    15431589               
  • trunk/idldoc/src/parser/docparidldocformatparser__define.pro

    r620 r632  
    633633     
    634634    case strlowcase(tag) of 
     635      'author': system->setProperty, author=markupParser->parse(tagLines) 
     636      'copyright': system->setProperty, copyright=markupParser->parse(tagLines) 
     637      'history': system->setProperty, history=markupParser->parse(tagLines) 
     638      'version': system->setProperty, version=markupParser->parse(tagLines) 
     639 
    635640      'dir': begin 
    636           re = '^[[:space:]]*([[:alpha:]._$\-\/]+)[[:space:]]+' 
     641          re = '^[[:space:]]*([[:alnum:]._$\-\/]+)[[:space:]]*' 
    637642          argStart = stregex(tagLines[0], re, /subexpr, length=argLength) 
    638643          if (argStart[0] eq -1L) then begin 
     
    648653           
    649654          tagLines[0] = strmid(tagLines[0], argStart[1] + argLength[1]) 
     655          self->_removeSpace, tagLines 
    650656                     
    651657          for d = 0L, directories->count() - 1L do begin 
  • trunk/idldoc/src/parser/docparrstformatparser__define.pro

    r620 r632  
    319319        routine->getProperty, file=file 
    320320        file->setProperty, is_hidden=1B 
    321       end 
     321      end                
    322322    'history': routine->setProperty, history=markupParser->parse(self->_parseTag(lines), file=file) 
    323323    'inherits':  begin 
     
    731731     
    732732    case strlowcase(tag) of 
     733      'author': system->setProperty, author=markupParser->parse(tagLines) 
     734      'copyright': system->setProperty, copyright=markupParser->parse(tagLines) 
     735      'history': system->setProperty, history=markupParser->parse(tagLines) 
     736      'version': system->setProperty, version=markupParser->parse(tagLines) 
     737       
    733738      'dirs': begin 
    734739          system->getProperty, directories=directories 
  • trunk/idldoc/src/parser/docparrstmarkupparser__define.pro

    r630 r632  
    5353                                              tree=tree, file=file 
    5454  compile_opt strictarr, hidden 
     55   
     56  catch, error 
     57  if (error ne 0L) then begin 
     58    catch, /cancel 
     59    self.system->warning, 'unable to handle rst directive ' + directive 
     60    return 
     61  endif 
    5562   
    5663  fullDirective = strmid(line, pos + 3L, len) 
  • trunk/idldoc/src/templates/overview.tt

    r606 r632  
    5454      [% END %] 
    5555       
     56      [% IF has_author_info %] 
     57      <h2>Author information</h2> 
     58 
     59        <dl class="attribute small" summary="Library author information"> 
     60          [% IF has_author %] 
     61            <dt>Author:</dt> 
     62            <dd>[% author %]</dd>        
     63          [% END %] 
     64           
     65          [% IF has_copyright %] 
     66            <dt>Copyright:</dt> 
     67            <dd>[% copyright %]</dd>        
     68          [% END %] 
     69           
     70          [% IF has_history %] 
     71            <dt>History:</dt> 
     72            <dd>[% history %]</dd>     
     73          [% END %] 
     74 
     75          [% IF has_version %] 
     76            <dt>Version:</dt> 
     77            <dd>[% version %]</dd>      
     78          [% END %]               
     79        </dl>           
     80      [% END %] 
     81                 
     82       
    5683      <h2 id="statistics">Project statistics</h2> 
    5784