<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Huddled Masses &#187; Wiki</title>
	<atom:link href="http://huddledmasses.org/tag/wiki/feed/" rel="self" type="application/rss+xml" />
	<link>http://huddledmasses.org</link>
	<description>You can do more than breathe for free...</description>
	<lastBuildDate>Sat, 28 Jan 2012 21:37:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<cloud domain='huddledmasses.org' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Of DekiWiki and PowerShell: A Script (Module)</title>
		<link>http://huddledmasses.org/of-dekiwiki-and-powershell-a-script-module/</link>
		<comments>http://huddledmasses.org/of-dekiwiki-and-powershell-a-script-module/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 06:32:36 +0000</pubDate>
		<dc:creator>Joel 'Jaykul' Bennett</dc:creator>
				<category><![CDATA[Huddled]]></category>
		<category><![CDATA[APIs]]></category>
		<category><![CDATA[DekiWiki]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Wiki]]></category>

		<guid isPermaLink="false">http://huddledmasses.org/?p=781</guid>
		<description><![CDATA[You may not have noticed, but there are several wiki&#8217;s with PowerShell content in them, but generally speaking, they are the results of the effort of a single person (or very a small group) ... and none of them seems to have captured the attention of the general PowerShell community. Certainly, the PowerShell Community site [...]]]></description>
			<content:encoded><![CDATA[	<p>You may not have noticed, but <a href="http://channel9.msdn.com/wiki/windowspowershellwiki/">there are</a> <a href="http://www.myitforum.com/myITWiki/Default.aspx?Page=winpowershell&#38;AspxAutoDetectCookieSupport=1">several wiki&#8217;s</a> with PowerShell content in them, but generally speaking, they are the results of the effort of a single person (or very a small group) ... and none of them seems to have captured the attention of the general PowerShell community.  Certainly, the <a href="http://PowerShellCommunity.org">PowerShell Community</a> site has never had it&#8217;s own wiki.</p>

	<p>I&#8217;ve been pushing for an unofficial community wiki for awhile, and recently, I had an opportunity to try out <a href="http://wiki.mindtouch.com">MindTouch DekiWiki</a> at work, and I was so impressed, I decided to <a href="http://wiki.poshcode.org/">throw one up</a> and take it upon myself to demo to <a href="http://halr9000.com/">Halr9000</a> and a few of the MVPs (and now &#8230; to all of you!) why I think we should set up a DekiWiki for our community  <img src='http://huddledmasses.org/wordpress/wp-includes/' alt=':)' class='wp-smiley' /> </p>

	<p>It&#8217;s really quite simple.  On top of having some really awesome features like hierarchical pages, a <span class="caps">WYSIWYG</span> editor, and built-in lucene search and file attachments &#8230; it also has a <span class="caps">REST</span> api, and you can edit the pages in plain-old <span class="caps">HTML</span> (not really surprising considering the <span class="caps">WYSIWYG</span> interface).  The combination of these two things, and the MindTouch <a href="http://wiki.developer.mindtouch.com/Dream">Dream</a> sdk (along with good examples of using it with the <a href="http://wiki.developer.mindtouch.com/MindTouch_Deki/API_Reference">Deki <span class="caps">REST</span> API</a>) make it so easy to work with in .Net and PowerShell, that I just felt compelled to share my scripts&#8230;</p>

	<p>First is the conversion script, which is based on <a href="http://blogs.vmware.com/vipowershell/2007/09/new-htmlhelp.html">New-HtmlHelp</a>, some excellent work by one of the VMWare PowerShell guys &#8230;</p>

	<p><script type="text/javascript" src="http://PoshCode.org/embed/670?height=200"></script></p>

	<p>But then, the more interesting stuff, written on top of <a href="http://wiki.developer.mindtouch.com/Dream">MindTouch Dream</a> (you need to <a href="http://sourceforge.net/project/showfiles.php?group_id=173074">download Dream from SourceForge.net</a> to use it, or just grab <a href="/downloads/DekiWiki.7z">both my scripts and the dlls in a 7-zip archive</a>), a series of cmdlets which abstract away some of the intricacies of the DekiWiki <span class="caps">API</span>. So far, I&#8217;ve only written a few &#8230; most notably: Set-DekiContent, which will allow you to write a little loop like this:</p>

	<div class="posh code posh" style="font-family:monospace;"><br />
<span style="color: #666699; font-weight: bold;">foreach</span><span style="color: #333;">&#40;</span><span style="color: #660033; font-weight: bold;">$cmd</span> <span style="color: #666699; font-weight: bold;">in</span> <span style="color: #333;">&#40;</span><span style="color: #660033;">gcm</span> <span style="color: #000066;">-type</span> cmdlet <span style="color: #66cc66;">|</span> ? <span style="color: #333;">&#123;</span> <span style="color: #660033; font-weight: bold;">$_</span>.<span style="color: #003366;">PsSnapin</span> <span style="color: #000066;">-like</span> <span style="color: #009900;">&quot;Microsoft.PowerShell*&quot;</span> <span style="color: #333;">&#125;</span><span style="color: #333;">&#41;</span><span style="color: #333;">&#41;</span> <span style="color: #333;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #0066cc; font-style: italic;">Get-<span style="font-style: normal;">Help</span></span> <span style="color: #660033; font-weight: bold;">$cmd</span>.<span style="color: #003366;">Name</span> <span style="color: #000066;">-full</span> <span style="color: #000066;">-EA</span> <span style="color: #009900;">&quot;SilentlyContinue&quot;</span> <span style="color: #66cc66;">|</span> <span style="color: #0066cc; font-style: italic;">ConvertTo-<span style="font-style: normal;">DekiContent</span></span> Cmdlet_Help <span style="color: #66cc66;">|</span> <br />
&nbsp; &nbsp;<span style="color: #66cc66;">%</span><span style="color: #333;">&#123;</span> <span style="color: #0066cc; font-style: italic;">Set-<span style="font-style: normal;">DekiContent</span></span> <span style="color: #009900;">&quot;Cmdlet_Help/$($cmd.PSSnapin)/$($cmd.Name)&quot;</span> <span style="color: #660033; font-weight: bold;">$_</span> <span style="color: #333;">&#125;</span><br />
<span style="color: #333;">&#125;</span></div>

	<p>Which produces this <a href="http://wiki.poshcode.org/Cmdlet_Documentation">PowerShell Cmdlet Help</a> &#8230; pretty cool, right?  Incidentally, feel free to contribute more, and/or comment on or edit the help for those cmdlets to improve upon it.</p>

	<p>Without futher ado, here&#8217;s the script module:</p>

	<p><script type="text/javascript" src="http://PoshCode.org/embed/671"></script></p>]]></content:encoded>
			<wfw:commentRss>http://huddledmasses.org/of-dekiwiki-and-powershell-a-script-module/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

