Skip to content

Commit e46f577

Browse files
committed
deploy: 042bed7
1 parent 9bbfbc5 commit e46f577

File tree

8 files changed

+20
-17
lines changed

8 files changed

+20
-17
lines changed

guide/advanced/javascript_interop.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ <h1 id="javascript-interoperability"><a class="header" href="#javascript-interop
165165
include all JavaScript snippets generated by <code>wasm-bindgen</code> for interfacing with JavaScript functionality.</p>
166166
<p>By default, functions exported from Rust, using <code>wasm-bingen</code>, can be accessed in the JavaScript code through the global
167167
variable <code>window.wasmBindings</code>. This behavior can be disabled, and the name can be customized. For more information
168-
see the <a href="@/assets.html#rust"><code>rust</code> asset type</a>.</p>
168+
see the <a href="../assets/index.html#rust"><code>rust</code> asset type</a>.</p>
169169
<h2 id="order-of-initialization"><a class="header" href="#order-of-initialization">Order of initialization</a></h2>
170170
<p>The bindings will only be available and working when the application initialization has been completed.</p>
171171
<p>If your WebAssembly application renders code into the web page/DOM tree, which then calls from JavaScript into the

guide/book.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ function playground_text(playground, hidden = true) {
449449
var sidebar = document.getElementById("sidebar");
450450
var sidebarLinks = document.querySelectorAll('#sidebar a');
451451
var sidebarToggleButton = document.getElementById("sidebar-toggle");
452+
var sidebarToggleAnchor = document.getElementById("sidebar-toggle-anchor");
452453
var sidebarResizeHandle = document.getElementById("sidebar-resize-handle");
453454
var firstContact = null;
454455

@@ -475,22 +476,16 @@ function playground_text(playground, hidden = true) {
475476
}
476477

477478
// Toggle sidebar
478-
sidebarToggleButton.addEventListener('click', function sidebarToggle() {
479-
if (body.classList.contains("sidebar-hidden")) {
479+
sidebarToggleAnchor.addEventListener('change', function sidebarToggle() {
480+
if (sidebarToggleAnchor.checked) {
480481
var current_width = parseInt(
481482
document.documentElement.style.getPropertyValue('--sidebar-width'), 10);
482483
if (current_width < 150) {
483484
document.documentElement.style.setProperty('--sidebar-width', '150px');
484485
}
485486
showSidebar();
486-
} else if (body.classList.contains("sidebar-visible")) {
487-
hideSidebar();
488487
} else {
489-
if (getComputedStyle(sidebar)['transform'] === 'none') {
490-
hideSidebar();
491-
} else {
492-
showSidebar();
493-
}
488+
hideSidebar();
494489
}
495490
});
496491

guide/css/chrome.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,14 @@ ul#searchresults span.teaser em {
421421
color: var(--sidebar-fg);
422422
}
423423
.sidebar-iframe-inner {
424+
--padding: 10px;
425+
424426
background-color: var(--sidebar-bg);
425-
color: var(--sidebar-fg);
426-
padding: 10px 10px;
427+
padding: var(--padding);
427428
margin: 0;
428429
font-size: 1.4rem;
430+
color: var(--sidebar-fg);
431+
min-height: calc(100vh - var(--padding) * 2);
429432
}
430433
.sidebar-iframe-outer {
431434
border: none;

guide/css/general.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,12 @@ sup {
200200
line-height: 0;
201201
}
202202

203-
:not(.footnote-definition) + .footnote-definition,
204-
.footnote-definition + :not(.footnote-definition) {
203+
:not(.footnote-definition) + .footnote-definition {
205204
margin-block-start: 2em;
206205
}
206+
.footnote-definition:not(:has(+ .footnote-definition)) {
207+
margin-block-end: 2em;
208+
}
207209
.footnote-definition {
208210
font-size: 0.9em;
209211
margin: 0.5em 0;

guide/css/variables.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
--content-max-width: 750px;
1010
--menu-bar-height: 50px;
1111
--mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
12-
--code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */
12+
--code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
1313
}
1414

1515
/* Themes */

guide/mdbook-admonish.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ details.admonition > summary.admonition-title::after {
106106
details[open].admonition > summary.admonition-title::after {
107107
transform: rotate(90deg);
108108
}
109+
summary.admonition-title::-webkit-details-marker {
110+
display: none;
111+
}
109112

110113
:root {
111114
--md-details-icon: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z'/></svg>");

guide/print.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ <h2 id="directives"><a class="header" href="#directives">Directives</a></h2>
677677
include all JavaScript snippets generated by <code>wasm-bindgen</code> for interfacing with JavaScript functionality.</p>
678678
<p>By default, functions exported from Rust, using <code>wasm-bingen</code>, can be accessed in the JavaScript code through the global
679679
variable <code>window.wasmBindings</code>. This behavior can be disabled, and the name can be customized. For more information
680-
see the <a href="advanced/@/assets.html#rust"><code>rust</code> asset type</a>.</p>
680+
see the <a href="advanced/../assets/index.html#rust"><code>rust</code> asset type</a>.</p>
681681
<h2 id="order-of-initialization"><a class="header" href="#order-of-initialization">Order of initialization</a></h2>
682682
<p>The bindings will only be available and working when the application initialization has been completed.</p>
683683
<p>If your WebAssembly application renders code into the web page/DOM tree, which then calls from JavaScript into the

guide/toc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement {
1010
connectedCallback() {
1111
this.innerHTML = '<ol class="chapter"><li class="chapter-item expanded affix "><a href="introduction.html">Introduction</a></li><li class="chapter-item expanded affix "><li class="spacer"></li><li class="chapter-item expanded "><a href="getting-started/index.html"><strong aria-hidden="true">1.</strong> Getting started</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="getting-started/pre-reqs.html"><strong aria-hidden="true">1.1.</strong> Pre-requisites</a></li><li class="chapter-item expanded "><a href="getting-started/installation.html"><strong aria-hidden="true">1.2.</strong> Installation</a></li><li class="chapter-item expanded "><a href="getting-started/project.html"><strong aria-hidden="true">1.3.</strong> First project</a></li></ol></li><li class="chapter-item expanded "><a href="commands/index.html"><strong aria-hidden="true">2.</strong> Commands</a></li><li class="chapter-item expanded "><a href="configuration/index.html"><strong aria-hidden="true">3.</strong> Configuration</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="configuration/schema.html"><strong aria-hidden="true">3.1.</strong> Schema</a></li></ol></li><li class="chapter-item expanded "><a href="build/hooks.html"><strong aria-hidden="true">4.</strong> Hooks</a></li><li class="chapter-item expanded "><a href="assets/index.html"><strong aria-hidden="true">5.</strong> Assets</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="assets/minification.html"><strong aria-hidden="true">5.1.</strong> Minification</a></li><li class="chapter-item expanded "><a href="assets/sri.html"><strong aria-hidden="true">5.2.</strong> Sub-resource integrity</a></li></ol></li><li class="chapter-item expanded "><a href="advanced/index.html"><strong aria-hidden="true">6.</strong> Advanced</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="advanced/javascript_interop.html"><strong aria-hidden="true">6.1.</strong> JavaScript interoperability</a></li><li class="chapter-item expanded "><a href="advanced/startup_event.html"><strong aria-hidden="true">6.2.</strong> Startup event</a></li><li class="chapter-item expanded "><a href="advanced/initializer.html"><strong aria-hidden="true">6.3.</strong> Application initializer</a></li><li class="chapter-item expanded "><a href="advanced/library.html"><strong aria-hidden="true">6.4.</strong> Library crate</a></li><li class="chapter-item expanded "><a href="advanced/paths.html"><strong aria-hidden="true">6.5.</strong> Base URLs, public URLs, paths &amp; reverse proxies</a></li><li class="chapter-item expanded "><a href="advanced/proxy.html"><strong aria-hidden="true">6.6.</strong> Backend Proxy</a></li></ol></li><li class="chapter-item expanded "><li class="spacer"></li><li class="chapter-item expanded affix "><a href="contributing.html">Contributing</a></li></ol>';
1212
// Set the current, active page, and reveal it if it's hidden
13-
let current_page = document.location.href.toString();
13+
let current_page = document.location.href.toString().split("#")[0];
1414
if (current_page.endsWith("/")) {
1515
current_page += "index.html";
1616
}

0 commit comments

Comments
 (0)