Browse Source

Tweaked some doc gen stuff

pull/46/head
Anairkoen Schno 4 years ago
parent
commit
39622e4b3c
2 changed files with 2 additions and 4 deletions
  1. +1
    -3
      IPA.Loader/Config/SelfConfig.cs
  2. +1
    -1
      docs/build.ps1

+ 1
- 3
IPA.Loader/Config/SelfConfig.cs View File

@ -89,7 +89,6 @@ namespace IPA.Config
// LINE: ignore // LINE: ignore
[NonNullable] [NonNullable]
[JsonProperty(Required = Required.DisallowNull)] // the JsonProperty annotations are for the generated schema
public virtual Updates_ Updates { get; set; } = new Updates_(); public virtual Updates_ Updates { get; set; } = new Updates_();
public class Debug_ public class Debug_
@ -130,7 +129,6 @@ namespace IPA.Config
// LINE: ignore // LINE: ignore
[NonNullable] [NonNullable]
[JsonProperty(Required = Required.DisallowNull)]
public virtual Debug_ Debug { get; set; } = new Debug_(); public virtual Debug_ Debug { get; set; } = new Debug_();
public virtual bool YeetMods { get; set; } = true; public virtual bool YeetMods { get; set; } = true;
@ -140,7 +138,6 @@ namespace IPA.Config
// LINE: ignore // LINE: ignore
[NonNullable, UseConverter(typeof(CollectionConverter<string, HashSet<string>>))] [NonNullable, UseConverter(typeof(CollectionConverter<string, HashSet<string>>))]
[JsonProperty(Required = Required.DisallowNull)]
public virtual HashSet<string> GameAssemblies { get; set; } = new HashSet<string> public virtual HashSet<string> GameAssemblies { get; set; } = new HashSet<string>
{ {
// LINE: ignore 5 // LINE: ignore 5
@ -153,6 +150,7 @@ namespace IPA.Config
// LINE: ignore // LINE: ignore
public static HashSet<string> GameAssemblies_ => Instance?.GameAssemblies ?? new HashSet<string> { "Assembly-CSharp.dll" }; public static HashSet<string> GameAssemblies_ => Instance?.GameAssemblies ?? new HashSet<string> { "Assembly-CSharp.dll" };
[JsonProperty(Required = Required.DisallowNull)] // Used for documentation schema generation
public virtual string LastGameVersion { get; set; } = null; public virtual string LastGameVersion { get; set; } = null;
// LINE: ignore // LINE: ignore
public static string LastGameVersion_ => Instance?.LastGameVersion; public static string LastGameVersion_ => Instance?.LastGameVersion;


+ 1
- 1
docs/build.ps1 View File

@ -96,7 +96,7 @@ if (-not (Test-Path $ipaExe -PathType Leaf)) {
msbuild -p:Configuration=Release -p:Platform=AnyCPU -p:SolutionDir=.. "$ipaRoot/IPA.csproj" 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 & docfx build --globalMetadataFiles link_branch.json @Args
if ($lastexitcode -ne 0) { if ($lastexitcode -ne 0) {


Loading…
Cancel
Save