Skip to content

Commit 8a80de7

Browse files
authored
Merge branch 'main' into main
2 parents 1c1cf58 + 7b8b92c commit 8a80de7

File tree

296 files changed

+15882
-2785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+15882
-2785
lines changed

public/reference/data.json

Lines changed: 7775 additions & 2418 deletions
Large diffs are not rendered by default.

public/search-indices/en.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

public/search-indices/es.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

public/search-indices/hi.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

public/search-indices/ko.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

public/search-indices/zh-Hans.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/content/contributor-docs/en/creating_libraries.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ p5.prototype.myMethod = function(){
302302

303303
**Contributed libraries are hosted, documented, and maintained by their creators.** This could be on GitHub, a separate website, or elsewhere. We only feature addon libraries that are fully open source.
304304

305-
**Documentation is key!** The documentation for your library should be easy to find. The documentation for contributed libraries won’t be included in the main p5.js reference, but you may want to follow a similar format. See these examples of a [library overview page](http://p5js.org/reference/#/libraries/p5.sound), [class overview page](http://p5js.org/reference/#/p5.Vector), and [method page](http://p5js.org/reference/#/p5/arc/).
305+
**Documentation is key!** The documentation for your library should be easy to find. The documentation for contributed libraries won’t be included in the main p5.js reference, but you may want to follow a similar format. See these examples of a [library overview page](https://p5js.org/reference/p5.sound), [class overview page](https://p5js.org/reference/p5/p5.Vector), and [method page](https://p5js.org/reference/p5/arc/).
306306

307307
**Examples are great, too!** They show people what your library can do. Because this is all JavaScript, people can see them running online before they download anything.[ ](http://jsfiddle.net/) You can create a collection of examples on the p5.js web editor to showcase how your library works.
308308

src/content/contributor-docs/en/documentation_style_guide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Please use American English (color, center, modularize, etc). See [a list of Ame
7070

7171
## Oxford Comma
7272

73-
Please use the [Oxford comma](https://en.wikipedia.org/wiki/Serial_comma) ("red, white, and blue", instead of "red, white and blue").
73+
Please use the [Oxford comma](https://en.wikipedia.org/wiki/Serial_comma/) ("red, white, and blue", instead of "red, white and blue").
7474

7575
**[⬆ back to top](#table-of-contents)**
7676

src/content/contributor-docs/en/friendly_error_system.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Here, the key is `greeting`, and the variable name is `who`.
106106

107107
To dynamically generate this message, we will need to pass a value:
108108

109-
```JavaScript
109+
```javascript
110110
translator('greeting', { who: 'everyone' } );
111111
```
112112

@@ -124,7 +124,7 @@ Here is an item from `fes`'s `fileLoadError` that demonstrates interpolation:
124124

125125
To dynamically generate the final message, the FES will call `translator()` with the key and a pre-generated `suggestion` value.
126126

127-
```JavaScript
127+
```javascript
128128
translator('fes.fileLoadError.image', { suggestion });
129129
```
130130

@@ -177,7 +177,7 @@ For full reference, please see our [Dev Notes].
177177

178178
`fes_core.js/_friendlyError()` prints generated friendly error messages in the console. For example:
179179

180-
```JavaScript
180+
```javascript
181181
p5._friendlyError(
182182
translator('fes.globalErrors.type.notfunc', translationObj)
183183
);
@@ -193,7 +193,7 @@ There may be cases where you want to [disable the FES for performance].
193193

194194
Example:
195195

196-
```JavaScript
196+
```javascript
197197
p5.disableFriendlyErrors = true;
198198

199199
function setup() {

src/content/contributor-docs/en/how-to-add-friendly-error-messages.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ In the example above, anything in double angle brackets (`{{}}`) is something th
186186

187187
After adding your case, you can now call `p5._friendlyFileLoadError([case number], [file path])` inside your error handling statements.
188188

189-
For example, please take a look at `loadStrings()` method loading a string-based file (which corresponds to `case 3` from `fileLoadErrorCases`). The  `loadStrings()` method uses [`httpDo.call()`](https://p5js.org/reference/#/p5/httpDo/) with a custom callback method that is executed in the case of a file error:
189+
For example, please take a look at `loadStrings()` method loading a string-based file (which corresponds to `case 3` from `fileLoadErrorCases`). The  `loadStrings()` method uses [`httpDo.call()`](https://p5js.org/reference/p5/httpDo/) with a custom callback method that is executed in the case of a file error:
190190

191191
```js
192192
p5.prototype.httpDo.call(

0 commit comments

Comments
 (0)