From 266a08f39c74e230fcd03caea56f7883a50dee8f Mon Sep 17 00:00:00 2001 From: Ryan <69221034+ryfu-msft@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:33:43 -0400 Subject: [PATCH] Generate Microsoft.WinGet.Client help docs in cmdlet output (#4731) --- azure-pipelines.yml | 10 ++++++++++ .../Microsoft.WinGet.Client/Disable-WinGetSetting.md | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 850d2b9445..648159d211 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -543,6 +543,16 @@ jobs: Contents: '**\*' TargetFolder: '$(Build.ArtifactStagingDirectory)' + - task: PowerShell@2 + displayName: Generate Microsoft.WinGet.Client Help Documentation + inputs: + pwsh: true + targetType: inline + script: | + Install-Module -Name platyPS -Force + Import-Module platyPS + New-ExternalHelp -Path '$(Build.SourcesDirectory)\src\PowerShell\Help\Microsoft.WinGet.Client' -OutputPath '$(Build.ArtifactStagingDirectory)\Microsoft.WinGet.Client' + - task: CopyFiles@2 displayName: 'Copy Microsoft.WinGet.DSC module to staging directory' inputs: diff --git a/src/PowerShell/Help/Microsoft.WinGet.Client/Disable-WinGetSetting.md b/src/PowerShell/Help/Microsoft.WinGet.Client/Disable-WinGetSetting.md index d363183c25..4c78a1d9a3 100644 --- a/src/PowerShell/Help/Microsoft.WinGet.Client/Disable-WinGetSetting.md +++ b/src/PowerShell/Help/Microsoft.WinGet.Client/Disable-WinGetSetting.md @@ -30,7 +30,6 @@ This command support the following administrative settings: - InstallerHashOverride - LocalArchiveMalwareScanOverride - ProxyCommandLineOptions -- DefaultProxy Administrative settings are disabled by default. Administrative settings can also be managed using Group Policy objects.