Skip to content

Conversation

@per1234
Copy link
Collaborator

@per1234 per1234 commented Feb 6, 2019

When there were multiple parameters with longer descriptions, the Parameters section ended up looking like a wall of text. Separating each parameter with a blank line makes it easier to read and faster to find the information you're searching for.

This format is also easier for the collaborators to work with because they don't need to remember to add the + at the end of the line. There are currently several reference pages where that was forgotten.

This is a proposal to change the official reference style guide. If accepted, I will update the formatting of all reference pages accordingly.

I had also considered formatting the parameters section as a list. That looks quite nice also, but in the end I decided I slightly preferred the blank lines.

Example of the previous formatting being problematic:
https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt#_parameters

Before:
before

After:
after

When there were multiple parameters with longer descriptions, the Parameters section ended up looking like a wall of text. Separating each parameter with a blank line makes it easier to read and faster to find the information you're searching for.

This format is also easier for the collaborators to work with because they don't need to remember to add the ` +` at the end of the line. There are currently several reference pages where that was forgotten.

I had also considered formatting the parameters section as a list. That looks quite nice also, but in the end I decided I slightly preferred the blank lines.

Example of the previous formatting being problematic:
https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt#_parameters
@smellai smellai merged commit d652688 into arduino:master Jun 11, 2019
@per1234 per1234 deleted the new-parameters-section-format branch June 25, 2019 05:15
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.

2 participants