Skip to content
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

Only use old p5.sound on 1.x #737

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Only use old p5.sound on 1.x #737

wants to merge 1 commit into from

Conversation

davepagurek
Copy link
Collaborator

On the current website, we accidentally have a mix of the old p5.sound + the new p5.sound docs. This is because in October we started adding the new sound docs to the reference, but the old sound docs are embedded in the p5 1.x source code, so they continued to get parsed too, leading to broken docs.

For 2.0, we're planning on having a separate site where all 2.0 reference and resources will live. This will be deployed from a separate branch of this repo, and also a separate branch of the p5 repo using something like the npm run custom:dev command where you pass in a repo + branch name. This PR makes it so the 2.0 deploy (which no longer has the p5.sound content embedded in the source code) will continue to add the new p5.sound docs to the build, and the 1.x deploy will not, including only the old p5.sound docs already embedded in those p5.js releases.

In addition to those changes, this PR also includes the result of running npm run build:reference on 1.11.3. This means that APIs that only exist in the new p5.sound get removed, and the reference for APIs that previously existed in both the old and the new p5.sound are reverted to the docs included in the old p5.sound.

There are also a few other changes I noticed from npm run build:reference; maybe we didn't run it before on 1.11.3? So there are a few minor other docs changes, such as fixed typos.

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.

1 participant