-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Offline Documentation #1378
Comments
Since this has come up again (and because a lot of p5.js users are OS X users too), what would be really awesome is if we could arrange for the p5.js docs to be included with Dash. I don’t know how much effort would be involved in making that happen, but I think it would be indispensable! |
That's a great idea to publish to Dash! I'll make this happen since I was trying to build an offline mode anyway |
Is this preferable to generating a set of docs on build to be included with downloads ? Or are you thinking to have both? |
I ended up using the original processing docs on zeal |
@dhowe ultimately both |
I also think having offline docs would be nicer. So far Im using a .pdf reference from Processing because I noticed they are very similar. My country suffers from a very drastic electricity problem (Venezuela); when the lights go out, the internet does too, so its very important to have offline resources to continue working and learning until the electricity is restored. Edit: Oh boy, I am just discovering Dash. Very useful indeed. |
The online reference seems to mostly work offline. |
@BlandSauce I've made a proof of concept actually: https://github.com/limzykenneth/p5.js-reference For this I'm just wondering what kind of format would best fit it: a offline website, a packaged app, a pdf or something else? I'm a bit preoccupied at the moment but if anyone is interested, you can have a look at that repo. Cheers. |
From my perspective, an offline website (same as the online reference) would be ideal |
The problem with an offline website is that simply double clicking index.html would not work since features like videos etc would need to be run on a server, and I feel it's too much to expect someone to run a server to read the docs... |
Which videos are you referring to? The only problem I see loading index.html from your repo is that its using an AJAX request to fetch the json data... otherwise most things work OK |
This is great, so so useful and important. I think offline website makes sense, even if a few server-requiring features don't work. We could package it with the p5.js complete download. |
Putting it in the complete package would be great so long as its not too heft. Otherwise as a separate download. Wouldn't want to force users to download something they don't want |
Please make it available offline. |
Good news! The prove of concept is fully working. Have a look here, it will work by simply double clicking on Essentially, it is just a strip down version of the full reference site at Kinda long update, let me know what everyone thinks! @lmccart @dhowe @futuremarc |
I vote for the first option, a separate repo would be alot better to keep the p5.js repo slim |
I wonder if it is possible to host in a separate repo (to keep p5.js repo smaller), but to set up a github webhook and process that would automatically update somehow? this is just an idea... I haven't though too far into how complicated that would be code-wise. |
btw fantastic work on this! this is such crucial work, thank you! |
I like the idea of a webhook doing the update automatically. I'm not that familiar with github webhooks but I did find this on stackoverflow. There might be other ways but I can't think of any at the moment. |
yeah, something like that was what I was thinking. I can take a look at this part if you like, if you want to just set up a repo with the files and stuff to generate the docs? |
@lmccart That'll be great, I'll spend some time finalising the structure of the repo then. |
Pushed an update. Tried out many different ways to build, including building from source and some clever handlebars + cp action but I think the easiest is really to do what we are already doing for p5.js-website, copy the whole To setup a webhook, it can run the build on p5.js repo and generate the To publish, simply package the contents of the |
cool! I'll take a look at getting this all hooked up this week. |
hi @limzykenneth I took a look through your repo and looked into pushing things around between repos. the tricky thing about this is that we have to be running a node server, I couldn't find a good way around this. so I decided the easiest thing was just to add this into the p5.js-website repo and let it build from there whenever the reference/ folder is updated. I basically just ported your gulp task to php, and copied a few of the files you modified. if you hit this url: http://p5js.org/offline-reference/build-ref.php, it will rebuild the latest ref into p5-reference.zip, which can be found here: http://p5js.org/offline-reference/p5-reference.zip. you can check out the code here: https://github.com/processing/p5.js-website/tree/main/offline-reference. I think I captured all your custom modifications in the port and copy but let me know if anything looks wrong or I missed any. if we're all good, I can set up a webhook that will ping that url to rebuild on reference change, and then we can add a zip download link to the online reference page and download pages somewhere. thanks for all your work on this! |
@lmccart I think some styling rules are missing, probably from and this is what I have on my repo: Other than that, everything looks great! Pretty excited to get it out there. |
good catch @limzykenneth on the mobile formatting, I just added that styling in from render.js. ok I think we're good! link added to the reference page and it will be included in future p5.js complete build zips as well. thanks everyone for your input and work on this! yaaay |
I'm sorry to have to bring up another one of these but the others I have seen just haven't answered the question, just keeps making me jump around GitHub. Is there an offline documentation (like an offline version of the site). I would just like the reference though not the whole site, as that seems to be pretty large.
The text was updated successfully, but these errors were encountered: