You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Values for Algolia App ID, Search Key, and Admin Key can be obtained from Algolia Dashboard with the right set of permissions. Replace `MY_INDEX_NAME` with the Algolia Index name of your choice. To build the Algolia index, you need to run `npm run build` which will do a gatsby build along with content indexing in Algolia.
87
90
91
+
### Progressive Web App, Offline
92
+
93
+
To enable PWA, go to `config.js` and update the `pwa` object to look like the one below:
94
+
95
+
```
96
+
"pwa": {
97
+
"enabled": false, // disabling this will also remove the existing service worker.
98
+
"manifest": {
99
+
"name": "Gatsby Gitbook Starter",
100
+
"short_name": "GitbookStarter",
101
+
"start_url": "/",
102
+
"background_color": "#6b37bf",
103
+
"theme_color": "#6b37bf",
104
+
"display": "standalone",
105
+
"crossOrigin": "use-credentials",
106
+
icons: [
107
+
{
108
+
src: "src/pwa-512.png",
109
+
sizes: `512x512`,
110
+
type: `image/png`,
111
+
},
112
+
],
113
+
},
114
+
}
115
+
```
116
+
88
117
## Live Code Editor
89
118
90
119
To render react components for live editing, add the `react-live=true` to the code section. For example:
0 commit comments