This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch fix/apidocs-automation
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 7110eba40d86c83bd8292ad1edb7381ca275c3d7
Author: Shad Storhaug <[email protected]>
AuthorDate: Thu Oct 24 09:51:52 2024 +0700

    docs.ps1: revert failing code when installing
---
 websites/apidocs/docs.ps1 | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/websites/apidocs/docs.ps1 b/websites/apidocs/docs.ps1
index a930b6402..f112bbfc5 100644
--- a/websites/apidocs/docs.ps1
+++ b/websites/apidocs/docs.ps1
@@ -75,13 +75,7 @@ if (-not (Test-Path "$InstallDir/docfx")) {
     Write-Host "docfx is not installed. Installing as a local tool..."
     
     # Install docfx as a local tool if it isn't listed in dotnet-tools.json
-    $installOutput = dotnet tool install --local docfx -v diag 2>&1
-
-    # Output the installation details to the console
-    Write-Host $installOutput
-
-    # Add the local tool's path to the environment
-    $env:PATH = "$installOutput;$env:PATH"
+    dotnet tool install --local docfx
 } else {
     Write-Host "docfx is already installed. Restoring tools..."
 

Reply via email to