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

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 0411abb404016df13b32ef7acd62ae6ed1d2b7c6
Author: Shad Storhaug <[email protected]>
AuthorDate: Wed Mar 24 09:39:44 2021 +0700

    docs.ps1: Removed duplicate environment variable setting
---
 websites/apidocs/docs.ps1 | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/websites/apidocs/docs.ps1 b/websites/apidocs/docs.ps1
index feb5080..4ee184d 100644
--- a/websites/apidocs/docs.ps1
+++ b/websites/apidocs/docs.ps1
@@ -41,8 +41,7 @@ if ($BaseUrl -eq 'https://lucenenet.apache.org/docs/') {
 $BaseUrl = $BaseUrl.TrimEnd('/') # Remove any trailing slash
 Write-Host "Base URL for xref map set to $BaseUrl"
 
-# HACK: Our plugin only recognizes the version number through an environment 
variable,
-# so we set it here.
+# set env vars that will be replaced in Markdown
 $env:LuceneNetVersion = $LuceneNetVersion
 
 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
@@ -162,9 +161,6 @@ $DocFxJsonMeta = @(
 )
 $DocFxJsonSite = Join-Path -Path $ApiDocsFolder "docfx.site.json"
 
-# set env vars that will be replaced in Markdown
-$env:LuceneNetVersion = $LuceneNetVersion
-
 if ($? -and $DisableMetaData -eq $false) {
     foreach ($proj in $DocFxJsonMeta) {
         $projFile = Join-Path -Path $ApiDocsFolder $proj

Reply via email to