Skip to content

Commit 1ac243c

Browse files
authored
Move from in-box help content to updateable help (#259)
1 parent da3e6d5 commit 1ac243c

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

build.psm1

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ function Start-Build
7575
$out_dir = Join-Path $PSScriptRoot "out"
7676
$app_out_dir = Join-Path $out_dir $config "app"
7777
$module_out_dir = Join-Path $out_dir $config "module" "AIShell"
78-
$module_help_dir= Join-Path $PSScriptRoot "docs" "cmdlets"
7978

8079
$openai_out_dir = Join-Path $app_out_dir "agents" "AIShell.OpenAI.Agent"
8180
$az_out_dir = Join-Path $app_out_dir "agents" "AIShell.Azure.Agent"
@@ -144,24 +143,6 @@ function Start-Build
144143
$moduleManifest = $moduleManifest -replace "ModuleVersion = '.*'", "ModuleVersion = '$version'"
145144
$moduleManifest = $moduleManifest -replace "}", " ${privateData}`n}`n"
146145
Set-Content -Path $module_out_dir/AIShell.psd1 -Value $moduleManifest -NoNewline
147-
148-
$installHelp = $false
149-
if (Get-Module -Name PlatyPS -ListAvailable) {
150-
$installHelp = $true
151-
} else {
152-
Write-Host "`n The 'PlatyPS' module is not installed. Installing for creating in-shell help ..." -ForegroundColor Green
153-
Install-Module -Name platyPS -RequiredVersion 0.14.2 -Repository PSGallery -Force -Verbose:$false
154-
if ($?) {
155-
$installHelp = $true
156-
} else {
157-
Write-Host "`n Failed to install the 'PlatyPS' module. In-shell help for the 'AIShell' module will not be created." -ForegroundColor Red
158-
}
159-
}
160-
161-
if ($installHelp) {
162-
$null = New-ExternalHelp -Path $module_help_dir -OutputPath $module_out_dir -Force
163-
Write-Host " In-shell help for the 'AIShell' module has been created." -ForegroundColor Green
164-
}
165146
}
166147

167148
if ($LASTEXITCODE -eq 0) {

shell/AIShell.Integration/AIShell.psd1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@
1212
CmdletsToExport = @('Start-AIShell','Invoke-AIShell','Resolve-Error')
1313
VariablesToExport = '*'
1414
AliasesToExport = @('aish', 'askai', 'fixit')
15+
HelpInfoURI = 'https://aka.ms/aishell-help'
1516
}

0 commit comments

Comments
 (0)