Skip to content

Commit bf680c6

Browse files
committed
Partially suppress warnings in tests.
* Use :orphan: to supress "document isn't included in any toctree" * Add line break between consecutive lists * Move non-existing target test to separate file (still gives expected warning)
1 parent eee13ac commit bf680c6

35 files changed

+70
-6
lines changed

tests/datasets/common/bold.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
:orphan:
2+
13
This is **bold**.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
:orphan:
2+
13
- one
24
- two
5+
36
* three
47
* four

tests/datasets/common/bullet-list.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
First list:
24

35
- one

tests/datasets/common/definition-list.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
Definition lists:
24

35
what

tests/datasets/common/external-hyperlinks.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
Embedded external hyperlinks, like `Python
24
<https://www.python.org/>`_.
35

tests/datasets/common/grid-table.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
+---+---+
24
| a | b |
35
+===+===+

tests/datasets/common/headings.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
Headline
24
========
35
Text immediately following.

tests/datasets/common/hyperlink-targets.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
.. _target:
24

35
The hyperlink target above points to this paragraph.

tests/datasets/common/indentation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
Not indented
24

35
Four spaces

tests/datasets/common/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
:orphan:
2+
13
This directory contains test of common reStructuredText markup.
24
See https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html

0 commit comments

Comments
 (0)