Skip to content

Commit 72df1a5

Browse files
committed
ci: generate pages at d37c377 [ci skip]
1 parent d37c377 commit 72df1a5

File tree

130 files changed

+4519
-2134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+4519
-2134
lines changed

docs/.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This file makes sure that Github Pages doesn't process mdBook's output.
1+
This file makes sure that Github Pages doesn't process mdBook's output.

docs/404.html

Lines changed: 230 additions & 0 deletions
Large diffs are not rendered by default.

docs/appendix-00.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/appendix-01-keywords.html

Lines changed: 24 additions & 8 deletions
Large diffs are not rendered by default.

docs/appendix-02-operators.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/appendix-03-derivable-traits.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/appendix-04-useful-development-tools.html

Lines changed: 27 additions & 11 deletions
Large diffs are not rendered by default.

docs/appendix-05-editions.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/appendix-06-translation.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/appendix-07-nightly-rust.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/book.js

Lines changed: 63 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
window.onunload = function () { };
55

66
// Global variable, shared between modules
7-
function playpen_text(playpen) {
8-
let code_block = playpen.querySelector("code");
7+
function playground_text(playground) {
8+
let code_block = playground.querySelector("code");
99

1010
if (window.ace && code_block.classList.contains("editable")) {
1111
let editor = window.ace.edit(code_block);
@@ -23,8 +23,8 @@ function playpen_text(playpen) {
2323
]);
2424
}
2525

26-
var playpens = Array.from(document.querySelectorAll(".playpen"));
27-
if (playpens.length > 0) {
26+
var playgrounds = Array.from(document.querySelectorAll(".playground"));
27+
if (playgrounds.length > 0) {
2828
fetch_with_timeout("https://play.rust-lang.org/meta/crates", {
2929
headers: {
3030
'Content-Type': "application/json",
@@ -36,21 +36,21 @@ function playpen_text(playpen) {
3636
.then(response => {
3737
// get list of crates available in the rust playground
3838
let playground_crates = response.crates.map(item => item["id"]);
39-
playpens.forEach(block => handle_crate_list_update(block, playground_crates));
39+
playgrounds.forEach(block => handle_crate_list_update(block, playground_crates));
4040
});
4141
}
4242

43-
function handle_crate_list_update(playpen_block, playground_crates) {
43+
function handle_crate_list_update(playground_block, playground_crates) {
4444
// update the play buttons after receiving the response
45-
update_play_button(playpen_block, playground_crates);
45+
update_play_button(playground_block, playground_crates);
4646

4747
// and install on change listener to dynamically update ACE editors
4848
if (window.ace) {
49-
let code_block = playpen_block.querySelector("code");
49+
let code_block = playground_block.querySelector("code");
5050
if (code_block.classList.contains("editable")) {
5151
let editor = window.ace.edit(code_block);
5252
editor.addEventListener("change", function (e) {
53-
update_play_button(playpen_block, playground_crates);
53+
update_play_button(playground_block, playground_crates);
5454
});
5555
// add Ctrl-Enter command to execute rust code
5656
editor.commands.addCommand({
@@ -59,7 +59,7 @@ function playpen_text(playpen) {
5959
win: "Ctrl-Enter",
6060
mac: "Ctrl-Enter"
6161
},
62-
exec: _editor => run_rust_code(playpen_block)
62+
exec: _editor => run_rust_code(playground_block)
6363
});
6464
}
6565
}
@@ -77,7 +77,7 @@ function playpen_text(playpen) {
7777
}
7878

7979
// get list of `extern crate`'s from snippet
80-
var txt = playpen_text(pre_block);
80+
var txt = playground_text(pre_block);
8181
var re = /extern\s+crate\s+([a-zA-Z_0-9]+)\s*;/g;
8282
var snippet_crates = [];
8383
var item;
@@ -106,7 +106,7 @@ function playpen_text(playpen) {
106106
code_block.append(result_block);
107107
}
108108

109-
let text = playpen_text(code_block);
109+
let text = playground_text(code_block);
110110
let classes = code_block.querySelector('code').classList;
111111
let has_2018 = classes.contains("edition2018");
112112
let edition = has_2018 ? "2018" : "2015";
@@ -143,6 +143,11 @@ function playpen_text(playpen) {
143143
languages: [], // Languages used for auto-detection
144144
});
145145

146+
let code_nodes = Array
147+
.from(document.querySelectorAll('code'))
148+
// Don't highlight `inline code` blocks in headers.
149+
.filter(function (node) {return !node.parentElement.classList.contains("header"); });
150+
146151
if (window.ace) {
147152
// language-rust class needs to be removed for editable
148153
// blocks or highlightjs will capture events
@@ -154,16 +159,12 @@ function playpen_text(playpen) {
154159
.from(document.querySelectorAll('code:not(.editable)'))
155160
.forEach(function (block) { hljs.highlightBlock(block); });
156161
} else {
157-
Array
158-
.from(document.querySelectorAll('code'))
159-
.forEach(function (block) { hljs.highlightBlock(block); });
162+
code_nodes.forEach(function (block) { hljs.highlightBlock(block); });
160163
}
161164

162165
// Adding the hljs class gives code blocks the color css
163166
// even if highlighting doesn't apply
164-
Array
165-
.from(document.querySelectorAll('code'))
166-
.forEach(function (block) { block.classList.add('hljs'); });
167+
code_nodes.forEach(function (block) { block.classList.add('hljs'); });
167168

168169
Array.from(document.querySelectorAll("code.language-rust")).forEach(function (block) {
169170

@@ -174,23 +175,23 @@ function playpen_text(playpen) {
174175

175176
var buttons = document.createElement('div');
176177
buttons.className = 'buttons';
177-
buttons.innerHTML = "<button class=\"fa fa-expand\" title=\"Show hidden lines\" aria-label=\"Show hidden lines\"></button>";
178+
buttons.innerHTML = "<button class=\"fa fa-eye\" title=\"Show hidden lines\" aria-label=\"Show hidden lines\"></button>";
178179

179180
// add expand button
180181
var pre_block = block.parentNode;
181182
pre_block.insertBefore(buttons, pre_block.firstChild);
182183

183184
pre_block.querySelector('.buttons').addEventListener('click', function (e) {
184-
if (e.target.classList.contains('fa-expand')) {
185-
e.target.classList.remove('fa-expand');
186-
e.target.classList.add('fa-compress');
185+
if (e.target.classList.contains('fa-eye')) {
186+
e.target.classList.remove('fa-eye');
187+
e.target.classList.add('fa-eye-slash');
187188
e.target.title = 'Hide lines';
188189
e.target.setAttribute('aria-label', e.target.title);
189190

190191
block.classList.remove('hide-boring');
191-
} else if (e.target.classList.contains('fa-compress')) {
192-
e.target.classList.remove('fa-compress');
193-
e.target.classList.add('fa-expand');
192+
} else if (e.target.classList.contains('fa-eye-slash')) {
193+
e.target.classList.remove('fa-eye-slash');
194+
e.target.classList.add('fa-eye');
194195
e.target.title = 'Show hidden lines';
195196
e.target.setAttribute('aria-label', e.target.title);
196197

@@ -199,10 +200,10 @@ function playpen_text(playpen) {
199200
});
200201
});
201202

202-
if (window.playpen_copyable) {
203+
if (window.playground_copyable) {
203204
Array.from(document.querySelectorAll('pre code')).forEach(function (block) {
204205
var pre_block = block.parentNode;
205-
if (!pre_block.classList.contains('playpen')) {
206+
if (!pre_block.classList.contains('playground')) {
206207
var buttons = pre_block.querySelector(".buttons");
207208
if (!buttons) {
208209
buttons = document.createElement('div');
@@ -221,8 +222,8 @@ function playpen_text(playpen) {
221222
});
222223
}
223224

224-
// Process playpen code blocks
225-
Array.from(document.querySelectorAll(".playpen")).forEach(function (pre_block) {
225+
// Process playground code blocks
226+
Array.from(document.querySelectorAll(".playground")).forEach(function (pre_block) {
226227
// Add play button
227228
var buttons = pre_block.querySelector(".buttons");
228229
if (!buttons) {
@@ -242,7 +243,7 @@ function playpen_text(playpen) {
242243
run_rust_code(pre_block);
243244
});
244245

245-
if (window.playpen_copyable) {
246+
if (window.playground_copyable) {
246247
var copyCodeClipboardButton = document.createElement('button');
247248
copyCodeClipboardButton.className = 'fa fa-copy clip-button';
248249
copyCodeClipboardButton.innerHTML = '<i class="tooltiptext"></i>';
@@ -284,7 +285,7 @@ function playpen_text(playpen) {
284285
function showThemes() {
285286
themePopup.style.display = 'block';
286287
themeToggleButton.setAttribute('aria-expanded', true);
287-
themePopup.querySelector("button#" + document.body.className).focus();
288+
themePopup.querySelector("button#" + get_theme()).focus();
288289
}
289290

290291
function hideThemes() {
@@ -293,6 +294,16 @@ function playpen_text(playpen) {
293294
themeToggleButton.focus();
294295
}
295296

297+
function get_theme() {
298+
var theme;
299+
try { theme = localStorage.getItem('mdbook-theme'); } catch (e) { }
300+
if (theme === null || theme === undefined) {
301+
return default_theme;
302+
} else {
303+
return theme;
304+
}
305+
}
306+
296307
function set_theme(theme, store = true) {
297308
let ace_theme;
298309

@@ -324,9 +335,7 @@ function playpen_text(playpen) {
324335
});
325336
}
326337

327-
var previousTheme;
328-
try { previousTheme = localStorage.getItem('mdbook-theme'); } catch (e) { }
329-
if (previousTheme === null || previousTheme === undefined) { previousTheme = default_theme; }
338+
var previousTheme = get_theme();
330339

331340
if (store) {
332341
try { localStorage.setItem('mdbook-theme', theme); } catch (e) { }
@@ -337,9 +346,7 @@ function playpen_text(playpen) {
337346
}
338347

339348
// Set theme
340-
var theme;
341-
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
342-
if (theme === null || theme === undefined) { theme = default_theme; }
349+
var theme = get_theme();
343350

344351
set_theme(theme, false);
345352

@@ -408,7 +415,6 @@ function playpen_text(playpen) {
408415
(function sidebar() {
409416
var html = document.querySelector("html");
410417
var sidebar = document.getElementById("sidebar");
411-
var sidebarScrollBox = document.querySelector(".sidebar-scrollbox");
412418
var sidebarLinks = document.querySelectorAll('#sidebar a');
413419
var sidebarToggleButton = document.getElementById("sidebar-toggle");
414420
var sidebarResizeHandle = document.getElementById("sidebar-resize-handle");
@@ -450,6 +456,11 @@ function playpen_text(playpen) {
450456
// Toggle sidebar
451457
sidebarToggleButton.addEventListener('click', function sidebarToggle() {
452458
if (html.classList.contains("sidebar-hidden")) {
459+
var current_width = parseInt(
460+
document.documentElement.style.getPropertyValue('--sidebar-width'), 10);
461+
if (current_width < 150) {
462+
document.documentElement.style.setProperty('--sidebar-width', '150px');
463+
}
453464
showSidebar();
454465
} else if (html.classList.contains("sidebar-visible")) {
455466
hideSidebar();
@@ -470,7 +481,16 @@ function playpen_text(playpen) {
470481
html.classList.add('sidebar-resizing');
471482
}
472483
function resize(e) {
473-
document.documentElement.style.setProperty('--sidebar-width', (e.clientX - sidebar.offsetLeft) + 'px');
484+
var pos = (e.clientX - sidebar.offsetLeft);
485+
if (pos < 20) {
486+
hideSidebar();
487+
} else {
488+
if (html.classList.contains("sidebar-hidden")) {
489+
showSidebar();
490+
}
491+
pos = Math.min(pos, window.innerWidth - 100);
492+
document.documentElement.style.setProperty('--sidebar-width', pos + 'px');
493+
}
474494
}
475495
//on mouseup remove windows functions mousemove & mouseup
476496
function stopResize(e) {
@@ -507,7 +527,8 @@ function playpen_text(playpen) {
507527
// Scroll sidebar to current active section
508528
var activeSection = document.getElementById("sidebar").querySelector(".active");
509529
if (activeSection) {
510-
sidebarScrollBox.scrollTop = activeSection.offsetTop;
530+
// https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
531+
activeSection.scrollIntoView({ block: 'center' });
511532
}
512533
})();
513534

@@ -551,8 +572,8 @@ function playpen_text(playpen) {
551572
var clipboardSnippets = new ClipboardJS('.clip-button', {
552573
text: function (trigger) {
553574
hideTooltip(trigger);
554-
let playpen = trigger.closest("pre");
555-
return playpen_text(playpen);
575+
let playground = trigger.closest("pre");
576+
return playground_text(playground);
556577
}
557578
});
558579

docs/ch00-00-introduction.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch01-00-getting-started.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch01-01-installation.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch01-02-hello-world.html

Lines changed: 27 additions & 11 deletions
Large diffs are not rendered by default.

docs/ch01-03-hello-cargo.html

Lines changed: 24 additions & 8 deletions
Large diffs are not rendered by default.

docs/ch02-00-guessing-game-tutorial.html

Lines changed: 26 additions & 10 deletions
Large diffs are not rendered by default.

docs/ch03-00-common-programming-concepts.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch03-01-variables-and-mutability.html

Lines changed: 29 additions & 13 deletions
Large diffs are not rendered by default.

docs/ch03-02-data-types.html

Lines changed: 36 additions & 20 deletions
Large diffs are not rendered by default.

docs/ch03-03-how-functions-work.html

Lines changed: 32 additions & 16 deletions
Large diffs are not rendered by default.

docs/ch03-04-comments.html

Lines changed: 29 additions & 13 deletions
Large diffs are not rendered by default.

docs/ch03-05-control-flow.html

Lines changed: 31 additions & 15 deletions
Large diffs are not rendered by default.

docs/ch04-00-understanding-ownership.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch04-01-what-is-ownership.html

Lines changed: 44 additions & 28 deletions
Large diffs are not rendered by default.

docs/ch04-02-references-and-borrowing.html

Lines changed: 33 additions & 17 deletions
Large diffs are not rendered by default.

docs/ch04-03-slices.html

Lines changed: 43 additions & 27 deletions
Large diffs are not rendered by default.

docs/ch05-00-structs.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch05-01-defining-structs.html

Lines changed: 39 additions & 23 deletions
Large diffs are not rendered by default.

docs/ch05-02-example-structs.html

Lines changed: 27 additions & 11 deletions
Large diffs are not rendered by default.

docs/ch05-03-method-syntax.html

Lines changed: 32 additions & 16 deletions
Large diffs are not rendered by default.

docs/ch06-00-enums.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch06-01-defining-an-enum.html

Lines changed: 49 additions & 33 deletions
Large diffs are not rendered by default.

docs/ch06-02-match.html

Lines changed: 35 additions & 19 deletions
Large diffs are not rendered by default.

docs/ch06-03-if-let.html

Lines changed: 31 additions & 15 deletions
Large diffs are not rendered by default.

docs/ch07-00-managing-growing-projects-with-packages-crates-and-modules.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch07-01-packages-and-crates.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch07-02-defining-modules-to-control-scope-and-privacy.html

Lines changed: 24 additions & 8 deletions
Large diffs are not rendered by default.

docs/ch07-03-paths-for-referring-to-an-item-in-the-module-tree.html

Lines changed: 29 additions & 13 deletions
Large diffs are not rendered by default.

docs/ch07-04-bringing-paths-into-scope-with-the-use-keyword.html

Lines changed: 40 additions & 24 deletions
Large diffs are not rendered by default.

docs/ch07-05-separating-modules-into-different-files.html

Lines changed: 25 additions & 9 deletions
Large diffs are not rendered by default.

docs/ch08-00-common-collections.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch08-01-vectors.html

Lines changed: 41 additions & 25 deletions
Large diffs are not rendered by default.

docs/ch08-02-strings.html

Lines changed: 53 additions & 37 deletions
Large diffs are not rendered by default.

docs/ch08-03-hash-maps.html

Lines changed: 39 additions & 23 deletions
Large diffs are not rendered by default.

docs/ch09-00-error-handling.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch09-01-unrecoverable-errors-with-panic.html

Lines changed: 25 additions & 9 deletions
Large diffs are not rendered by default.

docs/ch09-02-recoverable-errors-with-result.html

Lines changed: 35 additions & 19 deletions
Large diffs are not rendered by default.

docs/ch09-03-to-panic-or-not-to-panic.html

Lines changed: 27 additions & 11 deletions
Large diffs are not rendered by default.

docs/ch10-00-generics.html

Lines changed: 26 additions & 10 deletions
Large diffs are not rendered by default.

docs/ch10-01-syntax.html

Lines changed: 37 additions & 21 deletions
Large diffs are not rendered by default.

docs/ch10-02-traits.html

Lines changed: 36 additions & 20 deletions
Large diffs are not rendered by default.

docs/ch10-03-lifetime-syntax.html

Lines changed: 41 additions & 25 deletions
Large diffs are not rendered by default.

docs/ch11-00-testing.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch11-01-writing-tests.html

Lines changed: 39 additions & 23 deletions
Large diffs are not rendered by default.

docs/ch11-02-running-tests.html

Lines changed: 29 additions & 13 deletions
Large diffs are not rendered by default.

docs/ch11-03-test-organization.html

Lines changed: 29 additions & 13 deletions
Large diffs are not rendered by default.

docs/ch12-00-an-io-project.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch12-01-accepting-command-line-arguments.html

Lines changed: 25 additions & 9 deletions
Large diffs are not rendered by default.

docs/ch12-02-reading-a-file.html

Lines changed: 24 additions & 8 deletions
Large diffs are not rendered by default.

docs/ch12-03-improving-error-handling-and-modularity.html

Lines changed: 25 additions & 9 deletions
Large diffs are not rendered by default.

docs/ch12-04-testing-the-librarys-functionality.html

Lines changed: 27 additions & 11 deletions
Large diffs are not rendered by default.

docs/ch12-05-working-with-environment-variables.html

Lines changed: 33 additions & 17 deletions
Large diffs are not rendered by default.

docs/ch12-06-writing-to-stderr-instead-of-stdout.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch13-00-functional-features.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch13-01-closures.html

Lines changed: 43 additions & 27 deletions
Large diffs are not rendered by default.

docs/ch13-02-iterators.html

Lines changed: 47 additions & 31 deletions
Large diffs are not rendered by default.

docs/ch13-03-improving-our-io-project.html

Lines changed: 24 additions & 8 deletions
Large diffs are not rendered by default.

docs/ch13-04-performance.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch14-00-more-about-cargo.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch14-01-release-profiles.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch14-02-publishing-to-crates-io.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch14-03-cargo-workspaces.html

Lines changed: 27 additions & 11 deletions
Large diffs are not rendered by default.

docs/ch14-04-installing-binaries.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch14-05-extending-cargo.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch15-00-smart-pointers.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch15-01-box.html

Lines changed: 27 additions & 11 deletions
Large diffs are not rendered by default.

docs/ch15-02-deref.html

Lines changed: 33 additions & 17 deletions
Large diffs are not rendered by default.

docs/ch15-03-drop.html

Lines changed: 25 additions & 9 deletions
Large diffs are not rendered by default.

docs/ch15-04-rc.html

Lines changed: 25 additions & 9 deletions
Large diffs are not rendered by default.

docs/ch15-05-interior-mutability.html

Lines changed: 30 additions & 14 deletions
Large diffs are not rendered by default.

docs/ch15-06-reference-cycles.html

Lines changed: 32 additions & 16 deletions
Large diffs are not rendered by default.

docs/ch16-00-concurrency.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch16-01-threads.html

Lines changed: 27 additions & 11 deletions
Large diffs are not rendered by default.

docs/ch16-02-message-passing.html

Lines changed: 28 additions & 12 deletions
Large diffs are not rendered by default.

docs/ch16-03-shared-state.html

Lines changed: 25 additions & 9 deletions
Large diffs are not rendered by default.

docs/ch16-04-extensible-concurrency-sync-and-send.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch17-00-oop.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch17-01-what-is-oo.html

Lines changed: 27 additions & 11 deletions
Large diffs are not rendered by default.

docs/ch17-02-trait-objects.html

Lines changed: 35 additions & 19 deletions
Large diffs are not rendered by default.

docs/ch17-03-oo-design-patterns.html

Lines changed: 41 additions & 25 deletions
Large diffs are not rendered by default.

docs/ch18-00-patterns.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch18-01-all-the-places-for-patterns.html

Lines changed: 35 additions & 19 deletions
Large diffs are not rendered by default.

docs/ch18-02-refutability.html

Lines changed: 25 additions & 9 deletions
Large diffs are not rendered by default.

docs/ch18-03-pattern-syntax.html

Lines changed: 62 additions & 46 deletions
Large diffs are not rendered by default.

docs/ch19-00-advanced-features.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch19-01-unsafe-rust.html

Lines changed: 44 additions & 28 deletions
Large diffs are not rendered by default.

docs/ch19-03-advanced-traits.html

Lines changed: 45 additions & 29 deletions
Large diffs are not rendered by default.

docs/ch19-04-advanced-types.html

Lines changed: 35 additions & 19 deletions
Large diffs are not rendered by default.

docs/ch19-05-advanced-functions-and-closures.html

Lines changed: 30 additions & 14 deletions
Large diffs are not rendered by default.

docs/ch19-06-macros.html

Lines changed: 29 additions & 13 deletions
Large diffs are not rendered by default.

docs/ch20-00-final-project-a-web-server.html

Lines changed: 23 additions & 7 deletions
Large diffs are not rendered by default.

docs/ch20-01-single-threaded.html

Lines changed: 35 additions & 19 deletions
Large diffs are not rendered by default.

docs/ch20-02-multithreaded.html

Lines changed: 43 additions & 27 deletions
Large diffs are not rendered by default.

docs/ch20-03-graceful-shutdown-and-cleanup.html

Lines changed: 29 additions & 13 deletions
Large diffs are not rendered by default.

docs/css/chrome.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ ul#searchresults span.teaser em {
423423
display: none;
424424
}
425425

426-
.chapter li.expanded {
426+
.chapter li.chapter-item {
427427
line-height: 1.5em;
428428
margin-top: 0.6em;
429429
}

docs/css/general.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,16 @@ code {
2525
font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
2626
}
2727

28+
/* Don't change font size in headers. */
29+
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
30+
font-size: unset;
31+
}
32+
2833
.left { float: left; }
2934
.right { float: right; }
3035
.boring { opacity: 0.6; }
3136
.hide-boring .boring { display: none; }
32-
.hidden { display: none; }
37+
.hidden { display: none !important; }
3338

3439
h2, h3 { margin-top: 2.5em; }
3540
h4, h5 { margin-top: 2em; }
@@ -161,3 +166,9 @@ blockquote {
161166
.tooltipped .tooltiptext {
162167
visibility: visible;
163168
}
169+
170+
.chapter li.part-title {
171+
color: var(--sidebar-fg);
172+
margin: 5px 0px;
173+
font-weight: bold;
174+
}

docs/favicon.svg

Lines changed: 22 additions & 0 deletions

0 commit comments

Comments
 (0)