Skip to content

Commit 1f4cfcb

Browse files
Update doc
1 parent 649ea83 commit 1f4cfcb

26 files changed

+401
-1
lines changed

book.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# * template https://github.com/kg4zow/mdbook-template/
44

55
[book]
6-
authors = ["Data Intelligence Team"]
6+
authors = ["DD-Ranking Team"]
77
language = "en"
88
multilingual = false
99
src = "doc"

book/404.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,22 @@ <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>
178194

179195

180196

book/augmentations/cutmix.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,22 @@ <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>
205221

206222

207223

book/augmentations/dsa.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,22 @@ <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>
218234

219235

220236

book/augmentations/mixup.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,22 @@ <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>
205221

206222

207223

book/augmentations/overview.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,22 @@ <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>
215231

216232

217233

book/config/overview.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,22 @@ <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>
252268

253269

254270

book/contributing.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,22 @@ <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>
203219

204220

205221

book/datasets/overview.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,22 @@ <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>
242258

243259

244260

book/getting-started/installation.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,22 @@ <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>
194210

195211

196212

0 commit comments

Comments
 (0)