Skip to content

Commit

Permalink
deploy: 8a60abe
Browse files Browse the repository at this point in the history
  • Loading branch information
pandermatt committed Oct 12, 2023
1 parent d7a479c commit 44bb88a
Show file tree
Hide file tree
Showing 40 changed files with 739 additions and 723 deletions.
27 changes: 16 additions & 11 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE HTML>
<html lang="en" class="sidebar-visible no-js light">
<html lang="en" class="light" dir="ltr">
<head>
<!-- Book generated using mdBook -->
<meta charset="UTF-8">
Expand All @@ -11,7 +11,7 @@

<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ffffff" />
<meta name="theme-color" content="#ffffff">

<link rel="icon" href="favicon.svg">
<link rel="shortcut icon" href="favicon.png">
Expand All @@ -33,7 +33,7 @@
<link rel="stylesheet" href="custom.css">

</head>
<body>
<body class="sidebar-visible no-js">
<div id="body-container">
<!-- Provide site root to javascript -->
<script>
Expand Down Expand Up @@ -63,29 +63,34 @@
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
if (theme === null || theme === undefined) { theme = default_theme; }
var html = document.querySelector('html');
html.classList.remove('no-js')
html.classList.remove('light')
html.classList.add(theme);
html.classList.add('js');
var body = document.querySelector('body');
body.classList.remove('no-js')
body.classList.add('js');
</script>

<input type="checkbox" id="sidebar-toggle-anchor" class="hidden">

<!-- Hide / unhide sidebar before it is displayed -->
<script>
var html = document.querySelector('html');
var body = document.querySelector('body');
var sidebar = null;
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor");
if (document.body.clientWidth >= 1080) {
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
sidebar = sidebar || 'visible';
} else {
sidebar = 'hidden';
}
html.classList.remove('sidebar-visible');
html.classList.add("sidebar-" + sidebar);
sidebar_toggle.checked = sidebar === 'visible';
body.classList.remove('sidebar-visible');
body.classList.add("sidebar-" + sidebar);
</script>

<nav id="sidebar" class="sidebar" aria-label="Table of contents">
<div class="sidebar-scrollbox">
<ol class="chapter"><li class="chapter-item expanded affix "><li class="part-title">Laptop Setup Guide for macOS</li><li class="chapter-item expanded "><a href="index.html"><strong aria-hidden="true">1.</strong> Overview</a></li><li class="chapter-item expanded "><a href="non-technical-setup/index.html"><strong aria-hidden="true">2.</strong> Non-technical Setup</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="non-technical-setup/macos_setup.html"><strong aria-hidden="true">2.1.</strong> macOS Setup</a></li><li class="chapter-item expanded "><a href="non-technical-setup/software_programs.html"><strong aria-hidden="true">2.2.</strong> Software & Programs</a></li><li class="chapter-item expanded "><a href="non-technical-setup/renuo_specific_information.html"><strong aria-hidden="true">2.3.</strong> Renuo Specific Information</a></li><li class="chapter-item expanded "><a href="non-technical-setup/finish_setup.html"><strong aria-hidden="true">2.4.</strong> Finish Setup</a></li></ol></li><li class="chapter-item expanded "><a href="technical-setup/index.html"><strong aria-hidden="true">3.</strong> Technical Setup</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="technical-setup/xcode.html"><strong aria-hidden="true">3.1.</strong> XCode</a></li><li class="chapter-item expanded "><a href="technical-setup/iterm2.html"><strong aria-hidden="true">3.2.</strong> iTerm2</a></li><li class="chapter-item expanded "><a href="technical-setup/homebrew.html"><strong aria-hidden="true">3.3.</strong> Homebrew</a></li><li class="chapter-item expanded "><a href="technical-setup/vim.html"><strong aria-hidden="true">3.4.</strong> Console Editor</a></li><li class="chapter-item expanded "><a href="technical-setup/zsh.html"><strong aria-hidden="true">3.5.</strong> ZSH</a></li><li class="chapter-item expanded "><a href="technical-setup/git.html"><strong aria-hidden="true">3.6.</strong> Git</a></li><li class="chapter-item expanded "><a href="technical-setup/git_flow.html"><strong aria-hidden="true">3.7.</strong> Git Flow</a></li><li class="chapter-item expanded "><a href="technical-setup/gpg.html"><strong aria-hidden="true">3.8.</strong> GPG</a></li><li class="chapter-item expanded "><a href="technical-setup/setup_ssh_key.html"><strong aria-hidden="true">3.9.</strong> Setup SSH Key</a></li><li class="chapter-item expanded "><a href="technical-setup/asdf.html"><strong aria-hidden="true">3.10.</strong> asdf</a></li><li class="chapter-item expanded "><a href="technical-setup/yarn.html"><strong aria-hidden="true">3.11.</strong> Yarn</a></li><li class="chapter-item expanded "><a href="technical-setup/postgresql.html"><strong aria-hidden="true">3.12.</strong> PostgreSQL</a></li><li class="chapter-item expanded "><a href="technical-setup/redis.html"><strong aria-hidden="true">3.13.</strong> Redis</a></li><li class="chapter-item expanded "><a href="technical-setup/heroku_cli.html"><strong aria-hidden="true">3.14.</strong> Heroku CLI</a></li><li class="chapter-item expanded "><a href="technical-setup/renuo_cli.html"><strong aria-hidden="true">3.15.</strong> Renuo CLI</a></li><li class="chapter-item expanded "><a href="technical-setup/important_homebrew_apps.html"><strong aria-hidden="true">3.16.</strong> Important Homebrew Apps</a></li><li class="chapter-item expanded "><a href="technical-setup/verify_setup.html"><strong aria-hidden="true">3.17.</strong> Verify Setup</a></li></ol></li><li class="chapter-item expanded "><a href="nice_to_have/index.html"><strong aria-hidden="true">4.</strong> Nice to have</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="nice_to_have/rubymine.html"><strong aria-hidden="true">4.1.</strong> Rubymine</a></li><li class="chapter-item expanded "><a href="nice_to_have/google_chrome_shortcuts.html"><strong aria-hidden="true">4.2.</strong> Google Chrome Shortcuts</a></li><li class="chapter-item expanded "><a href="nice_to_have/raycast.html"><strong aria-hidden="true">4.3.</strong> Raycast</a></li><li class="chapter-item expanded "><a href="nice_to_have/autojump.html"><strong aria-hidden="true">4.4.</strong> Autojump</a></li><li class="chapter-item expanded "><a href="nice_to_have/increase_github_quota.html"><strong aria-hidden="true">4.5.</strong> Increase GitHub Quota</a></li><li class="chapter-item expanded "><a href="nice_to_have/puma_or_hotel.html"><strong aria-hidden="true">4.6.</strong> Puma-dev or Hotel</a></li></ol></li></ol>
<ol class="chapter"><li class="chapter-item expanded affix "><li class="part-title">Laptop Setup Guide for macOS</li><li class="chapter-item expanded "><a href="index.html"><strong aria-hidden="true">1.</strong> Overview</a></li><li class="chapter-item expanded "><a href="non-technical-setup/index.html"><strong aria-hidden="true">2.</strong> Non-technical Setup</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="non-technical-setup/macos_setup.html"><strong aria-hidden="true">2.1.</strong> macOS Setup</a></li><li class="chapter-item expanded "><a href="non-technical-setup/software_programs.html"><strong aria-hidden="true">2.2.</strong> Software & Programs</a></li><li class="chapter-item expanded "><a href="non-technical-setup/finish_setup.html"><strong aria-hidden="true">2.3.</strong> Finish Setup</a></li></ol></li><li class="chapter-item expanded "><a href="technical-setup/index.html"><strong aria-hidden="true">3.</strong> Technical Setup</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="technical-setup/xcode.html"><strong aria-hidden="true">3.1.</strong> XCode</a></li><li class="chapter-item expanded "><a href="technical-setup/iterm2.html"><strong aria-hidden="true">3.2.</strong> iTerm2</a></li><li class="chapter-item expanded "><a href="technical-setup/homebrew.html"><strong aria-hidden="true">3.3.</strong> Homebrew</a></li><li class="chapter-item expanded "><a href="technical-setup/vim.html"><strong aria-hidden="true">3.4.</strong> Console Editor</a></li><li class="chapter-item expanded "><a href="technical-setup/zsh.html"><strong aria-hidden="true">3.5.</strong> ZSH</a></li><li class="chapter-item expanded "><a href="technical-setup/git.html"><strong aria-hidden="true">3.6.</strong> Git</a></li><li class="chapter-item expanded "><a href="technical-setup/git_flow.html"><strong aria-hidden="true">3.7.</strong> Git Flow</a></li><li class="chapter-item expanded "><a href="technical-setup/gpg.html"><strong aria-hidden="true">3.8.</strong> GPG</a></li><li class="chapter-item expanded "><a href="technical-setup/setup_ssh_key.html"><strong aria-hidden="true">3.9.</strong> Setup SSH Key</a></li><li class="chapter-item expanded "><a href="technical-setup/asdf.html"><strong aria-hidden="true">3.10.</strong> asdf</a></li><li class="chapter-item expanded "><a href="technical-setup/yarn.html"><strong aria-hidden="true">3.11.</strong> Yarn</a></li><li class="chapter-item expanded "><a href="technical-setup/postgresql.html"><strong aria-hidden="true">3.12.</strong> PostgreSQL</a></li><li class="chapter-item expanded "><a href="technical-setup/redis.html"><strong aria-hidden="true">3.13.</strong> Redis</a></li><li class="chapter-item expanded "><a href="technical-setup/heroku_cli.html"><strong aria-hidden="true">3.14.</strong> Heroku CLI</a></li><li class="chapter-item expanded "><a href="technical-setup/renuo_cli.html"><strong aria-hidden="true">3.15.</strong> Renuo CLI</a></li><li class="chapter-item expanded "><a href="technical-setup/important_homebrew_apps.html"><strong aria-hidden="true">3.16.</strong> Important Homebrew Apps</a></li><li class="chapter-item expanded "><a href="technical-setup/verify_setup.html"><strong aria-hidden="true">3.17.</strong> Verify Setup</a></li></ol></li><li class="chapter-item expanded "><a href="nice_to_have/index.html"><strong aria-hidden="true">4.</strong> Nice to have</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="nice_to_have/rubymine.html"><strong aria-hidden="true">4.1.</strong> Rubymine</a></li><li class="chapter-item expanded "><a href="nice_to_have/google_chrome_shortcuts.html"><strong aria-hidden="true">4.2.</strong> Google Chrome Shortcuts</a></li><li class="chapter-item expanded "><a href="nice_to_have/raycast.html"><strong aria-hidden="true">4.3.</strong> Raycast</a></li><li class="chapter-item expanded "><a href="nice_to_have/autojump.html"><strong aria-hidden="true">4.4.</strong> Autojump</a></li><li class="chapter-item expanded "><a href="nice_to_have/increase_github_quota.html"><strong aria-hidden="true">4.5.</strong> Increase GitHub Quota</a></li><li class="chapter-item expanded "><a href="nice_to_have/puma_or_hotel.html"><strong aria-hidden="true">4.6.</strong> Puma-dev or Hotel</a></li></ol></li></ol>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
</nav>
Expand Down Expand Up @@ -118,9 +123,9 @@
<div id="menu-bar-hover-placeholder"></div>
<div id="menu-bar" class="menu-bar sticky">
<div class="left-buttons">
<button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
<i class="fa fa-bars"></i>
</button>
</label>
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list">
<i class="fa fa-paint-brush"></i>
</button>
Expand Down
47 changes: 31 additions & 16 deletions 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
Loading

0 comments on commit 44bb88a

Please sign in to comment.