Browse Source

Minor tweaks to doc build script

pull/32/head
Anairkoen Schno 5 years ago
parent
commit
5b20164dda
2 changed files with 10 additions and 7 deletions
  1. +4
    -1
      appveyor.yml
  2. +6
    -6
      docs/build.ps1

+ 4
- 1
appveyor.yml View File

@ -90,7 +90,10 @@ for:
#if ($lastexitcode -ne 0){ #if ($lastexitcode -ne 0){
# throw [System.Exception] "docfx build failed with exit code $lastexitcode." # throw [System.Exception] "docfx build failed with exit code $lastexitcode."
#} #}
& .\build.ps1
powershell .\build.ps1
if ($lastexitcode -ne 0){
throw [System.Exception] "docfx build failed with exit code $lastexitcode."
}
} }
if ($env:APPVEYOR_REPO_TAG -eq "true") if ($env:APPVEYOR_REPO_TAG -eq "true")


+ 6
- 6
docs/build.ps1 View File

@ -1,15 +1,15 @@
& docfx metadata
# read SelfConfig, remove wierd bits, load it, load Newtonsoft, and turn it into a schema # read SelfConfig, remove wierd bits, load it, load Newtonsoft, and turn it into a schema
$newtonsoftLoc = "./nuget/Newtonsoft.Json.12.0.2/lib/netstandard2.0/Newtonsoft.Json.dll"
$newtonsoftSchemaLoc = "./nuget/Newtonsoft.Json.Schema.3.0.11/lib/netstandard2.0/Newtonsoft.Json.Schema.dll"
$newtonsoftLoc = "$(pwd)/nuget/Newtonsoft.Json.12.0.2/lib/netstandard2.0/Newtonsoft.Json.dll"
$newtonsoftSchemaLoc = "$(pwd)/nuget/Newtonsoft.Json.Schema.3.0.11/lib/netstandard2.0/Newtonsoft.Json.Schema.dll"
$selfConfigLoc = "../IPA.Loader/Config/SelfConfig.cs" $selfConfigLoc = "../IPA.Loader/Config/SelfConfig.cs"
if (!(Test-Path "nuget" -PathType Container)) { if (!(Test-Path "nuget" -PathType Container)) {
nuget install Newtonsoft.Json -Version 12.0.2 -source https://api.nuget.org/v3/index.json -o nuget
nuget install Newtonsoft.Json.Schema -Version 3.0.11 -source https://api.nuget.org/v3/index.json -o nuget
nuget install Newtonsoft.Json -Version 12.0.2 -source https://api.nuget.org/v3/index.json -o "$(pwd)/nuget"
nuget install Newtonsoft.Json.Schema -Version 3.0.11 -source https://api.nuget.org/v3/index.json -o "$(pwd)/nuget"
} }
& docfx metadata
if ((Test-Path $newtonsoftLoc -PathType Leaf) -and (Test-Path $selfConfigLoc -PathType Leaf)) { if ((Test-Path $newtonsoftLoc -PathType Leaf) -and (Test-Path $selfConfigLoc -PathType Leaf)) {
# The files we need exist, lets do this! # The files we need exist, lets do this!


Loading…
Cancel
Save