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 #22580
Comments
Hi, |
Thanks to Service Worker, Angular's website works offline! |
Offline but with the need of a service worker. You still need a connection and a platform running a server ... So I would not say offline, because you still need a line even local. |
Why is that? What problems did you run into, @imatmati?
Not sure what you mean about needing a server. ServiceWorkers run in the browser and are able to handle requests, thus enabling an app to work as if online even when there is no network conectivity (assuming that the ServiceWorker has previously cached the necessary data - in our case docs content). At the moment we are not caching the content of all docs (guides, API docs, etc), but only the top-level ones. We will soon switch to the latest Once it's done, we could consider adding a way to cache all documents offline, but it is not in our top priorities. (We would happily accept contributions, I guess, if anyone is interested in investigating that.) |
You'll need to be online for the first time only. After that, you can access it offline. Moreover, if there is a documentation update, it'll update automatically. |
Hi, Thanks for your replies. AFAIK, I can't rely totally on the cache of my browser. I don't remember where, but I read something about that in an attempt to read the docs offline. |
@imatmati, I am not talking about the browser cache, but the ServiceWorker cache. And no, a ServiceWorker does not require you to do anything. (In fact, you are already using a ServiceWorker in the current angular.io docs without having noticed.) You might want to take a look at some generic resources on ServiceWorkers (like this and that) and then our guide to see how you could add ServiceWorker capabilities to your own Angular apps. |
Thanks, I'll have a look and maybe my solution :-) |
👍 |
Huge +1 for anybody that travels and wants to work with docs with either no connection or a spotty one. |
I am closing this issue, because we don't plan to ship a different downloadable/printable format, such as PDF, (see #19459) and the offline availability for docs is tracked in #27492. In the meantime, with this one weird trick, you can make all the docs available for offline access: one weird trick |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Hi,
Could you please make an offline documentation in a format like PDF or HTML ?
I don't undestand why everyone out there seems to consider normal to make a documentation site with JS that you can't download to read offline. Do I really need a net connection just to read the doc or did I miss something ?
Have a nice day.
The text was updated successfully, but these errors were encountered: