Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Generating documentation for script code (MAML?)

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 02-06-2007   #1 (permalink)
Serge van den Oever [Macaw]
Guest


 

Generating documentation for script code (MAML?)

I'm currently writing a lot of PowerShell script code, actually thousands of
lines. A lot of the code is utility code that is used from the other code. I
would like to generate documentation for all the functions in my utility
libraries so you can get help on them, and see intellisense in tools like
PrimalScript.

Sounds like I have to generate MAML files for my scripts. Does anyone has
any experience with this from scripts, I know it works for the .Net
extensions you write for PowerShell.

Serge

My System SpecsSystem Spec
Old 02-08-2007   #2 (permalink)
Serge van den Oever [Macaw]
Guest


 

RE: Generating documentation for script code (MAML?)

There was another thread on this topic in this group already that I missed:

http://www.microsoft.com/communities...feb6c639fb&p=1

But the approach taken there is way too simple. I was thinking more along
the lines of RDoc, the ruby documentation generator
(http://rdoc.sourceforge.net/doc/) that takes a very simple approach to
formatting the documentation text. You really don't want the verbose (to say
the least) XML format defined by MAML into your code.

I also wonder if it is the best approach to generate MAML from the inline
documentation, because all the cmdlets documentation will get cluttered with
the documentation on your own code. Not sure about that yet, bacause the
documentation is on the utility code that you actually want to reuse.

I actually also don't know if you can just add MAML files to the $PSHOME
folder, without underlying dll...

Any ideas?

Serge van den Oever [Macaw]
http://weblogs.asp.net/soever
"Serge van den Oever [Macaw]" wrote:

> I'm currently writing a lot of PowerShell script code, actually thousands of
> lines. A lot of the code is utility code that is used from the other code. I
> would like to generate documentation for all the functions in my utility
> libraries so you can get help on them, and see intellisense in tools like
> PrimalScript.
>
> Sounds like I have to generate MAML files for my scripts. Does anyone has
> any experience with this from scripts, I know it works for the .Net
> extensions you write for PowerShell.
>
> Serge

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-filling VB Script Code for Excel Pegasus \(MVP\) VB Script 2 08-30-2008 12:23 AM
Is there a shorter code to perform this ps1 script ? IT STAFF PowerShell 1 07-25-2008 01:33 AM
MSBuild script for Getlatest cource code Abhi .NET General 3 06-26-2008 09:40 AM
Source code documentation for scripts Duncan Smith PowerShell 3 12-26-2007 11:52 PM
Script for automatically generating a .NET object-centered cmdlet skeleton Alex K. Angelopoulos [MVP] PowerShell 4 08-07-2006 08:16 PM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008