mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Test references to figures and tables by caption.
This commit is contained in:
parent
0f7072f028
commit
57c438be4f
@ -122,6 +122,8 @@ Inline markup
|
|||||||
* :token:`try statement <try_stmt>`
|
* :token:`try statement <try_stmt>`
|
||||||
* :ref:`admonition-section`
|
* :ref:`admonition-section`
|
||||||
* :ref:`here <some-label>`
|
* :ref:`here <some-label>`
|
||||||
|
* :ref:`my-figure`
|
||||||
|
* :ref:`my-table`
|
||||||
* :doc:`subdir/includes`
|
* :doc:`subdir/includes`
|
||||||
* ``:download:`` is tested in includes.txt
|
* ``:download:`` is tested in includes.txt
|
||||||
* :option:`Python -c option <python -c>`
|
* :option:`Python -c option <python -c>`
|
||||||
@ -142,12 +144,24 @@ Tables
|
|||||||
|
|
||||||
.. tabularcolumns:: |L|p{5cm}|R|
|
.. tabularcolumns:: |L|p{5cm}|R|
|
||||||
|
|
||||||
+----+----------------+----+
|
.. table:: my table
|
||||||
| 1 | * Block elems | x |
|
|
||||||
| | * In table | |
|
+----+----------------+----+
|
||||||
+----+----------------+----+
|
| 1 | * Block elems | x |
|
||||||
| 2 | Empty cells: | |
|
| | * In table | |
|
||||||
+----+----------------+----+
|
+----+----------------+----+
|
||||||
|
| 2 | Empty cells: | |
|
||||||
|
+----+----------------+----+
|
||||||
|
|
||||||
|
|
||||||
|
Figures
|
||||||
|
-------
|
||||||
|
|
||||||
|
.. _my-figure:
|
||||||
|
|
||||||
|
.. figure:: img.png
|
||||||
|
|
||||||
|
My caption of the figure
|
||||||
|
|
||||||
|
|
||||||
Version markup
|
Version markup
|
||||||
|
Loading…
Reference in New Issue
Block a user