Skip to content

Commit

Permalink
Generate site
Browse files Browse the repository at this point in the history
  • Loading branch information
tnballo committed Oct 8, 2023
1 parent ffbd399 commit 90d8f0d
Show file tree
Hide file tree
Showing 62 changed files with 1,648 additions and 1,012 deletions.
29 changes: 18 additions & 11 deletions docs/404.html

Large diffs are not rendered by default.

47 changes: 31 additions & 16 deletions docs/book.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,16 +441,16 @@ function playground_text(playground, hidden = true) {
})();

(function sidebar() {
var html = document.querySelector("html");
var body = document.querySelector("body");
var sidebar = document.getElementById("sidebar");
var sidebarLinks = document.querySelectorAll('#sidebar a');
var sidebarToggleButton = document.getElementById("sidebar-toggle");
var sidebarResizeHandle = document.getElementById("sidebar-resize-handle");
var firstContact = null;

function showSidebar() {
html.classList.remove('sidebar-hidden')
html.classList.add('sidebar-visible');
body.classList.remove('sidebar-hidden')
body.classList.add('sidebar-visible');
Array.from(sidebarLinks).forEach(function (link) {
link.setAttribute('tabIndex', 0);
});
Expand All @@ -471,8 +471,8 @@ function playground_text(playground, hidden = true) {
});

function hideSidebar() {
html.classList.remove('sidebar-visible')
html.classList.add('sidebar-hidden');
body.classList.remove('sidebar-visible')
body.classList.add('sidebar-hidden');
Array.from(sidebarLinks).forEach(function (link) {
link.setAttribute('tabIndex', -1);
});
Expand All @@ -483,14 +483,14 @@ function playground_text(playground, hidden = true) {

// Toggle sidebar
sidebarToggleButton.addEventListener('click', function sidebarToggle() {
if (html.classList.contains("sidebar-hidden")) {
if (body.classList.contains("sidebar-hidden")) {
var current_width = parseInt(
document.documentElement.style.getPropertyValue('--sidebar-width'), 10);
if (current_width < 150) {
document.documentElement.style.setProperty('--sidebar-width', '150px');
}
showSidebar();
} else if (html.classList.contains("sidebar-visible")) {
} else if (body.classList.contains("sidebar-visible")) {
hideSidebar();
} else {
if (getComputedStyle(sidebar)['transform'] === 'none') {
Expand All @@ -506,14 +506,14 @@ function playground_text(playground, hidden = true) {
function initResize(e) {
window.addEventListener('mousemove', resize, false);
window.addEventListener('mouseup', stopResize, false);
html.classList.add('sidebar-resizing');
body.classList.add('sidebar-resizing');
}
function resize(e) {
var pos = (e.clientX - sidebar.offsetLeft);
if (pos < 20) {
hideSidebar();
} else {
if (html.classList.contains("sidebar-hidden")) {
if (body.classList.contains("sidebar-hidden")) {
showSidebar();
}
pos = Math.min(pos, window.innerWidth - 100);
Expand All @@ -522,7 +522,7 @@ function playground_text(playground, hidden = true) {
}
//on mouseup remove windows functions mousemove & mouseup
function stopResize(e) {
html.classList.remove('sidebar-resizing');
body.classList.remove('sidebar-resizing');
window.removeEventListener('mousemove', resize, false);
window.removeEventListener('mouseup', stopResize, false);
}
Expand Down Expand Up @@ -557,20 +557,35 @@ function playground_text(playground, hidden = true) {
document.addEventListener('keydown', function (e) {
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { return; }
if (window.search && window.search.hasFocus()) { return; }
var html = document.querySelector('html');

function next() {
var nextButton = document.querySelector('.nav-chapters.next');
if (nextButton) {
window.location.href = nextButton.href;
}
}
function prev() {
var previousButton = document.querySelector('.nav-chapters.previous');
if (previousButton) {
window.location.href = previousButton.href;
}
}
switch (e.key) {
case 'ArrowRight':
e.preventDefault();
var nextButton = document.querySelector('.nav-chapters.next');
if (nextButton) {
window.location.href = nextButton.href;
if (html.dir == 'rtl') {
prev();
} else {
next();
}
break;
case 'ArrowLeft':
e.preventDefault();
var previousButton = document.querySelector('.nav-chapters.previous');
if (previousButton) {
window.location.href = previousButton.href;
if (html.dir == 'rtl') {
next();
} else {
prev();
}
break;
}
Expand Down
33 changes: 20 additions & 13 deletions docs/cfp.html

Large diffs are not rendered by default.

42 changes: 29 additions & 13 deletions docs/changelog.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp1/_hands_on.html

Large diffs are not rendered by default.

108 changes: 71 additions & 37 deletions docs/chp1/_index.html

Large diffs are not rendered by default.

38 changes: 24 additions & 14 deletions docs/chp1/about_the_team.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp1/challenges.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp1/how_is_this_book_structured.html

Large diffs are not rendered by default.

60 changes: 35 additions & 25 deletions docs/chp1/why_this_book.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp12/diff_fuzz_PLACEHOLDER.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp16_appendix/_index.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp16_appendix/books.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp16_appendix/components.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp16_appendix/crypto.html

Large diffs are not rendered by default.

29 changes: 18 additions & 11 deletions docs/chp16_appendix/icfg.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp16_appendix/mem_hierarch.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp16_appendix/resources.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp16_appendix/tools.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp16_appendix/types.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp2/_hands_on.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp2/_index.html

Large diffs are not rendered by default.

74 changes: 39 additions & 35 deletions docs/chp2/cli.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp2/dynamic_assurance_1.html

Large diffs are not rendered by default.

40 changes: 22 additions & 18 deletions docs/chp2/dynamic_assurance_2.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp2/dynamic_assurance_3.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp2/limits.html

Large diffs are not rendered by default.

35 changes: 21 additions & 14 deletions docs/chp2/operational_assurance_1.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp2/operational_assurance_2.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp2/static_assurance_1.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp2/static_assurance_2.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp2/static_vs_dynamic.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp3/_hands_on.html

Large diffs are not rendered by default.

37 changes: 22 additions & 15 deletions docs/chp3/_index.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp3/modules.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp3/rust_1_low_data_rep.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp3/rust_2_high_data_rep.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp3/rust_3_ctrl_flow.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp3/rust_4_own_1.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp3/rust_5_own_2.html

Large diffs are not rendered by default.

37 changes: 22 additions & 15 deletions docs/chp3/rust_6_error.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp3/tooling.html

Large diffs are not rendered by default.

107 changes: 62 additions & 45 deletions docs/chp3/undef.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp4/_index.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp4/assure_stack_1.html

Large diffs are not rendered by default.

35 changes: 21 additions & 14 deletions docs/chp4/attack_1.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp4/attack_2.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp4/safe_rust_PLACEHOLDER.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp4/sw_stack_1.html

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions docs/chp7/traits.html

Large diffs are not rendered by default.

Loading

0 comments on commit 90d8f0d

Please sign in to comment.