Explorar el Código

Help: Move vendor field into example

This ensures that the vendor field gets automated testing from the
example.
Kyle Edwards hace 5 años
padre
commit
d30f85193f
Se han modificado 2 ficheros con 12 adiciones y 14 borrados
  1. 1 13
      Help/manual/cmake-presets.7.rst
  2. 11 1
      Help/manual/presets/example.json

+ 1 - 13
Help/manual/cmake-presets.7.rst

@@ -65,19 +65,7 @@ Format
     it does exist. However, the keys should be a vendor-specific domain name
     followed by a ``/``-separated path. For example, the Example IDE 1.0 could
     use ``example.com/ExampleIDE/1.0``. The value of each field can be anything
-    desired by the vendor, though will typically be a map. For example:
-
-    .. code-block:: json
-
-      {
-        "version": 1,
-        "vendor": {
-          "example.com/ExampleIDE/1.0": {
-            "autoFormat": true
-          }
-        },
-        "configurePresets": []
-      }
+    desired by the vendor, though will typically be a map.
 
   ``configurePresets``
 

+ 11 - 1
Help/manual/presets/example.json

@@ -17,7 +17,17 @@
           "type": "BOOL",
           "value": "OFF"
         }
+      },
+      "vendor": {
+        "example.com/ExampleIDE/1.0": {
+          "autoFormat": true
+        }
       }
     }
-  ]
+  ],
+  "vendor": {
+    "example.com/ExampleIDE/1.0": {
+      "autoFormat": false
+    }
+  }
 }