Skip to content

Commit 649ea83

Browse files
Update doc
1 parent 434a861 commit 649ea83

27 files changed

+6
-410
lines changed

book/404.html

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

176176
</div>
177177

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

195179

196180

book/augmentations/cutmix.html

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

203203
</div>
204204

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

222206

223207

book/augmentations/dsa.html

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

216216
</div>
217217

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

235219

236220

book/augmentations/mixup.html

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

203203
</div>
204204

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

222206

223207

book/augmentations/overview.html

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

213213
</div>
214214

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

232216

233217

book/config/overview.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -249,22 +249,6 @@ <h2 id="ars"><a class="header" href="#ars">ARS</a></h2>
249249

250250
</div>
251251

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

269253

270254

book/contributing.html

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

201201
</div>
202202

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

220204

221205

book/datasets/overview.html

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

240240
</div>
241241

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

259243

260244

book/getting-started/installation.html

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

192192
</div>
193193

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

211195

212196

book/getting-started/quick-start.html

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

269269
</div>
270270

271-
<!-- Livereload script (if served using the cli tool) -->
272-
<script>
273-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
274-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
275-
const socket = new WebSocket(wsAddress);
276-
socket.onmessage = function (event) {
277-
if (event.data === "reload") {
278-
socket.close();
279-
location.reload();
280-
}
281-
};
282-
283-
window.onbeforeunload = function() {
284-
socket.close();
285-
}
286-
</script>
287271

288272

289273

0 commit comments

Comments
 (0)