From 93c3f9cc6ba560fafe3be8f2a21eed15960541ec Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Thu, 19 Nov 2020 02:57:36 +0700 Subject: [PATCH] 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 286655cc5e..c6f66b49e3 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