Separate numfig testcase from toctree's

This commit is contained in:
tk0miya
2014-09-27 16:49:28 +09:00
parent c35886f6d0
commit 0c5b460dc6
11 changed files with 276 additions and 200 deletions

View File

@@ -0,0 +1,58 @@
===
Bar
===
Bar A
=====
.. figure:: rimg.png
should be Fig.2.1
.. csv-table:: should be Table 2.1
:header-rows: 0
hello,world
.. code-block:: python
:caption: should be List 2.1
print('hello world')
.. toctree::
baz
.. figure:: rimg.png
should be Fig.2.3
.. csv-table:: should be Table 2.3
:header-rows: 0
hello,world
.. code-block:: python
:caption: should be List 2.3
print('hello world')
Bar B
=====
Bar B1
------
.. figure:: rimg.png
should be Fig.2.4
.. csv-table:: should be Table 2.4
:header-rows: 0
hello,world
.. code-block:: python
:caption: should be List 2.4
print('hello world')

View File

@@ -0,0 +1,16 @@
Baz A
-----
.. figure:: rimg.png
should be Fig.2.2
.. csv-table:: should be Table 2.2
:header-rows: 0
hello,world
.. code-block:: python
:caption: should be List 2.2
print('hello world')

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
master_doc = 'index'

View File

@@ -0,0 +1,71 @@
===
Foo
===
.. figure:: rimg.png
should be Fig.1.1
.. csv-table:: should be Table 1.1
:header-rows: 0
hello,world
.. code-block:: python
:caption: should be List 1.1
print('hello world')
Foo A
=====
.. figure:: rimg.png
should be Fig.1.2
.. figure:: rimg.png
should be Fig.1.3
.. csv-table:: should be Table 1.2
:header-rows: 0
hello,world
.. csv-table:: should be Table 1.3
:header-rows: 0
hello,world
.. code-block:: python
:caption: should be List 1.2
print('hello world')
.. code-block:: python
:caption: should be List 1.3
print('hello world')
Foo A1
------
Foo B
=====
Foo B1
------
.. figure:: rimg.png
should be Fig.1.4
.. csv-table:: should be Table 1.4
:header-rows: 0
hello,world
.. code-block:: python
:caption: should be List 1.4
print('hello world')

View File

@@ -0,0 +1,36 @@
test-tocdepth
=============
.. toctree::
:numbered:
foo
bar
.. figure:: rimg.png
should be Fig.1
.. figure:: rimg.png
should be Fig.2
.. csv-table:: should be Table 1
:header-rows: 0
hello,world
.. csv-table:: should be Table 2
:header-rows: 0
hello,world
.. code-block:: python
:caption: should be List 1
print('hello world')
.. code-block:: python
:caption: should be List 2
print('hello world')

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B