A dash docset for powershell modules : https://docs.microsoft.com/en-us/powershell/module/
posh-to-dash.py
scrapes the newly announced https://docs.microsoft.com/en-us/powershell/module/
website in order to create an offline dash-compatible archive to be viewed in Dash
, Zeal
or Velocity
:
posh-to-dash.py
relies on :
requests
for http(s) downloadsselenium
and phantomjs
for webscrapingbs4
for html parsing and rewritingIf Windows, grab the executable an place it in %USERPROFILE%\AppData\Local\Microsoft\WindowsApps
If Linux, move it to your ~/.local/bin
or wherever you have your path
posh-to-dash.py --output=$outputfile --version=6 --temporary
--output
is not provided, posh-to-dash.py
will output "Powershell.tgz' into the working directory--version
switch support only Powershell API versions 7.0
, 7.1
(default) and 7.2
, the rest are obsolete by Microsoft.--temporary
specify to download the web scraping resources in a temporary folder instead of clobbering the current directory. However if the download fail, the results will be thrown out.NOTE: The process takes 15+ minutes to run. The more versions you download increases the time.
With the Powershell.tar file, unzip it and place it in C:\Users\<your-username>\AppData\Local\Zeal\Zeal\docsets
The powershell modules API endpoint is quite new, so it may be subject to breakage by the docs.microsoft.com
people.