docs: prepare docs for MDX 2 (#8782)

This commit is contained in:
Sébastien Lorber 2023-03-16 17:02:38 +01:00 committed by GitHub
parent 07c57a1528
commit 9c920c531b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 112 additions and 70 deletions

View file

@ -78,7 +78,11 @@ App installation requires the HTTPS protocol and a valid manifest.
We enable users to browse a Docusaurus site offline, by using service-worker precaching.
> ### [What is Precaching?](https://developers.google.com/web/tools/workbox/modules/workbox-precaching)
> <h3>
> <a href="https://developers.google.com/web/tools/workbox/modules/workbox-precaching">
> {'What is Precaching?'}
> </a>
> </h3>
>
> One feature of service workers is the ability to save a set of files to the cache when the service worker is installing. This is often referred to as "precaching", since you are caching content ahead of the service worker being used.
>
@ -120,7 +124,7 @@ Strategies used to turn the offline mode on:
- `appInstalled`: activates for users having installed the site as an app (not 100% reliable)
- `standalone`: activates for users running the app as standalone (often the case once a PWA is installed)
- `queryString`: activates if queryString contains `offlineMode=true` (convenient for PWA debugging)
- `mobile`: activates for mobile users (width <= 996px)
- `mobile`: activates for mobile users (`width <= 996px`)
- `saveData`: activates for users with `navigator.connection.saveData === true`
- `always`: activates for all users