]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/radosgw: Promptify CLI commands in compression.rst 63008/head
authorVille Ojamo <14869000+bluikko@users.noreply.github.com>
Mon, 28 Apr 2025 10:23:44 +0000 (17:23 +0700)
committerVille Ojamo <14869000+bluikko@users.noreply.github.com>
Mon, 28 Apr 2025 10:23:44 +0000 (17:23 +0700)
Use the bash prompt block for example CLI command.
Separate command output from the CLI command.

Use the correct privileged bash prompt on an already
promptified example command, instead of an
unprivileged bash prompt.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
doc/radosgw/compression.rst

index 429dde91c73ddf6290d7266e6447804f982ca22e..288cfef92d995e87f90997b8c4712d456ed2c15f 100644 (file)
@@ -34,13 +34,17 @@ Compression settings apply to all new objects uploaded to buckets using this
 placement target. Compression can be disabled by setting the ``type`` to an
 empty string or ``none``.
 
-For example::
+For example:
+
+.. prompt:: bash #
+
+   radosgw-admin zone placement modify --rgw-zone default \
+                                         --placement-id default-placement \
+                                         --storage-class STANDARD \
+                                         --compression zlib
+
+::
 
-  $ radosgw-admin zone placement modify \
-        --rgw-zone default \
-        --placement-id default-placement \
-        --storage-class STANDARD \
-        --compression zlib
   {
   ...
       "placement_pools": [
@@ -72,7 +76,7 @@ Statistics
 Run the ``radosgw-admin bucket stats`` command to see compression statistics
 for a given bucket:
 
-.. prompt:: bash
+.. prompt:: bash #
 
    radosgw-admin bucket stats --bucket=<name>