Skip to content

Commit b9946b2

Browse files
RDaxinicwhanseechedey-ls
authored
Add style guide for references in contributing/style_guide.rst (#2226)
* initial draft --- references style guide * `` edit * minor edits * remove notes to self * add more reference types * bold formatting * Update style_guide.rst * formatting * Apply suggestions from code review Co-authored-by: Cliff Hansen <[email protected]> * edit section intro Co-Authored-By: Cliff Hansen <[email protected]> * edit reference example * edit reference example * overview+author list, delete consistency comment * fix example * replace quotation marks * review * Update v0.11.2.rst * Update docs/sphinx/source/contributing/style_guide.rst Co-authored-by: Echedey Luis <[email protected]> * Update v0.11.2.rst * add website reference example also full stops (required except in the case of ending with a URL) * Update v0.11.2.rst * add section link to whatsnew --------- Co-authored-by: Cliff Hansen <[email protected]> Co-authored-by: Cliff Hansen <[email protected]> Co-authored-by: Echedey Luis <[email protected]>
1 parent 943fcbe commit b9946b2

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

docs/sphinx/source/contributing/style_guide.rst

+75
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,81 @@ the ``docs/readthedocs.org:pvlib-python`` link within the checks
7070
status box at the bottom of the pull request.
7171

7272

73+
.. _references:
74+
75+
References
76+
----------
77+
pvlib-python is transitioning to the `IEEE reference style <https://journals.ieeeauthorcenter.ieee.org/wp-content/uploads/sites/7/IEEE_Reference_Guide.pdf>`_,
78+
which should be used in all new contributions. At minimum, a reference should
79+
include:
80+
81+
* Author list (for more than six authors, list only the first with et al.)
82+
* Publication title
83+
* Publisher (journal title, laboratory name, etc.)
84+
* Year of publication
85+
* DOI (if available)
86+
87+
The recommended citation style for several media types is as follows:
88+
89+
**Journal article**:
90+
91+
Author initials and surname, "Title of article," abbreviated journal
92+
title, vol. number, issue number, page numbers, Abbreviated Month Year.
93+
94+
**Book**:
95+
96+
Author initials. Author Surname, "Chapter title" in Book Title, xth ed.
97+
City of Publisher, (only U.S. State), Country: Abbrev. of Publisher, year,
98+
ch. x, sec. x, pp. xxx–xxx.
99+
100+
**Technical report**:
101+
102+
Author initials. Author Surname, "Report title" Abbrev. publisher name,
103+
City of publisher, Abbrev. State, Country, Rep. xxx, year
104+
105+
The example below shows how to cite material and generate a reference list
106+
using the IEEE style in a docstring::
107+
108+
This is the recommended citation for the pvlib-python project [1]_. There
109+
are also some conference papers linked to pvlib, for example [2]_.
110+
111+
Other types of reference you may find in the pvlib-python documentation
112+
include books [3]_, technical reports [4]_, and websites [5]_.
113+
114+
References
115+
----------
116+
.. [1] K. Anderson, C. Hansen, W. Holmgren, A. Jensen, M. Mikofski,
117+
and A Driesse. "pvlib python: 2023 project update." J. Open Source
118+
Softw. vol. 8, no. 92, pp. 5994, Dec 2023,
119+
:doi:`10.21105/joss.05994`.
120+
121+
.. [2] J. S. Stein, "The Photovoltaic Performance Modeling Collaborative
122+
(PVPMC)," In Proc. 38th IEEE Photovoltaic Specialists Conference
123+
(PVSC), Austin, TX, USA, 2012, pp. 3048-3052,
124+
:doi:`10.1109/PVSC.2012.6318225`.
125+
126+
.. [3] J. A. Duffie and W. A. Beckman, "Solar Radiation" in Solar
127+
Engineering of Thermal Processes, 3rd ed, New York, USA, J. Wiley
128+
and Sons, 2006, ch. 1, sec. 1.5, pp.9-11.
129+
130+
.. [4] R. Bird and C. Riordan, "Simple solar spectral model for direct and
131+
diffuse irradiance on horizontal and tilted planes at the earth’s
132+
surface for cloudless atmospheres", NREL, Golden, CO, USA, Technical
133+
Report TR-215-2436, 1984, :doi:`10.2172/5986936`.
134+
135+
.. [5] "PVPMC Home." Sandia National Laboratories PV Performance Modeling
136+
Collaborative. Accessed: Oct. 17, 2024. [Online.] Available:
137+
<https://pvpmc.sandia.gov/>_
138+
139+
Things to note:
140+
141+
* In-text numeric citations are a number inside square brackets, followed
142+
by an underscore, e.g. ``[1]_``.
143+
* To include a DOI, you can use pvlib's custom ``:doi:``
144+
`Sphinx role <https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html>`_,
145+
followed by the DOI inside a set of backticks.
146+
147+
73148
.. _building-the-documentation:
74149

75150
Building the documentation

docs/sphinx/source/whatsnew/v0.11.2.rst

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Documentation
2121
~~~~~~~~~~~~~
2222
* Edited docstrings for :py:func:`~pvlib.pvsystem.dc_ohms_from_percent` and
2323
:py:func:`~pvlib.pvsystem.dc_ohmic_losses` for clarity. (:issue:`1601`, :pull:`2229`)
24+
* Added a new citation style guide (:ref:`references`) to the contributing
25+
page. (:issue:`2202`, :pull:`2226`)
2426
* Updated :py:func:`~pvlib.irradiance.reindl` to include definitions of terms
2527
and a new "notes" section (:issue:`2183`, :pull:`2193`)
2628

0 commit comments

Comments
 (0)