Closed tobias-wilfert closed 3 years ago
What was the issue?
When building the snippets the descriptionMoreURL had a hardcoded prefix http://p5js.org/reference/#/p5/ which caused some links to be invalid.
descriptionMoreURL
http://p5js.org/reference/#/p5/
For example: https://p5js.org/reference/#/p5/setType was generated when actually the link should be https://p5js.org/reference/#/p5.Noise/setType
As far as I could determine it should be the value of the class field provided in the json. This value is indeed p5 for many elements but not for all.
class
p5
What did I change?
I changed the prefix used to generate the descriptionMoreURL so that it uses the value of the class rather then p5
Hope this solves #12 and I didn't break anything.
thanks you! I'm going to merge this and let me know if you run into any other issues! Good to get it up to date too!
What was the issue?
When building the snippets the
descriptionMoreURL
had a hardcoded prefixhttp://p5js.org/reference/#/p5/
which caused some links to be invalid.For example: https://p5js.org/reference/#/p5/setType was generated when actually the link should be https://p5js.org/reference/#/p5.Noise/setType
As far as I could determine it should be the value of the
class
field provided in the json. This value is indeedp5
for many elements but not for all.What did I change?
I changed the prefix used to generate the
descriptionMoreURL
so that it uses the value of theclass
rather thenp5
Hope this solves #12 and I didn't break anything.