From 4883e46215139eeaf7bc968986cb46e79fa9aedc Mon Sep 17 00:00:00 2001
From: TheBoxyBear <15822255+TheBoxyBear@users.noreply.github.com>
Date: Wed, 4 Sep 2024 22:33:18 -0400
Subject: [PATCH] Fix global event from file
---
ChartTools/Events/GlobalEvent.cs | 5 +++--
Docs/Program.cs | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/ChartTools/Events/GlobalEvent.cs b/ChartTools/Events/GlobalEvent.cs
index fb102f75..744f0488 100644
--- a/ChartTools/Events/GlobalEvent.cs
+++ b/ChartTools/Events/GlobalEvent.cs
@@ -29,11 +29,12 @@ public GlobalEvent(uint position, string type, string? argument = null) : base(p
/// Reads global events from a file.
///
/// Path of the file
- public static IEnumerable FromFile(string path) => ExtensionHandler.Read>(path, (".chart", ChartFile.ReadGlobalEvents));
+ public static IEnumerable FromFile(string path) => ExtensionHandler.Read>(path, (".chart", p => ChartFile.ReadGlobalEvents(p));
+
///
/// Reads global events from a file asynchronously using multitasking.
///
///
/// Token to request cancellation
- public static async Task> FromFileAsync(string path, CancellationToken cancellationToken) => await ExtensionHandler.ReadAsync>(path, (".chart", path => ChartFile.ReadGlobalEventsAsync(path, cancellationToken)));
+ public static async Task> FromFileAsync(string path, CancellationToken cancellationToken) => await ExtensionHandler.ReadAsync(path, (".chart", path => ChartFile.ReadGlobalEventsAsync(path, cancellationToken)));
}
diff --git a/Docs/Program.cs b/Docs/Program.cs
index 2c377df5..99e341fa 100644
--- a/Docs/Program.cs
+++ b/Docs/Program.cs
@@ -9,7 +9,7 @@
Console.WriteLine("------- Building site with DocFx -------");
// TODO Only build api if the assembly is more recent than the last site build
-//await DotnetApiCatalog.GenerateManagedReferenceYamlFiles(config);
+await DotnetApiCatalog.GenerateManagedReferenceYamlFiles(config);
await Docset.Build(config);