p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

Why are the reference assets buried in the templates section?

Open takyano opened this issue 3 years ago • 4 comments

I didn't expect to find the assets for the reference section in the /src/templates/pages/reference/ directory.

Would this not be better in /src/data/reference/ ?

takyano avatar Mar 09 '21 23:03 takyano

It is more or a legacy thing than any other particular reason. If reorganizing it will make things clearer I'm happy to see that.

limzykenneth avatar Mar 29 '21 11:03 limzykenneth

Would it be better in /src/data/reference?

The example assets are stored in /src/data/examples .

Then remove the duplicate set in /src/offline-reference .

takyano avatar Jun 28 '21 16:06 takyano

I feel moving it to /src/data/reference is still a bit arbitrary and not intuitive. It would be nice if we can consolidate assets for the website (including reference and examples) into one place then reference examples and examples examples can even share the same assets.

limzykenneth avatar Jul 07 '21 13:07 limzykenneth

Thanks @takyano and @limzykenneth for the conversation. I think it's a great idea to investigate a more consolidated folder structure. Wondering if the Reference steward @Divyansh013 and Example stewards @Malayvasa @tyler-yin @3ru have any thoughts about it?

Qianqianye avatar Jul 23 '22 00:07 Qianqianye