-
Notifications
You must be signed in to change notification settings - Fork 94
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
Broken links to source code in p5.sound reference pages #636
Comments
Hi @rndexe, I see the PR you've made for this; I don't see any prior discussion about this change, so please let me know if I missed a conversation about it elsewhere! In the PR, the link target changes, but the link text stays the same, which is arguably an accessibility issue: https://www.w3.org/WAI/WCAG21/Understanding/link-purpose-in-context.html ("Whenever possible, provide link text that identifies the purpose of the link without needing additional context.") Additionally, while p5.sound is distinct url than p5.js, the intent with those links is to provide a place where they can open an issue, and I think before making this kind of change, it would be valuable to know if others do expect it to go to a different place for p5.sound. In p5.js, contributors are asked not file a pull request (or start working on code changes) without a corresponding issue or before an issue has been approved for implementation; that is because the proposed fix may not be accepted, need a different approach entirely, or the actual problem is somewhere else. So I hope that explains changing the label from "Bug" to "Discussion" - the links work as intended, and while a discussion is welcome, some consensus is needed before PR. |
thanks for clarifying @rndexe ! I understand more now; when I was looking at the p5.js sound reference it seemed like the lib/addon links were ok, but the src/ links are indeed broken. Two examples for testing of a fix:
Seems like the fix would have to be different for these two cases; from what I understood in the previous PR, it covered (1)? |
I see, I had not considered there'd be different cases. In fact my solution would break the latter case instead. Would need to understand the basis of this code split into different repos for p5.sound |
On further analysis, it seems that lib/addons links point to a now deprecated version of p5.sound which is included in the p5.js repo. Those functions afaik no longer exist in the new version. |
@rndexe You're right, there's bigger problems here. Also, based on the fact that p5.sound will remain quite separate, your original approach of having a variable for the URL depending on which library can be used here, it just needs to also be done together with updating some of the individual paths. To address the link text confusion I was mentioning, what to do think about including the name of the library in the link text? (Something like "Please let us know by opening a ____ issue!") |
I'm not so sure about the removal of deprecated methods from current documentation. People are still out there using the older version, It is still included in the p5 editor by default. |
@rndexe You're absolutely right. Although it's definitely adding confusion that both deprecated and actual methods are shown side by side. Maybe there should be something like a deprecation message on those pages? Maybe that is out of scope. Updating the summary of this issue below:
Do you have a sense of how to distinguish these? The lib/addon vs src probably should not be used to make the distinction. Maybe the |
We'll have to see how these reference item page contents are generated, perhaps a flag could be added for the ones generated from Taking a step back from the whole issue, I feel the sunsetting of the previous library is still a WIP. These fixes might be premature and become obsolete once the migration is fully complete. It'd make sense to keep this issue open but hold off working on it till the roadmap of the new library is clear. E.g. the |
Just popping in -- I think the deprecated methods from the old lib/addons file showing up might actually be accidental for now. The reference items are generated by running So when we switch to the 2.0 branch, the old p5.sound docs will stop showing up. I think the current plan is for a full 2.0 release around February? So it could be worth trying to do a quick fix for the two months in the mean time. My suggestion would be to edit the reference generation script to ignore lib/addons entries, and in the spot that says "Looking for the main p5.js reference?", add an additional link to the old p5.sound archived reference. |
oop wasn't getting notifications on this thread, subscribed now, let me know if i can modify anything in the p5.sound.js source but looks like we have a plan for pruning some of the old references 🫡 |
So to summarize
@ksen0 would that require a corresponding issue in p5.js repo as well or can I link to this issue? |
Most appropriate sections of the p5.js website?
Reference
What is your operating system?
Linux
Web browser and version
Chrome: 128.0.6613.84 (Official Build) (64-bit)
Actual Behavior
When clicking links on the page here:
Notice any errors or typos? Please let us know. Please feel free to edit src/Amplitude.js and open a pull request!
These files do not exist anymore since they have now been moved to a separate repo.
Expected Behavior
Expected links to go to https://github.com/processing/p5.sound.js
Steps to reproduce
No response
Would you like to work on the issue?
Yes, I can create a pr to make the required changes in ReferenceItemLayout.astro
The text was updated successfully, but these errors were encountered: