mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add missing literalinclude options documentation
The start-at and end-at options, added in 560b572
for v1.5a1, #625
weren't previously documented. This fixes that.
This commit is contained in:
parent
b2bd9f75a6
commit
5685512e6a
@ -596,7 +596,8 @@ __ http://pygments.org/docs/lexers/
|
|||||||
``start-after`` is given as a string option, only lines that follow the
|
``start-after`` is given as a string option, only lines that follow the
|
||||||
first line containing that string are included. If ``end-before`` is given
|
first line containing that string are included. If ``end-before`` is given
|
||||||
as a string option, only lines that precede the first lines containing that
|
as a string option, only lines that precede the first lines containing that
|
||||||
string are included.
|
string are included. The ``start-at`` and ``end-at`` options behave in a
|
||||||
|
similar way, but the lines containing the matched string are included.
|
||||||
|
|
||||||
With lines selected using ``start-after`` it is still possible to use
|
With lines selected using ``start-after`` it is still possible to use
|
||||||
``lines``, the first allowed line having by convention the line number
|
``lines``, the first allowed line having by convention the line number
|
||||||
@ -638,6 +639,9 @@ __ http://pygments.org/docs/lexers/
|
|||||||
Added the ``diff``, ``lineno-match``, ``caption``, ``name``, and
|
Added the ``diff``, ``lineno-match``, ``caption``, ``name``, and
|
||||||
``dedent`` options.
|
``dedent`` options.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.5
|
||||||
|
Added the ``start-at``, and ``end-at`` options.
|
||||||
|
|
||||||
.. versionchanged:: 1.6
|
.. versionchanged:: 1.6
|
||||||
With both ``start-after`` and ``lines`` in use, the first line as per
|
With both ``start-after`` and ``lines`` in use, the first line as per
|
||||||
``start-after`` is considered to be with line number ``1`` for ``lines``.
|
``start-after`` is considered to be with line number ``1`` for ``lines``.
|
||||||
|
Loading…
Reference in New Issue
Block a user