Browse Source

Updated CM schema

Tig 1 year ago
parent
commit
fab361d554

+ 2 - 2
Terminal.Gui/Resources/config.json

@@ -10,7 +10,8 @@
   // note that not all values here will be recreated (e.g. the Light and Dark themes and any property initialized
   // null).
   //
-  "$schema": "https://gui-cs.github.io/Terminal.Gui/schemas/tui-config-schema.json",
+  // TODO: V2 - Reference via http
+  "$schema": "../../docfx/schemas/tui-config-schema.json",
 
   // Set this to true in a .config file to be loaded to cause JSON parsing errors
   // to throw exceptions. 
@@ -19,7 +20,6 @@
   "Application.AlternateBackwardKey": "Ctrl+PageUp",
   "Application.AlternateForwardKey": "Ctrl+PageDown",
   "Application.QuitKey": "Esc",
-  "Application.IsMouseDisabled": false,
   "Theme": "Default",
   "Themes": [
     {

+ 2 - 2
Terminal.Gui/View/ViewKeyboard.cs

@@ -745,8 +745,8 @@ public partial class View
     /// <summary>
     /// Returns true if Key is bound in this view heirarchy. For debugging
     /// </summary>
-    /// <param name="key"></param>
-    /// <param name="boundView"></param>
+    /// <param name="key">The key to test.</param>
+    /// <param name="boundView">Returns the view the key is bound to.</param>
     /// <returns></returns>
     public bool IsHotKeyKeyBound (Key key, out View boundView)
     {

+ 2 - 3
docfx/docfx.json

@@ -29,14 +29,13 @@
     "template": [
       "default",
       "templates/modern"
-      // ,
-      // "templates/singulinkfx"
     ],
     "output": "_site",
     "content": [
       {
         "files": [
-          "**/*.{md,yml}"
+          "**/*.{md,yml}",
+          "schemas/**.json"
         ],
         "exclude": [
           "_site/**"

+ 1 - 5
docfx/schemas/tui-config-schema.json

@@ -3,10 +3,6 @@
   "description": "The JSON schema for the Terminal.Gui Configuration Manager (https://gui-cs.github.io/Terminal.Gui/schemas/tui-config-schema.json).",
   "type": "object",
   "properties": {
-    "Application.HeightAsBuffer": {
-      "description": "See HeightAsBuffer API documentation.",
-      "type": "boolean"
-    },
     "Application.AlternateForwardKey": {
       "description": "Alternative key for navigating forwards through views. SCtrl+Tab is the primary key.",
       "$ref": "#/definitions/Key"
@@ -16,7 +12,7 @@
       "$ref": "#/definitions/Key"
     },
     "Application.QuitKey": {
-      "description": "The key to quit the application. Ctrl+Q is the default.",
+      "description": "The key to quit the application. Esc is the default.",
       "$ref": "#/definitions/Key"
     },
     "Application.IsMouseDisabled": {