diff --git a/Terminal.Gui/Configuration/ConfigurationManager.cs b/Terminal.Gui/Configuration/ConfigurationManager.cs index 25826339a2..0171fc844c 100644 --- a/Terminal.Gui/Configuration/ConfigurationManager.cs +++ b/Terminal.Gui/Configuration/ConfigurationManager.cs @@ -24,7 +24,7 @@ namespace Terminal.Gui; /// /// /// Settings are defined in JSON format, according to this schema: -/// https://gui-cs.github.io/Terminal.Gui/schemas/tui-config-schema.json +/// https://gui-cs.github.io/Terminal.GuiV2Docs/schemas/tui-config-schema.json /// /// /// Settings that will apply to all applications (global settings) reside in files named config.json. diff --git a/Terminal.Gui/Configuration/SettingsScope.cs b/Terminal.Gui/Configuration/SettingsScope.cs index b9eb16cfe4..2ac4bf4c13 100644 --- a/Terminal.Gui/Configuration/SettingsScope.cs +++ b/Terminal.Gui/Configuration/SettingsScope.cs @@ -14,7 +14,7 @@ namespace Terminal.Gui; /// /// /// { -/// "$schema" : "https://gui-cs.github.io/Terminal.Gui/schemas/tui-config-schema.json", +/// "$schema" : "https://gui-cs.github.io/Terminal.GuiV2Docs/schemas/tui-config-schema.json", /// "Application.UseSystemConsole" : true, /// "Theme" : "Default", /// "Themes": { @@ -32,7 +32,7 @@ public class SettingsScope : Scope /// Points to our JSON schema. [JsonInclude] [JsonPropertyName ("$schema")] - public string Schema { get; set; } = "https://gui-cs.github.io/Terminal.Gui/schemas/tui-config-schema.json"; + public string Schema { get; set; } = "https://gui-cs.github.io/Terminal.GuiV2Docs/schemas/tui-config-schema.json"; /// Updates the with the settings in a JSON string. /// Json document to update the settings with. diff --git a/Terminal.Gui/Resources/config.json b/Terminal.Gui/Resources/config.json index 0189e45c67..1e92184d8c 100644 --- a/Terminal.Gui/Resources/config.json +++ b/Terminal.Gui/Resources/config.json @@ -10,8 +10,7 @@ // note that not all values here will be recreated (e.g. the Light and Dark themes and any property initialized // null). // - // TODO: V2 - Reference via http - "$schema": "../../docfx/schemas/tui-config-schema.json", + "$schema": "https://gui-cs.github.io/Terminal.GuiV2Docs/schemas/tui-config-schema.json", // Set this to true in a .config file to be loaded to cause JSON parsing errors // to throw exceptions. @@ -22,7 +21,7 @@ "Application.NextTabGroupKey": "F6", "Application.PrevTabGroupKey": "Shift+F6", "Application.QuitKey": "Esc", - "Application.ArrangeKey": "Ctrl+F5", + "Application.ArrangeKey": "Ctrl+F5", "Key.Separator": "+", "Theme": "Default", diff --git a/UICatalog/Resources/config.json b/UICatalog/Resources/config.json index d82004ff2c..5aa533b7f3 100644 --- a/UICatalog/Resources/config.json +++ b/UICatalog/Resources/config.json @@ -1,5 +1,5 @@ { - "$schema": "https://gui-cs.github.io/Terminal.Gui/schemas/tui-config-schema.json", + "$schema": "https://gui-cs.github.io/Terminal.GuiV2Docs/schemas/tui-config-schema.json", "FileDialog.MaxSearchResults": 10000, "FileDialogStyle.DefaultUseColors": false, "FileDialogStyle.DefaultUseUnicodeCharacters": false, diff --git a/UnitTests/Configuration/ConfigurationMangerTests.cs b/UnitTests/Configuration/ConfigurationMangerTests.cs index c7b5ef8a40..5f8e767c01 100644 --- a/UnitTests/Configuration/ConfigurationMangerTests.cs +++ b/UnitTests/Configuration/ConfigurationMangerTests.cs @@ -666,7 +666,7 @@ public void TestConfigurationManagerUpdateFromJson () // Arrange var json = @" { - ""$schema"": ""https://gui-cs.github.io/Terminal.Gui/schemas/tui-config-schema.json"", + ""$schema"": ""https://gui-cs.github.io/Terminal.GuiV2Docs/schemas/tui-config-schema.json"", ""Application.QuitKey"": ""Alt-Z"", ""Theme"": ""Default"", ""Themes"": [ diff --git a/UnitTests/Configuration/KeyJsonConverterTests.cs b/UnitTests/Configuration/KeyJsonConverterTests.cs index 4e716c866c..de9a5553ab 100644 --- a/UnitTests/Configuration/KeyJsonConverterTests.cs +++ b/UnitTests/Configuration/KeyJsonConverterTests.cs @@ -40,7 +40,6 @@ public void TestKey_Serialize (KeyCode key, string expected) [InlineData (KeyCode.D4, "4")] [InlineData (KeyCode.Esc, "Esc")] [InlineData ((KeyCode)'+' | KeyCode.AltMask | KeyCode.CtrlMask, "Ctrl+Alt++")] - [InlineData ((KeyCode)'+' | KeyCode.AltMask | KeyCode.CtrlMask, "Ctrl+Alt++")] public void TestKeyRoundTripConversion (KeyCode key, string expectedStringTo) { // Arrange