summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-directive-code/caption.rst
blob: 77c5c38110e18c913644f657c196917392b68b37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Caption
=======

References
----------

See :numref:`name *test* rb` and :numref:`name **test** py`.

See :ref:`Ruby <name *test* rb>` and :ref:`Python <name **test** py>`.


Code blocks
-----------

.. code-block:: ruby
   :caption: caption *test* rb

   def ruby?
       false
   end


Literal Include
---------------

.. literalinclude:: literal.inc
   :language: python
   :caption: caption **test** py
   :lines: 10-11


Named Code blocks
-----------------

.. code-block:: ruby
   :name: name *test* rb
   :caption: caption *test* rbnamed

   def ruby?
       false
   end


Named Literal Include
---------------------

.. literalinclude:: literal.inc
   :language: python
   :name: name **test** py
   :caption: caption **test** pynamed
   :lines: 10-11