Skip to content

solves docs issue 837 for p5.js 2.x #877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 92 commits into from
Closed

Conversation

NalinDalal
Copy link

Actual Behavior
The “Getting Started with Node.js” tutorial is still using p5.js 1.x patterns (e.g. preload(), old APIs, external sketches locked to 1.x). Legacy p5.js 1.x APIs (e.g. old shape-drawing signatures) remain in the code samples. Several external Web Editor sketches are locked to p5.js 1.x and won’t run under 2.x.

Expected Behavior
Since p5.js 2.0 has removed preload() and other legacy methods in favor of async/await and updated several APIs, we need to refresh this tutorial so it only uses supported 2.x functionality. Every linked sketch should has been forked (or updated) to use p5.js 2.x so examples execute correctly.

Hence I updated the docs for the required 2.x version

I have tested, linted and ran the code locally to ensure no breakage occurs

notthewave and others added 30 commits February 20, 2025 11:15
Fully unmount sketches that go out of frame
Add libraries, fix bug with old featured ones not getting cycled
Signed-off-by: shiva <shiva_05@outlook.com>
Updated description and `sourceURL`.
ksen0 added 5 commits June 10, 2025 07:32
Add an Issue template for reporting accessibility issues
Update placeholders in 4.accessibility.yml
Fixes an accidental inclusion of an unnecessary field
Update 4.accessibility.yml to remove extra "steps to reproduce field"
Copy link
Contributor

@perminder-17 perminder-17 left a comment

Choose a reason for hiding this comment

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

Hi @NalinDalal Thanks so much for your wokr. I think, you have opend up a PR targeting the main branch. The changes are supposed to have in 2.0 branch of p5.js-website. Would you mind re targeting your PR according to that?

@perminder-17 perminder-17 changed the base branch from main to 2.0 June 26, 2025 09:14
@perminder-17
Copy link
Contributor

For now, I have changed the base of your PR by clicking on edit button in the top right and then changing the target branch, but for the code, you probably have to git rebase.

Feel free to ask for help if you face any issues. Also, it's totally fine if you close this PR and open up a new one targeting the 2.0 branch. Thanks for your work on this :)

@NalinDalal
Copy link
Author

so is it done @perminder-17 ?

@NalinDalal
Copy link
Author

Superseded by #879 — clean rebase onto 2.0 as requested.
All conflicts resolved, and changes scoped only to updated docs. 🙌

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.