Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented May 2, 2022

Includes:

  • Removing stray unicode artifacts.
  • Improving formatting consistency in a couple of places.
    I.e. having "Good"/"Bad" both wrapped in emphasis, having the : in lists not included in the bold tags, refering to the correct tags in some examples - most for @deprecated.
  • Being more liberal with backticks around documentation @tags, like in the tables.
  • Improving accessibility by not using "here" as link text.
  • Removing trailing spaces.

Notes:

Also note that while I haven't really "read" the document, only scanned it, I did get the impression that there was quite a lot of redundancy/duplication in the text. Might be something to have a look at/iterate on in a follow-up PR.

Includes:
* Removing stray unicode artifacts.
* Improving formatting consistency in a couple of places.
    I.e. having "Good"/"Bad" both wrapped in emphasis, having the `:` in lists not included in the bold tags, refering to the correct tags in some examples - most for `@deprecated`.
* Being more liberal with backticks around documentation `@tags`, like in the tables.
* Improving accessibility by not using "here" as link text.
* Removing trailing spaces.

**Notes**:
* The formatting around the `[tip]` should be double-checked as I'm not sure if the shortcode doesn't break now the contents is reformatted.
* There are a few "inline headers" (using `**` not `##..`) in the "Formatting Guidelines" section, about which I wonder if those shouldn't be changed to proper headers.
    See: https://developer.wordpress.org/coding-standards/inline-documentation-standards/javascript/#formatting-guidelines

Also note that while I haven't really "read" the document, only scanned it, I did get the impression that there was quite a lot of redundancy/duplication in the text. MIght be something to have a look at/iterate on in a follow-up PR.
Copy link
Member

@ntwb ntwb left a comment

Choose a reason for hiding this comment

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

Awesome, thanks @jrfnl 💯

@ntwb ntwb merged commit 39a28a6 into master May 2, 2022
@ntwb ntwb deleted the feature/update-js-docs-markdown branch May 2, 2022 09:54
@ntwb
Copy link
Member

ntwb commented May 2, 2022

FYI:

The formatting around the [tip] should be double-checked as I'm not sure if the shortcode doesn't break now the contents is reformatted.

Screenshot of the current [tip], let's see how it looks after the changes are synced:
image

@jrfnl
Copy link
Member Author

jrfnl commented May 2, 2022

Just checked - text has synced and [tip] looks fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants