在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):PowerShell/platyPS开源软件地址(OpenSource Url):https://github.com/PowerShell/platyPS开源编程语言(OpenSource Language):C# 55.0%开源软件介绍(OpenSource Introduction):PlatyPSPlatyPS provides a way to:
Markdown help docs can be generated from old external help files (also known as MAML-xml help), the command objects (reflection), or both. PlatyPS can also generate cab files for Why?Traditionally PowerShell external help files have been authored by hand or using complex tool chains and rendered as MAML XML for use as console help. MAML is cumbersome to edit by hand, and common tools and editors don't support it for complex scenarios like they do with Markdown. PlatyPS is provided as a solution for allow documenting PowerShell help in any editor or tool that supports Markdown. An additional challenge PlatyPS tackles, is to handle PowerShell documentation for complex scenarios (e.g. very large, closed source, and/or C#/binary modules) where it may be desirable to have documentation abstracted away from the codebase. PlatyPS does not need source access to generate documentation. Markdown is designed to be human-readable, without rendering. This makes writing and editing easy and efficient. Many editors support it (Visual Studio Code, Sublime Text, etc), and many tools and collaboration platforms (GitHub, Visual Studio Online) render the Markdown nicely. Common setupsThere are 2 common setups that are used:
They both have advantages and use-cases, you should decide what's right for you. There is slight preference toward number 1 (markdown as the source). Quick start
Install-Module -Name platyPS -Scope CurrentUser
Import-Module platyPS
# you should have module imported in the session
Import-Module MyAwesomeModule
New-MarkdownHelp -Module MyAwesomeModule -OutputFolder .\docs
New-ExternalHelp .\docs -OutputPath en-US\
# re-import your module with latest changes
Import-Module MyAwesomeModule -Force
Update-MarkdownHelp .\docs PlatyPS markdown schemaUnfortunately, you cannot just write any Markdown, as platyPS expects Markdown to be authored in a particular way. We have defined a schema to determine how parameters are described, where scripts examples are shown, and so on. The schema closely resembles the existing output format of the If you break the schema in your markdown, you will get error messages from It may be fine for some scenarios, i.e. you want to have online-only version of markdown. UsageSupported scenarios:
RemotingPlatyPS supports working with BuildFor information about building from sources and contributing see contributing guidelines. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论