File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -597,6 +597,24 @@ Other points to keep in mind
597597 (i.e. scalar types, sequence types), those arguments can be documented
598598 with type `array_like `.
599599
600+ * Links : If you need to include hyperlinks in your docstring, note that
601+ some docstring sections are not parsed as standard reST, and in these
602+ sections, numpydoc may become confused by hyperlink targets such as::
603+
604+ .. _Example: http://www.example.com
605+
606+ If the Sphinx build issues a warning of the form
607+ ``WARNING: Unknown target name: "example" ``, then that is what is happening.
608+ There are two possible workarounds. First, the inline form can be used::
609+
610+ `Example <http://www.example.com>`_
611+
612+ Second, the hyperlink target can be placed in a section that *is * parsed
613+ as standard reST, such as **Notes **. The inline form is recommended, since
614+ it is more likely to "just work", and not require trial-and-error
615+ experimentation with target placement.
616+
617+
600618Common reST concepts
601619--------------------
602620For paragraphs, indentation is significant and indicates indentation in the
You can’t perform that action at this time.
0 commit comments