Description
Is your feature request related to a problem? Please describe.
There is a mix of citation styles currently used in the documentation, both between pages and sometimes on the same page.
quick example:
pvlib.atmosphere.get_relative_airmass
Authors: full name (first+last), and first initial then surname
External links: some with DOI, some for which a DOI exists but is not included (e.g. ref 9).
Misc.: References in the list aren't always linked to something in the text.
Comparing with another page, e.g. pvlib.irradiance.get_ground_diffuse, the naming style is last name then first name initial.
There are also differences in other aspects of the style e.g. page/volume numbers, whether a DOI is included, etc.
Describe the solution you'd like
- Agree on a style
- Add a section to the user guide and/or contributing guide advising users / potential contributors of the adopted referencing style, and additional suggestions such as to include a DOI if one is available, link reference to something in the text, etc.
- Future PRs would adopt the agreed style, and old docs could be updated gradually in a few ways:
3.1- Good first issue PRs for new contributors, e.g. at PVPMC workshops or other tutorials
3.2- Dedicated PRs for anyone (something to do on those long-haul flights, right...)
3.3- As existing functions that already contain citations are updated for whatever other purpose, updates to the references could be included in the same PR
3.4- As new functions are added to the same packages, references for other functions from the same.py
file could be updated
The points in 3. are just ideas/suggestions and I hope we can discuss and decide on the best approach(es) together.
As for 1., I am not an expert on citation styles but I know there are many out there, e.g. IEEE, MLA, APA, Harvard...
We could pick on out of there, or perhaps adopt a hybrid style of our own design, e.g. we like IEEE but prefer to keep the author list to one name + et al. for brevity.
Question/suggestion: Is adopting bibtex in the docs technically possible? The formatting could be set centrally and users would only need to update a .bib
file somewhere (but we should ensure references still appear on the pages where they are cited, so maybe multiple .bib
files would be required)
Describe alternatives you've considered
We could just continue without a set style but I think having, or at at least encouraging, a consistent citation style would make it easier for users to understand the citations, locate the sources, and even just make pvlib appear more professional. Maybe there's even be a legal(?)/ethical argument there where we need to ensure citations are up to a certain standard when we are sharing other people's work through pvlib. (not certain about that last one, just a thought)
Additional context
Perhaps we could start off with point 1 in the solutions: discuss whether this is a good idea and, if so, discuss what would be a good style to adopt.
If we get that far, I'd certainly be happy to resolve 2., and contribute to 3. :)