Skip to content

Commit

Permalink
shortcuts param descriptions updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nakednous committed May 12, 2024
1 parent 538d000 commit 813c948
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions content/docs/shortcodes/p5/div.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ p5 `div` [shortcodes](https://gohugo.io/content-management/shortcodes/) embed [p
# p5-div

```html
{{</* p5-div ver="1.9.3" sketch="/path/to/sketch.js" lib1="https://cdntolib1/lib1.js" */>}}
{{</* p5-div ver="1.9.3" sound="false" sketch="/path/to/sketch.js" lib1="https://cdntolib1/lib1.js" */>}}
```

All parameters are optional but `sketch`. Default values are shown in the above snippet but for `libs*`. Up to `lib5` libs may be specified.
Expand All @@ -27,7 +27,7 @@ Look at [this](https://mathworld.wolfram.com/ScintillatingGridIllusion.html) and
# p5-instance-div

```html
{{</* p5-instance-div id="sketchid" ver="1.9.3" lib1="https://cdntolib1/lib1.js" >}}
{{</* p5-instance-div sound="false" id="sketchid" ver="1.9.3" lib1="https://cdntolib1/lib1.js" >}}
// inline sketch code
{{< /p5-instance-div */>}}
```
Expand Down
8 changes: 4 additions & 4 deletions content/docs/shortcodes/p5/iframe.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ p5 `iframe` [shortcodes](https://gohugo.io/content-management/shortcodes/) embed
# p5-iframe

```html
{{</* p5-iframe ver="1.9.3" sketch="/path/to/sketch.js" lib1="https://cdntolib1/lib1.js" width="800" height="600" */>}}
{{</* p5-iframe ver="1.9.3" sound="false" sketch="/path/to/sketch.js" lib1="https://cdntolib1/lib1.js" width="800" height="600" */>}}
```

All parameters are optional but `sketch`. Default values are shown in the above snippet but for `libs*`. Up to `lib5` libs may be specified.
Expand Down Expand Up @@ -42,16 +42,16 @@ Example took from the [p5 examples](https://p5js.org/examples/sound-sound-effect

{{< details title="p5-iframe markdown" open=false >}}
{{< highlight html >}}
{{</* p5-iframe sketch="/showcase/sketches/sound.js" width="225" height="225" */>}}
{{</* p5-iframe sound="true" sketch="/showcase/sketches/sound.js" width="225" height="225" */>}}
{{< /highlight >}}
{{< /details >}}

{{< p5-iframe sketch="/showcase/sketches/sound.js" width="225" height="225" >}}
{{< p5-iframe sound="true" sketch="/showcase/sketches/sound.js" width="225" height="225" >}}

# p5-global-iframe

```html
{{</* p5-global-iframe id="sketchid" ver="1.9.3" lib1="https://cdntolib1/lib1.js" width="800" height="600" >}}
{{</* p5-global-iframe sound="false" id="sketchid" ver="1.9.3" lib1="https://cdntolib1/lib1.js" width="800" height="600" >}}
// inline sketch code
{{< /p5-global-iframe */>}}
```
Expand Down

0 comments on commit 813c948

Please sign in to comment.