From 46ca405684a0bc73ff296f1f4c72519ae45c14f9 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Tue, 29 Oct 2024 16:39:56 -0700 Subject: [PATCH] Move to updateable help --- build.psm1 | 19 ------------------- shell/AIShell.Integration/AIShell.psd1 | 1 + 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/build.psm1 b/build.psm1 index 734bf9d8..6a0ef060 100644 --- a/build.psm1 +++ b/build.psm1 @@ -75,7 +75,6 @@ function Start-Build $out_dir = Join-Path $PSScriptRoot "out" $app_out_dir = Join-Path $out_dir $config "app" $module_out_dir = Join-Path $out_dir $config "module" "AIShell" - $module_help_dir= Join-Path $PSScriptRoot "docs" "cmdlets" $openai_out_dir = Join-Path $app_out_dir "agents" "AIShell.OpenAI.Agent" $az_out_dir = Join-Path $app_out_dir "agents" "AIShell.Azure.Agent" @@ -144,24 +143,6 @@ function Start-Build $moduleManifest = $moduleManifest -replace "ModuleVersion = '.*'", "ModuleVersion = '$version'" $moduleManifest = $moduleManifest -replace "}", " ${privateData}`n}`n" Set-Content -Path $module_out_dir/AIShell.psd1 -Value $moduleManifest -NoNewline - - $installHelp = $false - if (Get-Module -Name PlatyPS -ListAvailable) { - $installHelp = $true - } else { - Write-Host "`n The 'PlatyPS' module is not installed. Installing for creating in-shell help ..." -ForegroundColor Green - Install-Module -Name platyPS -RequiredVersion 0.14.2 -Repository PSGallery -Force -Verbose:$false - if ($?) { - $installHelp = $true - } else { - Write-Host "`n Failed to install the 'PlatyPS' module. In-shell help for the 'AIShell' module will not be created." -ForegroundColor Red - } - } - - if ($installHelp) { - $null = New-ExternalHelp -Path $module_help_dir -OutputPath $module_out_dir -Force - Write-Host " In-shell help for the 'AIShell' module has been created." -ForegroundColor Green - } } if ($LASTEXITCODE -eq 0) { diff --git a/shell/AIShell.Integration/AIShell.psd1 b/shell/AIShell.Integration/AIShell.psd1 index 44f329fd..a69c29fa 100644 --- a/shell/AIShell.Integration/AIShell.psd1 +++ b/shell/AIShell.Integration/AIShell.psd1 @@ -12,4 +12,5 @@ CmdletsToExport = @('Start-AIShell','Invoke-AIShell','Resolve-Error') VariablesToExport = '*' AliasesToExport = @('aish', 'askai', 'fixit') + HelpInfoURI = 'https://aka.ms/aishell-help' }