mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge branch '2.0'
This commit is contained in:
23
tests/roots/test-directive-code/linenothreshold.rst
Normal file
23
tests/roots/test-directive-code/linenothreshold.rst
Normal file
@@ -0,0 +1,23 @@
|
||||
Code Blocks and Literal Includes with Line Numbers via linenothreshold
|
||||
======================================================================
|
||||
|
||||
.. highlight:: python
|
||||
:linenothreshold: 5
|
||||
|
||||
.. code-block::
|
||||
|
||||
class Foo:
|
||||
pass
|
||||
|
||||
class Bar:
|
||||
def baz():
|
||||
pass
|
||||
|
||||
.. code-block::
|
||||
|
||||
# comment
|
||||
value = True
|
||||
|
||||
.. literalinclude:: literal.inc
|
||||
|
||||
.. literalinclude:: literal-short.inc
|
||||
3
tests/roots/test-directive-code/literal-short.inc
Normal file
3
tests/roots/test-directive-code/literal-short.inc
Normal file
@@ -0,0 +1,3 @@
|
||||
# Very small literal include (linenothreshold check)
|
||||
|
||||
value = True
|
||||
@@ -15,6 +15,13 @@ test-image
|
||||
|
||||
.. image:: testimäge.png
|
||||
|
||||
.. image:: rimg.png
|
||||
:target: https://www.sphinx-doc.org/
|
||||
|
||||
.. image:: rimg.png
|
||||
:align: center
|
||||
:target: https://www.python.org/
|
||||
|
||||
.. a remote image
|
||||
.. image:: https://www.python.org/static/img/python-logo.png
|
||||
|
||||
|
||||
Reference in New Issue
Block a user