mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
added test .rst files
This commit is contained in:
17
tests/roots/test-directive-code/lineno_match.rst
Normal file
17
tests/roots/test-directive-code/lineno_match.rst
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
Literal Includes with Line Numbers Matching
|
||||||
|
===========================================
|
||||||
|
|
||||||
|
.. literalinclude:: literal.inc
|
||||||
|
:language: python
|
||||||
|
:pyobject: Bar
|
||||||
|
:lineno-match:
|
||||||
|
|
||||||
|
.. literalinclude:: literal.inc
|
||||||
|
:language: python
|
||||||
|
:lines: 6,7,8-9
|
||||||
|
:lineno-match:
|
||||||
|
|
||||||
|
.. literalinclude:: literal.inc
|
||||||
|
:language: python
|
||||||
|
:start-after: pass
|
||||||
|
:lineno-match:
|
||||||
6
tests/roots/test-directive-code/lineno_start.rst
Normal file
6
tests/roots/test-directive-code/lineno_start.rst
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Literal Includes with Line Numbers Starting from 200
|
||||||
|
====================================================
|
||||||
|
|
||||||
|
.. literalinclude:: literal.inc
|
||||||
|
:language: python
|
||||||
|
:lineno-start: 200
|
||||||
6
tests/roots/test-directive-code/linenos.rst
Normal file
6
tests/roots/test-directive-code/linenos.rst
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Literal Includes with Line Numbers
|
||||||
|
==================================
|
||||||
|
|
||||||
|
.. literalinclude:: literal.inc
|
||||||
|
:language: python
|
||||||
|
:linenos:
|
||||||
Reference in New Issue
Block a user