p5.js-website
p5.js-website copied to clipboard
Fix #878 : prevent trailing slashes on absolute Wikipedia URLs
Summary: This PR fixes the issue where absolute Wikipedia URLs in the generated reference docs had unwanted trailing slashes.
Closes #878
What was done:
- Modified
src/scripts/builders/reference.tsto add a check preventing trailing slashes on absolute URLs (URLs starting with http) - Ran
npm run build:referenceto regenerate the reference documentation files - Verified that Wikipedia links no longer contain trailing slashes and work correctly
- Verified that no changes were made to
package-lock.json
Thanks to the maintainers for the guidance!