liveBook · Manning

PlatyPS

As explained in Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools

PlatyPS is an open-source PowerShell tool that generates and maintains external help documentation from Markdown and code metadata.

PlatyPS is an open-source PowerShell tool for writing help in readable Markdown, then generating external MAML documentation. Markdown remains an independently editable source that works well with GitHub and ordinary text editors. section 14.5 section 18.8

Use PlatyPS to reduce documentation maintenance:

  • Generate Markdown stubs from code, including discoverable parameter details such as mandatory status and pipeline input. section 14.5
  • Update existing help stubs when parameters are added or changed, then complete the new explanatory content. section 14.5
  • Produce valid MAML for PowerShell help systems, while allowing other tools to generate web-based HTML from Markdown. section 14.5

A maintainable help workflow

Start with PowerShell code, generate a Markdown framework, fill in descriptions and examples, and regenerate outputs when the code changes. This keeps external help separate from implementation and avoids repeatedly constructing MAML by hand. section 14.5

How Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools covers it

How deep it goes
Explains the Markdown-to-MAML workflow and maintenance role, but defers detailed PlatyPS usage.
Examples
Uses generated parameter stubs and updates for added or changed parameters as practical documentation examples.
What it assumes
Assumes PowerShell code whose parameters and metadata can be inspected, while supporting authors who have never written help.
What you can do after
Build external help by authoring Markdown, generating MAML, and refreshing documentation after code changes.
How it connects
Connects Markdown with MAML, Update-Help, comment-based help, and GitHub-based documentation.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools. The section links point to the parts of the book it draws on.