]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: use console lexer for rendering command line sessions 32141/head
authorKefu Chai <kchai@redhat.com>
Tue, 10 Dec 2019 04:41:36 +0000 (12:41 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 10 Dec 2019 04:46:42 +0000 (12:46 +0800)
by default the pygements uses python lexer for rendering literal blocks,
and `#` is considered as the marker for inline comments. in this change,
the "console" lexer is specified explicitly. see
https://pygments.org/docs/lexers/#lexers-for-various-shells for more details,
in which "BashSessionLexer" is for this very use case.

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

index 12182f6de4ed2aa9f18ea0c1417b8517459cbf79..138d1efbd2011436aea7a242113eb4f69f74ef75 100644 (file)
@@ -17,6 +17,8 @@ should be issued on which systems.
 of this installation guide means that the associated command
 can be run on any node.
 
+.. highlight:: console
+
 Get ceph-daemon
 ===============