Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bojidar-bg opened this issue Jul 2, 2024 · 3 comments
Open

Comments

@bojidar-bg
Copy link

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.

@Qianqianye
Copy link
Collaborator

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/).

@ffd8
Copy link
Contributor

ffd8 commented Nov 9, 2024

+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?

@bojidar-bg
Copy link
Author

@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:

exec(`yuidoc -p --outdir ${outputFilePath} ${flags} ${inputPath}`, { cwd: inPath }, (error, stdout) => {

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants