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

Re-introduce option to download an offline version of the reference

Open bojidar-bg opened this issue 1 year ago • 3 comments

The old reference had a nifty link to download the whole reference locally—excellent when in an area with spotty internet or when going on a trip. It would be nice if the new reference had a link for that too.

Accessibility-wise: this would improve the availability of the reference for students who do not have as good of an internet connection, including students who have no internet connection.

bojidar-bg avatar Jul 02 '24 17:07 bojidar-bg

Thanks @bojidar-bg for bringing up this issue. We will look into this. Meanwhile, you can still access the offline reference in the archived p5.js website (https://archive.p5js.org/reference/).

Qianqianye avatar Jul 03 '24 02:07 Qianqianye

+1 for bringing this back please. It was a great offer of the old website and now seems to be archived with p5.js version 1.9.4 (currently at 1.11.1) – for the past years I've parsed this file for P5LIVE's built in references, especially to be accessible offline. Any chance this could be re-introduced or if/where I could find this data.js file in the current repo without having to compile/build first?

ffd8 avatar Nov 09 '24 21:11 ffd8

@ffd8 Not sure if this will help, but there is a yuidoc build step in the repository that creates a data.json file, as used here: https://github.com/processing/p5.js-website/blob/ad4d38c7f8ce34659a832618c5550d7e36fbfc8e/src/scripts/parsers/reference.ts#L126

(See also https://github.com/processing/p5.js/blob/3e0e22d95a865188704b06ded172790c6e989c50/Gruntfile.js#L341)

bojidar-bg avatar Nov 09 '24 22:11 bojidar-bg