Templates

This folder contains the templated files and folders this module provides for users. It is copied alongside the generated module manifest, root module, private module, and init script during composition.

Module

Use the Module template folder to create a new Documentarian module with the Copy-Template cmdlet. It scaffolds the files and folders for the new module’s documentation and source code as well as a build script, changelog, and readme file.

You can use the TemplateData parameter to modify the text in the copied files:

Example

This example creates the Documentarian.markdownlint module:

$TemplateParameters = @{
  TemplatePath    = 'Module'
  DestinationPath = './Source/Modules/Documentarian.markdownlint'
  TemplateData    = @{
    Name      = 'Documentarian.markdownlint'
    ShortName = 'markdownlint'
  }
}
Copy-Template @TemplateParameters