Out-Wiki

How do you publish your cmdlets help online without duplicating the effort? I created this relatively straight-forward Out-Wiki function which I used to generate all the pages in the QAD cmdlets online reference. Today I finally found time to upload the script to the PowerShell code repository so it is now available for anyone to use.

Just change the name of the PowerShell snapin in the invocation line:

Out-Wiki (Get-Command -PSSnapin Quest.ActiveRoles.ADManagement) c:\Temp\QADHelp

And in a minute you have all the wiki pages in MediaWiki (the wikipedia engine) wikitext format generated for you!

The script was inspired by Antonio’s New-HtmlHelp.

You can search for out-wiki in your PowerGUI Script Editor or grab it online here.

Tags: , , , ,

5 Responses to “Out-Wiki”


  1. 1 Hal Rottenberg August 18, 2008 at 10:29 pm

    Dmitry, does this script output the mediawiki wikitext, or HTML?

  2. 2 dmitrysotnikov August 19, 2008 at 5:32 am

    Mediawiki wikitext

  3. 3 Brian Nettles August 25, 2008 at 4:30 pm

    Dmitry, are you able to do your entire authoring including page creation in Media Wiki from this tool? What are the benefits of publishing to Media Wiki this way as opposed to using the Media Wiki user interface?

  4. 4 dmitrysotnikov August 25, 2008 at 7:21 pm

    This script takes the help system which cmdlet creators included (basically what you get when you type in CmdletName -? in the command line) and converts it into a series of media wiki files. This basically gives us two forms of documentation: built-in help with which AD cmdlets ship AND online reference – for the price of one.

    I have not yet taken it a step further to actually automatically posting the wiki pages. I had to manually copy/paste the generated text. However, Oleg Shevnin actually has some c# code uploading pages to media wiki. I plan to steal that from him and convert to PowerShell – then I will have a complete system with no manual steps.

    I will post that new script once I have it.


  1. 1 AD cmdlets reference updated « Dmitry’s PowerBlog: PowerShell and beyond Trackback on April 10, 2009 at 9:02 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




My Recent Tweets

Legal

The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

August 2008
M T W T F S S
« Jul   Sep »
 123
45678910
11121314151617
18192021222324
25262728293031

%d bloggers like this: