From 00854d5a438905fae46a6bed3db12cd505bb92e5 Mon Sep 17 00:00:00 2001 From: Jeremy Goh <30731072+thatlittleboy@users.noreply.github.com> Date: Mon, 18 Jul 2022 21:26:44 +0800 Subject: docs: fix validation include line numbers (#418) * docs: fix validation include line numbers * use start/end markers instead of hardcoding lineno * Add missing sentinel + explanatory comment. Co-authored-by: Ross Barnowski --- doc/validation.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/validation.rst b/doc/validation.rst index 8235559..ee6e08d 100644 --- a/doc/validation.rst +++ b/doc/validation.rst @@ -64,4 +64,5 @@ a more detailed message. For example:: The full mapping of validation checks is given below. .. literalinclude:: ../numpydoc/validate.py - :lines: 36-90 + :start-after: start-err-msg + :end-before: end-err-msg -- cgit v1.2.1