File: caption.rst

package info (click to toggle)
sphinx 9.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 28,732 kB
  • sloc: python: 109,394; javascript: 37,318; perl: 449; makefile: 183; sh: 37; xml: 19; ansic: 2
file content (52 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (66)
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