Skip to content

Commit af9a130

Browse files
committed
ci: generate pages at a2747ce [ci skip]
1 parent a2747ce commit af9a130

File tree

209 files changed

+7348
-5755
lines changed

Some content is hidden

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

209 files changed

+7348
-5755
lines changed

docs/404.html

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

docs/attribute.html

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

docs/attribute/cfg.html

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

docs/attribute/cfg/custom.html

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

docs/attribute/crate.html

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

docs/attribute/unused.html

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

docs/ayu-highlight.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Original by Dempfi (https://github.com/dempfi/ayu)
88
overflow-x: auto;
99
background: #191f26;
1010
color: #e6e1cf;
11-
padding: 0.5em;
1211
}
1312

1413
.hljs-comment,

docs/book.js

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

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

1010
if (window.ace && code_block.classList.contains("editable")) {
1111
let editor = window.ace.edit(code_block);
1212
return editor.getValue();
13-
} else {
13+
} else if (hidden) {
1414
return code_block.textContent;
15+
} else {
16+
return code_block.innerText;
1517
}
1618
}
1719

@@ -166,7 +168,6 @@ function playground_text(playground) {
166168
.filter(function (node) {return node.classList.contains("editable"); })
167169
.forEach(function (block) { block.classList.remove('language-rust'); });
168170

169-
Array
170171
code_nodes
171172
.filter(function (node) {return !node.classList.contains("editable"); })
172173
.forEach(function (block) { hljs.highlightBlock(block); });
@@ -300,6 +301,13 @@ function playground_text(playground) {
300301
themePopup.querySelector("button#" + get_theme()).focus();
301302
}
302303

304+
function updateThemeSelected() {
305+
themePopup.querySelectorAll('.theme-selected').forEach(function (el) {
306+
el.classList.remove('theme-selected');
307+
});
308+
themePopup.querySelector("button#" + get_theme()).classList.add('theme-selected');
309+
}
310+
303311
function hideThemes() {
304312
themePopup.style.display = 'none';
305313
themeToggleButton.setAttribute('aria-expanded', false);
@@ -355,6 +363,7 @@ function playground_text(playground) {
355363

356364
html.classList.remove(previousTheme);
357365
html.classList.add(theme);
366+
updateThemeSelected();
358367
}
359368

360369
// Set theme
@@ -592,7 +601,7 @@ function playground_text(playground) {
592601
text: function (trigger) {
593602
hideTooltip(trigger);
594603
let playground = trigger.closest("pre");
595-
return playground_text(playground);
604+
return playground_text(playground, false);
596605
}
597606
});
598607

docs/cargo.html

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

docs/cargo/build_scripts.html

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

0 commit comments

Comments
 (0)