Skip to content

PSModule/Document-PSModule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Document-PSModule (by PSModule)

A GitHub Action that automates the generation of documentation for PowerShell modules using Markdown help files.

This GitHub Action is a part of the PSModule framework. It is recommended to use the Process-PSModule workflow to automate the whole process of managing the PowerShell module.

Details

This action:

  • Installs necessary modules, including platyPS for documentation generation.
  • Loads helper scripts required by the documentation process.
  • Generates Markdown documentation from PowerShell module files.
  • Ensures Markdown documentation is properly formatted, with correctly tagged PowerShell code blocks.
  • Adjusts Markdown file paths to mirror the structure of the source PowerShell module files.
  • Outputs organized Markdown documentation suitable for publishing or distribution.

Usage

Include this action in your workflow to automatically build and structure documentation for your PowerShell module.

Inputs

Input Description Required Default
Name Name of the module to document. No
WorkingDirectory Directory from which the script will execute. No .

Secrets

This action does not require any secrets.

Outputs

This action does not have defined outputs.

Example

- name: Document PowerShell Module
  uses: PSModule/Document-PSModule@v1
  with:
    Name: 'MyModule'
    WorkingDirectory: './module-directory'

About

A function that deals with creating module documentation with the PSModule flavor.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published