Skip to content

Commit 2aba698

Browse files
Update doc
1 parent 7b521a4 commit 2aba698

26 files changed

+8
-392
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
@@ -236,22 +236,6 @@ <h1 id="config"><a class="header" href="#config">Config</a></h1>
236236

237237
</div>
238238

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

256240

257241

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
@@ -229,22 +229,6 @@ <h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>
229229

230230
</div>
231231

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

249233

250234

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
@@ -256,22 +256,6 @@ <h2 id="quick-start"><a class="header" href="#quick-start">Quick Start</a></h2>
256256

257257
</div>
258258

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

276260

277261

0 commit comments

Comments
 (0)