Răsfoiți Sursa

Help: Use `caption` option of `code-block` for JSON trace format snippets

Alex Turbov 3 ani în urmă
părinte
comite
c9eb090902
1 a modificat fișierele cu 2 adăugiri și 4 ștergeri
  1. 2 4
      Help/manual/cmake.1.rst

+ 2 - 4
Help/manual/cmake.1.rst

@@ -362,9 +362,8 @@ Options
      separated by a newline ( ``\n`` ). It is guaranteed that no
      newline characters will be present inside a JSON document.
 
-     JSON trace format:
-
      .. code-block:: json
+       :caption: JSON trace format
 
        {
          "file": "/full/path/to/the/CMake/file.txt",
@@ -417,9 +416,8 @@ Options
      Additionally, the first JSON document outputted contains the
      ``version`` key for the current major and minor version of the
 
-     JSON trace format:
-
      .. code-block:: json
+       :caption: JSON version format
 
        {
          "version": {