]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/dev: specify lexer of pygment
authorKefu Chai <kchai@redhat.com>
Sun, 14 Mar 2021 12:12:37 +0000 (20:12 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 16 Mar 2021 12:22:12 +0000 (20:22 +0800)
for better rendering result

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/dev/documenting.rst
doc/dev/encoding.rst

index 1e10776ce037e661187659dcd9fe164e4f791e61..3e4c942faed1a7208ad829e0d3bddccdd0d03d57 100644 (file)
@@ -33,7 +33,9 @@ markup supported by Breathe_.
 .. _Doxygen: http://www.doxygen.nl/
 .. _Breathe: https://github.com/michaeljones/breathe
 
-The general format for function documentation is::
+The general format for function documentation is
+
+.. code-block:: c
 
   /**
    * Short description
index 398c85d95f9038723b29616516fd1bd19ccc64fa..81b52500e63b421042c5aed93d72b742a8c14b32 100644 (file)
@@ -13,7 +13,7 @@ Adding a field to a structure
 You can see examples of this all over the Ceph code, but here's an
 example:
 
-::
+.. code-block:: cpp
 
     class AcmeClass
     {
@@ -55,7 +55,7 @@ at the end of the ``encode`` and ``decode`` functions, and incrementing
 the versions in ``ENCODE_START`` and ``DECODE_START``.  For example, here's how
 to add a third field to ``AcmeClass``:
 
-::
+.. code-block:: cpp
 
     class AcmeClass
     {