From 6d836bd523a529a7169189e76b5db91993ede396 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sun, 22 Dec 2019 22:05:06 -0600 Subject: [PATCH] Tweaked some doc gen stuff --- IPA.Loader/Config/SelfConfig.cs | 4 +--- docs/build.ps1 | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/IPA.Loader/Config/SelfConfig.cs b/IPA.Loader/Config/SelfConfig.cs index 689e0f14..a9ad37e7 100644 --- a/IPA.Loader/Config/SelfConfig.cs +++ b/IPA.Loader/Config/SelfConfig.cs @@ -89,7 +89,6 @@ namespace IPA.Config // LINE: ignore [NonNullable] - [JsonProperty(Required = Required.DisallowNull)] // the JsonProperty annotations are for the generated schema public virtual Updates_ Updates { get; set; } = new Updates_(); public class Debug_ @@ -130,7 +129,6 @@ namespace IPA.Config // LINE: ignore [NonNullable] - [JsonProperty(Required = Required.DisallowNull)] public virtual Debug_ Debug { get; set; } = new Debug_(); public virtual bool YeetMods { get; set; } = true; @@ -140,7 +138,6 @@ namespace IPA.Config // LINE: ignore [NonNullable, UseConverter(typeof(CollectionConverter>))] - [JsonProperty(Required = Required.DisallowNull)] public virtual HashSet GameAssemblies { get; set; } = new HashSet { // LINE: ignore 5 @@ -153,6 +150,7 @@ namespace IPA.Config // LINE: ignore public static HashSet GameAssemblies_ => Instance?.GameAssemblies ?? new HashSet { "Assembly-CSharp.dll" }; + [JsonProperty(Required = Required.DisallowNull)] // Used for documentation schema generation public virtual string LastGameVersion { get; set; } = null; // LINE: ignore public static string LastGameVersion_ => Instance?.LastGameVersion; diff --git a/docs/build.ps1 b/docs/build.ps1 index db3ade3b..457077b7 100644 --- a/docs/build.ps1 +++ b/docs/build.ps1 @@ -96,7 +96,7 @@ if (-not (Test-Path $ipaExe -PathType Leaf)) { msbuild -p:Configuration=Release -p:Platform=AnyCPU -p:SolutionDir=.. "$ipaRoot/IPA.csproj" } -& $ipaExe --help > .\articles\_ipa_command_line.txt +& "$ipaExe" --help > .\articles\_ipa_command_line.txt & docfx build --globalMetadataFiles link_branch.json @Args if ($lastexitcode -ne 0) {