Skip to content

Commit 8a9ba98

Browse files
Update doc
1 parent e5847f0 commit 8a9ba98

25 files changed

+7
-390
lines changed

book/404.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -176,22 +176,6 @@ <h1 id="document-not-found-404"><a class="header" href="#document-not-found-404"
176176

177177
</div>
178178

179-
<!-- Livereload script (if served using the cli tool) -->
180-
<script>
181-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
182-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
183-
const socket = new WebSocket(wsAddress);
184-
socket.onmessage = function (event) {
185-
if (event.data === "reload") {
186-
socket.close();
187-
location.reload();
188-
}
189-
};
190-
191-
window.onbeforeunload = function() {
192-
socket.close();
193-
}
194-
</script>
195179

196180

197181

book/augmentations/cutmix.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -203,22 +203,6 @@ <h3 id="example"><a class="header" href="#example">Example</a></h3>
203203

204204
</div>
205205

206-
<!-- Livereload script (if served using the cli tool) -->
207-
<script>
208-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
209-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
210-
const socket = new WebSocket(wsAddress);
211-
socket.onmessage = function (event) {
212-
if (event.data === "reload") {
213-
socket.close();
214-
location.reload();
215-
}
216-
};
217-
218-
window.onbeforeunload = function() {
219-
socket.close();
220-
}
221-
</script>
222206

223207

224208

book/augmentations/dsa.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -216,22 +216,6 @@ <h3 id="example"><a class="header" href="#example">Example</a></h3>
216216

217217
</div>
218218

219-
<!-- Livereload script (if served using the cli tool) -->
220-
<script>
221-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
222-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
223-
const socket = new WebSocket(wsAddress);
224-
socket.onmessage = function (event) {
225-
if (event.data === "reload") {
226-
socket.close();
227-
location.reload();
228-
}
229-
};
230-
231-
window.onbeforeunload = function() {
232-
socket.close();
233-
}
234-
</script>
235219

236220

237221

book/augmentations/mixup.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -203,22 +203,6 @@ <h3 id="example"><a class="header" href="#example">Example</a></h3>
203203

204204
</div>
205205

206-
<!-- Livereload script (if served using the cli tool) -->
207-
<script>
208-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
209-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
210-
const socket = new WebSocket(wsAddress);
211-
socket.onmessage = function (event) {
212-
if (event.data === "reload") {
213-
socket.close();
214-
location.reload();
215-
}
216-
};
217-
218-
window.onbeforeunload = function() {
219-
socket.close();
220-
}
221-
</script>
222206

223207

224208

book/augmentations/overview.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -213,22 +213,6 @@ <h1 id="augmentations"><a class="header" href="#augmentations">Augmentations</a>
213213

214214
</div>
215215

216-
<!-- Livereload script (if served using the cli tool) -->
217-
<script>
218-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
219-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
220-
const socket = new WebSocket(wsAddress);
221-
socket.onmessage = function (event) {
222-
if (event.data === "reload") {
223-
socket.close();
224-
location.reload();
225-
}
226-
};
227-
228-
window.onbeforeunload = function() {
229-
socket.close();
230-
}
231-
</script>
232216

233217

234218

book/config/overview.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -237,22 +237,6 @@ <h1 id="config"><a class="header" href="#config">Config</a></h1>
237237

238238
</div>
239239

240-
<!-- Livereload script (if served using the cli tool) -->
241-
<script>
242-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
243-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
244-
const socket = new WebSocket(wsAddress);
245-
socket.onmessage = function (event) {
246-
if (event.data === "reload") {
247-
socket.close();
248-
location.reload();
249-
}
250-
};
251-
252-
window.onbeforeunload = function() {
253-
socket.close();
254-
}
255-
</script>
256240

257241

258242

book/contributing.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -201,22 +201,6 @@ <h1 id="contributing"><a class="header" href="#contributing">Contributing</a></h
201201

202202
</div>
203203

204-
<!-- Livereload script (if served using the cli tool) -->
205-
<script>
206-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
207-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
208-
const socket = new WebSocket(wsAddress);
209-
socket.onmessage = function (event) {
210-
if (event.data === "reload") {
211-
socket.close();
212-
location.reload();
213-
}
214-
};
215-
216-
window.onbeforeunload = function() {
217-
socket.close();
218-
}
219-
</script>
220204

221205

222206

book/datasets/overview.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -230,22 +230,6 @@ <h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>
230230

231231
</div>
232232

233-
<!-- Livereload script (if served using the cli tool) -->
234-
<script>
235-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
236-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
237-
const socket = new WebSocket(wsAddress);
238-
socket.onmessage = function (event) {
239-
if (event.data === "reload") {
240-
socket.close();
241-
location.reload();
242-
}
243-
};
244-
245-
window.onbeforeunload = function() {
246-
socket.close();
247-
}
248-
</script>
249233

250234

251235

book/getting-started/installation.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -192,22 +192,6 @@ <h2 id="installation"><a class="header" href="#installation">Installation</a></h
192192

193193
</div>
194194

195-
<!-- Livereload script (if served using the cli tool) -->
196-
<script>
197-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
198-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
199-
const socket = new WebSocket(wsAddress);
200-
socket.onmessage = function (event) {
201-
if (event.data === "reload") {
202-
socket.close();
203-
location.reload();
204-
}
205-
};
206-
207-
window.onbeforeunload = function() {
208-
socket.close();
209-
}
210-
</script>
211195

212196

213197

book/getting-started/quick-start.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -255,22 +255,6 @@ <h2 id="quick-start"><a class="header" href="#quick-start">Quick Start</a></h2>
255255

256256
</div>
257257

258-
<!-- Livereload script (if served using the cli tool) -->
259-
<script>
260-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
261-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
262-
const socket = new WebSocket(wsAddress);
263-
socket.onmessage = function (event) {
264-
if (event.data === "reload") {
265-
socket.close();
266-
location.reload();
267-
}
268-
};
269-
270-
window.onbeforeunload = function() {
271-
socket.close();
272-
}
273-
</script>
274258

275259

276260

0 commit comments

Comments
 (0)