PowerShell / platyPS

Write PowerShell External Help in Markdown
MIT License
766 stars 149 forks source link

[V2 test] New-MarkdownCommandHelp incorrect metadata in module file #659

Closed sdwheeler closed 3 weeks ago

sdwheeler commented 2 months ago

Prerequisites

Steps to reproduce

Import-Module Microsoft.PowerShell.Archive New-MarkdownCommandHelp -Module Microsoft.PowerShell.Archive -OutputFolder . -WithModulePage

Inspect the output files.

Expected behavior

Frontmatter of Microsoft.PowerShell.Archive.md should be accurate.

Actual behavior

---
document type: module
Help Version: 1.0.0.0
HelpInfoUri: 
Locale: en-US
Module Guid: 00000000-0000-0000-0000-000000000000
Module Name: Microsoft.PowerShell.Archive
ms.date: 07/17/2024
PlatyPS schema version: 2024-05-01
title: Microsoft.PowerShell.Archive Module
---

Error details

Bugs
- Module GUID should be: eb74e8da-9ae2-482a-a648-e96550fb8733
- HelpInfoUri should be: https://go.microsoft.com/fwlink/?LinkId=2113631
- Empty HelpInfoUri causes error for Import-MarkdownModuleFile

Environment data

Microsoft.PowerShell.PlatyPS - v2 branch sha 6313253

Visuals

No response

sdwheeler commented 3 weeks ago

Fixed in https://github.com/PowerShell/platyPS/commit/27d5ffe4090f146b64c7d91453d6683c68c8ee53