Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC]: params & units guidelines in contributing page #2248

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

echedey-ls
Copy link
Contributor

@echedey-ls echedey-ls commented Oct 9, 2024

Improve "contributing" guidelines on how to find parameter names and their units.

In coordination with style decided in #2234.

Makes two changes to index pages of functions, to avoid being too verbose and a typo.

Links

@echedey-ls echedey-ls changed the title Docstring guidelines params&units [DOC]: params & units guidelines in contributing page Oct 9, 2024
@echedey-ls echedey-ls marked this pull request as ready for review October 9, 2024 16:20
Copy link
Contributor

@RDaxini RDaxini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job. Couple of suggestions + one point about the link to the variables page

docs/sphinx/source/contributing/style_guide.rst Outdated Show resolved Hide resolved

These superscripts characters are ``⁰``, ``¹``, ``²``, ``³``, ``⁴``, ``⁵``, ``⁶``, ``⁷``, ``⁸``, ``⁹``, ``⁺``, ``⁻``. Degree symbol is ``°``.

- Link to a brief description of the magnitude in the :ref:`variables_style_rules` section if it exists, via the sphinx role ``:term:`glossary_term```. For example, to document ``dni`` use:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that this PR is dependent on #2234 being merged first.
Currently, the :term: example would not work with the linked variables and style rules page. I guess you know this(?) but I thought I'd highlight this just in case. The link would need to be updated to link to the glossary (or whatever we end up calling it).
I guess the alternative would be to omit this point for now, then add it in later as a follow up

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is dependant, that's true. I'll change to draft until it gets into main to avoid making too many changes that belong to the same thing. Thanks in fact for highlighting it, when I wrote it I didn't distinguish between the two pages.

docs/sphinx/source/contributing/style_guide.rst Outdated Show resolved Hide resolved
@echedey-ls echedey-ls marked this pull request as draft October 9, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standarizing pvlib typesetting of units - standarization for common variables?
2 participants