comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDLdoc 3.0 released
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDLdoc 3.0 released [message #58141 is a reply to message #58140] Tue, 22 January 2008 09:32 Go to previous messageGo to previous message
KRDean is currently offline  KRDean
Messages: 69
Registered: July 2006
Member
On Jan 22, 6:48 am, Vince Hradil <hrad...@yahoo.com> wrote:
> On Jan 21, 11:47 pm, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
>
>
>
>
>
>> IDLdoc 3.0 is ready! Highlights of this release:
>
>>   * IDLdoc 3.0 was rewritten from scratch to allow it to be released
>> under an open source license. Source code is available from the
>> project website.
>
>>   * There are multiple formats for entering comments: the normal
>> IDLdoc style, the traditional IDL comment header, and new style based
>> on restructured text.
>
>>   * Ability to do some simple formatting of comments without resorted
>> to putting ugly HTML into your comments.
>
>> For more information about this release, see the project website
>> download page:
>
>> http://idldoc.idldev.com/wiki/Downloads
>
>> Mike
>> --www.michaelgalloy.com
>> Tech-X Corporation
>> Software Developer II
>
> Mike,
> Maybe I'm a little dense, but I can't figure out how your program
> works.  Perhaps your bullet point "read user information about IDLdoc"
> might help, but there is no link.  What are the installation
> instructions, requirements, and usage?
>
> Thanks,
> Vince- Hide quoted text -
>
> - Show quoted text -

This may help. I created some IDL code that I use and modify whenever
I start a new project.
I'll include a sample overview and footer htm file, as well as the IDL
code that calls IDLdoc.

Kelly Dean
Fort Collins, CO

====================== Sample Overview.htm
===========================

<H2>Generate HTML Documetation</H2>
<P>The Generate HTML Documentation is designed to create HTML reports
from comments
found in the IDL code.
<P>This application was developed with ITT Visual Information
Solutions'
(ITTVIS) Data Analysis and Visualization Software - Interactive Data
Language (IDL).

<P>Kelly Dean - January 2008

:Dirs:
./
Root directory with main IDL routines




====================== Sample Footer.htm ============================

<!-- Project Footer -->
<CENTER>
<FONT STYLE="font-family: Arial; font-size: 8pt">
IDL Library.<BR>
Contact Information: <BR>
Kelly Dean<BR>
Fort Collins, Colorado<BR>
</FONT>
</CENTER>

======================= IDL Code ================================

;+
;
; :file_comments:
; <P>This routine is designed to use IDLdoc to create HTML
; documentation from IDL code. IDLdoc is a tool for
; generating documentation into HTML format from comments
; found in the source code.
;
; :keywords:
; root : in, type=string
; Directory path to IDL source files.
;
; output : in, type=string
; Directory path and name to HTML output.
;
; title : in, type=string
; Main title for HTML document.
;
; subtitle : in, type=string
; Subtitle for HTML document.
;
; overview : in, type=string
; Directory path and name for overview HTML file.
;
; footer : in, type=string
; Directory path and name for footer HTML file.
;
; statistics : in, type=string
; Calculate McCabe statistics for each routine
;
; :uses:
; IDLdoc : Document generator fould at idldoc.idldev.com
;
; :author:
; Kelly Dean
;
; :categories:
; Documentation
;
; :history:
; Created January 2008
;
;----------------------------------------------------------- -----------
PRO Gen_HTM_Doc3, root=root, $
output=output, $
title=title, $
subtitle=subtitle, $
overview=overview, $
footer=footer, $
statistics=statistics

; Initialize some variables

dirPath = 'C:\Test'
proj = 'GenHTML'
ver = '.0.0.1'
projver = proj + ver

; Location of IDLdoc save file

GalloySAV = dirPath + '\ContribIDL\Galloy\IDLdoc\idldoc.sav'

; Check keyword -

IF ( N_ELEMENTS( title ) EQ 0 ) THEN BEGIN
title = proj
ENDIF

; Check keyword - For subtitle

IF ( N_ELEMENTS( subtitle ) EQ 0 ) THEN BEGIN
subtitle = 'Generate HTML Documetation'
ENDIF

; Check keyword - IDL source

IF ( N_ELEMENTS( root ) EQ 0 ) THEN BEGIN
root = dirPath + '\Projects\' + projver + '\src'
ENDIF

; Check keyword - Output HTML directory

IF ( N_ELEMENTS( output ) EQ 0 ) THEN BEGIN
output = dirPath + '\Projects\' + projver + '\doc\html'
ENDIF

; Check keyword - Directory path and name of overview HTML code

IF ( N_ELEMENTS( overview ) EQ 0 ) THEN BEGIN
overview = dirPath + '\Projects\' + projver + '\Data\Input
\ProjOverview.htm'
ENDIF

; Check keyword - Directory path and name of footer HTML code

IF ( N_ELEMENTS( footer ) EQ 0 ) THEN BEGIN
footer = dirPath + '\Projects\' + projver + '\Data\Input
\ProjFoot.htm'
ENDIF

; Check keyword - Turn on/off McCabe statistics

IF ( N_ELEMENTS( statistics ) EQ 0 ) THEN statistics = 0

; Start IDLdoc.

RESTORE, GalloySAV
IDLDOC, FORMAT_STYLE='rst', $ ; IDL Doc format style (Restructure
text format)
root=root, $ ; Directory path of IDL code
output=output, $ ; Output directory
title=title, $ ; Main title
subtitle=subtitle, $ ; Subtitle title
overview=overview, $ ; Directory path and name of
overview HTML code
footer=footer, $ ; Directory path and name of footer
HTML code
statistics=statistics ; Turn on/off McCabe statistics

END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: bizzare idlwave abbrev behavior
Next Topic: Re: stop behavior

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 15:27:59 PDT 2025

Total time taken to generate the page: 1.84447 seconds