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 0b448d9e2a9a9ad2d3caa0148b0b68c8082f102c
Author: Shad Storhaug <[email protected]>
AuthorDate: Thu Nov 19 02:57:36 2020 +0700

    websites/apidocx/docs.ps1: Set the $env:LuceneNetVersion environment 
variable so our plugin recognizes it
---
 websites/apidocs/docs.ps1 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/websites/apidocs/docs.ps1 b/websites/apidocs/docs.ps1
index 286655c..c6f66b4 100644
--- a/websites/apidocs/docs.ps1
+++ b/websites/apidocs/docs.ps1
@@ -41,6 +41,10 @@ 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.
+$env:LuceneNetVersion = $LuceneNetVersion
+
 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
 
 $PSScriptFilePath = (Get-Item $MyInvocation.MyCommand.Path).FullName

Reply via email to