summaryrefslogtreecommitdiff
path: root/doc/usage
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-05-22 16:02:43 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2022-05-22 16:03:33 +0900
commit1856ee638b08e39b568f9e983696d4302b48066d (patch)
treed814caf43d623dbafab10ee21b32c08284fac9c0 /doc/usage
parent21df068fb966d2e5a61f0e52d21a79aa9f84fcac (diff)
downloadsphinx-git-1856ee638b08e39b568f9e983696d4302b48066d.tar.gz
Close #10461: doc: Add an explanation for :class: option of code-block directive
Diffstat (limited to 'doc/usage')
-rw-r--r--doc/usage/restructuredtext/directives.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/usage/restructuredtext/directives.rst b/doc/usage/restructuredtext/directives.rst
index 847f0372b..4029b04e6 100644
--- a/doc/usage/restructuredtext/directives.rst
+++ b/doc/usage/restructuredtext/directives.rst
@@ -592,6 +592,13 @@ __ https://pygments.org/docs/lexers
.. versionadded:: 1.3
+ .. rst:directive:option:: class: class names
+ :type: a list of class names separated by spaces
+
+ The class name of the graph.
+
+ .. versionadded:: 1.4
+
.. rst:directive:option:: dedent: number
:type: number or no value
@@ -758,6 +765,9 @@ __ https://pygments.org/docs/lexers
Added the ``diff``, ``lineno-match``, ``caption``, ``name``, and
``dedent`` options.
+ .. versionchanged:: 1.4
+ Added the ``class`` option.
+
.. versionchanged:: 1.5
Added the ``start-at``, and ``end-at`` options.