Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 2.92 KB

NEW_CMDLETS.md

File metadata and controls

62 lines (47 loc) · 2.92 KB

Generate Your Own Markdown

  1. Open PowerShell as Administrator.

  2. Import the module you want to document.

    HINT: Use Upgrade-Module and also Uninstall-Module depending on the module version you have installed.

  3. Use PlatyPS to generate Markdown.

    • Skype for Business Online: New-MarkdownHelp -module tmp_byivwzpq.e1k -OutputFolder .\docs.

    TIP: You can see available modules with the command Get-Module --listavailable.

  4. Find the new cmdlet and you will see the stubbed markdown.

  5. Add the correct Applicable tags to the top metadata and also the parameters for the cmdlet. See others for details. This is important since when the XML is generated to go back into the product the applicable is what is used for which content goes into which product.

    You will need to add the title and also applicable metadata for the cmdlet and also for each parameter.

    Example metadata for each parameter: Notice the applicable and title tag is added with appropriate 'whitelisted' product name.

    external help file: Microsoft.OutlookApps.StaffHub.PowershellCmdlets.dll-Help.xml
    Module Name: Microsoft.OutlookApps.StaffHub.PowershellCmdlets
    online version:
    applicable: Microsoft StaffHub
    title: Get-StaffHubUsersForTenant
    schema: 2.0.0
    

    Example metadata for each parameter: Notice the Applicable tag is added with appropriate whitelisted product name.

    Type: String
    Parameter Sets: (All)
    Aliases:
    Applicable: Microsoft StaffHub
    Required: False
    Position: 1
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    
  6. Add the cmdlet to Table of Contents (TOC) file. TOC file is the name of the module. For example, for all Teams cmdlets the TOC file is teams.md. You can fill in a description or remove the template text line. However, if you leave the template text line make sure it is exactly in the right format so that it will not render as a template text.

  7. Submit a Pull Request into the repo in appropriate place with adding the new cmdlet. aka.ms/office-powershell

If you want to merge multiple versions into a single version then use the PlatyPS merge command.

Note: If this is a brand new product you need to add metadata at the global level in order for it to show up in reporting.

References