summaryrefslogtreecommitdiff
path: root/tests/root
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-05-30 12:42:05 +0200
committerGeorg Brandl <georg@python.org>2010-05-30 12:42:05 +0200
commit25c268081a9e01dbc2f1d52e777ddacae2643e1b (patch)
tree78e72be84275ca39bc1dda4ff594352e3b1f9ef4 /tests/root
parentd653dacea8d7a933a02dbf08ad1708255ad14630 (diff)
downloadsphinx-25c268081a9e01dbc2f1d52e777ddacae2643e1b.tar.gz
Test references to figures and tables by caption.
Diffstat (limited to 'tests/root')
-rw-r--r--tests/root/markup.txt26
1 files changed, 20 insertions, 6 deletions
diff --git a/tests/root/markup.txt b/tests/root/markup.txt
index f9dfaa89..e286d26c 100644
--- a/tests/root/markup.txt
+++ b/tests/root/markup.txt
@@ -122,6 +122,8 @@ Inline markup
* :token:`try statement <try_stmt>`
* :ref:`admonition-section`
* :ref:`here <some-label>`
+* :ref:`my-figure`
+* :ref:`my-table`
* :doc:`subdir/includes`
* ``:download:`` is tested in includes.txt
* :option:`Python -c option <python -c>`
@@ -142,12 +144,24 @@ Tables
.. tabularcolumns:: |L|p{5cm}|R|
-+----+----------------+----+
-| 1 | * Block elems | x |
-| | * In table | |
-+----+----------------+----+
-| 2 | Empty cells: | |
-+----+----------------+----+
+.. table:: my table
+
+ +----+----------------+----+
+ | 1 | * Block elems | x |
+ | | * In table | |
+ +----+----------------+----+
+ | 2 | Empty cells: | |
+ +----+----------------+----+
+
+
+Figures
+-------
+
+.. _my-figure:
+
+.. figure:: img.png
+
+ My caption of the figure
Version markup