processing / p5.js-website

New p5.js website!
http://p5js.org
MIT License
19 stars 89 forks source link

Unable to update reference, multiple entries with same slug #400

Closed limzykenneth closed 5 months ago

limzykenneth commented 5 months ago

I was trying to update the reference but now we have another blocker which is that for the reference, there are two similarly named things boolean and Boolean. The former to the type conversion function while the later is the type. When trying to build, Astro gives the following error:

reference contains multiple entries with the same slug: en/p5/boolean. Slugs must be unique.

Entries: 
- /src/content/reference/en/p5/Boolean.mdx
- /src/content/reference/en/p5/boolean.mdx

I imagine this is because Astro treat slug comparison case insensitively? @outofambit @stalgiag Do you have an idea of how to get around this

limzykenneth commented 5 months ago

Same with other Types. Possibly we can give it the same treatment as constants but now I also noticed that the constants' reference cannot be found on the website.