@@ -112,20 +112,20 @@ includes a ``make.bat`` batch file that emulates its interface.
112112Example Docstring
113113-----------------
114114
115- Here is a template for a function docstring that tries to encapsulate all
116- the features that may be used in any docstring. This is a template, so
117- not all sections are required for every function, but is a good starting point .
115+ Here is a template for a function docstring that encapsulates the main
116+ features that may be used in any docstring. Note that not all sections are
117+ required for every function.
118118
119119.. code-block :: python
120120
121121 def example_function (poa_global , exponents , degree_symbol ,
122- default_arg = ' someval' , optional_arg = None ):
122+ default_arg = ' someval' , optional_arg = None ):
123123 r """
124- A brief summary of the function.
124+ Brief summary of the function (no citations) .
125125
126- A longer description of the function. This can include references
127- to literature [1]_, websites, and other code elements such as
128- functions (:py:func:`pvlib.location.lookup_altitude`) and
126+ A longer description of the function. This can include citations
127+ (references) to literature [1]_, websites [2]_ , and other code elements
128+ such as functions (:py:func:`pvlib.location.lookup_altitude`) and
129129 classes (:py:class:`pvlib.location.Location`).
130130
131131 .. versionadded:: 0.0.1
@@ -139,8 +139,8 @@ not all sections are required for every function, but is a good starting point.
139139 poa_global : numeric
140140 Plane-of-array global irradiance, see :term:`poa_global`. [Wm⁻²].
141141 exponents : array-like
142- A list of exponents. [x⁰¹²³⁴⁵⁶⁷⁸⁹⁺ ⁻].
143- degree_symbol : numeric
142+ A list of exponents. [x⁰¹²³⁴⁵⁶⁷⁸⁹⁻].
143+ degree_symbol : pandas.Series or pandas.DataFrame
144144 It's different from superscript zero. [°].
145145 default_arg : string, default ``'someval'``.
146146 Text enclosed in double backticks mean code formatting.
@@ -169,7 +169,7 @@ not all sections are required for every function, but is a good starting point.
169169
170170 a = \left(\frac{b}{c}\right)^2
171171
172- where :math:`a` is the result of the equation, :math:`b` and :math:`c`
172+ where :math:`a` is the result of the equation, and :math:`b` and :math:`c`
173173 are inputs.
174174
175175 Or a figure with a caption:
@@ -202,7 +202,7 @@ not all sections are required for every function, but is a good starting point.
202202 """
203203 return " None"
204204
205- A preview on how this would render in the documentation can be seen in the
205+ A preview of how this docstring would render in the documentation can be seen in the
206206following file: :download: `Example docstring<../_images/example_function_screenshot.png> `.
207207
208208Remember that to show the docstring in the documentation, you must list
0 commit comments