Skip to content

Add a style guide for writing and code in the p5.js docs #6178

@nickmcintyre

Description

@nickmcintyre

Topic

Hello! I propose creating a style guide for written explanations and code snippets. My goal is to ensure that all Reference and Example pages are clear and consistent. I plan to edit the Contributing Documentation guide to include a remix of the Ruby on Rails API documentation guidelines.

Writing

I'll follow the new writing style guide as I edit documentation over the coming months. The following references will be top of mind:

I'll use the Hemingway Editor to ensure that the documentation uses simple language.

Code

I propose following the Airbnb JavaScript Style Guide for code snippets. I also plan to use Prettier to format code so that it matches the output of the p5 Editor's "Tidy" button.

I'd love to incorporate folks' suggestions as I draft the style guide. @davepagurek @limzykenneth @Qianqianye @raclim what do y'all think about testing this idea in a couple of steps? I can start by drafting the style guide. Then we can try an example of how the guide would change the Reference pages for 2D Primitives.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions