-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
98 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
async function chapterNavigation() { | ||
let navigating = false | ||
document.addEventListener("keydown", function (e) { | ||
if (navigating) return | ||
if (e.altKey || e.ctrlKey || e.metaKey) { | ||
return; | ||
} | ||
if (window.search && document.activeElement === window.search) { | ||
return; | ||
} | ||
switch (e.key) { | ||
case "ArrowLeft": | ||
e.preventDefault(); | ||
let previousButton = document.querySelector('a[rel="prev"]'); | ||
if (!previousButton && window.location.pathname !== '/') previousButton = { href: '/' } | ||
if (document.referrer.includes(window.location.host)) | ||
if (previousButton) { | ||
window.location.href = previousButton.href; | ||
navigating = true; | ||
} | ||
break; | ||
case "ArrowRight": | ||
e.preventDefault(); | ||
let nextButton = document.querySelector('a[rel="next"]'); | ||
if (!nextButton && window.location.pathname === '/') nextButton = { href: "/start/" } | ||
if (nextButton) { | ||
window.location.href = nextButton.href; | ||
navigating = true; | ||
} | ||
break; | ||
} | ||
}); | ||
}; | ||
window.addEventListener('DOMContentLoaded', () => { | ||
chapterNavigation() | ||
}) | ||
window.onload = function () { | ||
document.body.setAttribute('tabindex', '-1'); | ||
document.body.focus(); | ||
}; | ||
let navigating = false; | ||
document.addEventListener('keydown', function (e) { | ||
if (navigating) return; | ||
if (e.altKey || e.ctrlKey || e.metaKey) { | ||
return; | ||
} | ||
if (window.search && document.activeElement === window.search) { | ||
return; | ||
} | ||
|
||
switch (e.key) { | ||
case 'ArrowLeft': | ||
e.preventDefault(); | ||
let previousButton = document.querySelector('a[rel="prev"]'); | ||
if (!previousButton && window.location.pathname !== '/') previousButton = { href: '/' }; | ||
|
||
if (document.referrer.includes(window.location.host)) | ||
if (previousButton) { | ||
window.location.href = previousButton.href; | ||
navigating = true; | ||
} | ||
break; | ||
case 'ArrowRight': | ||
e.preventDefault(); | ||
let nextButton = document.querySelector('a[rel="next"]'); | ||
if (!nextButton && window.location.pathname === '/') nextButton = { href: '/start/' }; | ||
|
||
if (nextButton) { | ||
window.location.href = nextButton.href; | ||
navigating = true; | ||
} | ||
break; | ||
} | ||
}); | ||
} | ||
|
||
window.addEventListener('DOMContentLoaded', () => { | ||
chapterNavigation(); | ||
}); | ||
|
||
window.onload = function () { | ||
document.body.setAttribute('tabindex', '-1'); | ||
document.body.focus(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ title: Core Concepts | |
sidebar: | ||
order: 0 | ||
label: Overview | ||
badge: | ||
badge: | ||
text: WIP | ||
variant: caution | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
title: Rendering | ||
sidebar: | ||
order: 0 | ||
badge: | ||
badge: | ||
text: WIP | ||
variant: caution | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
title: App Size | ||
sidebar: | ||
order: 0 | ||
badge: | ||
badge: | ||
text: WIP | ||
variant: caution | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: Application Debug | ||
sidebar: | ||
badge: | ||
badge: | ||
text: WIP | ||
variant: caution | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
--- | ||
title: CrabNebula Cloud | ||
sidebar: | ||
badge: | ||
badge: | ||
text: WIP | ||
variant: caution | ||
--- | ||
|
||
import Stub from '@components/Stub.astro'; | ||
|
||
<Stub /> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: Debug in IntelliJ | ||
sidebar: | ||
badge: | ||
badge: | ||
text: WIP | ||
variant: caution | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: Debug in VS Code | ||
sidebar: | ||
badge: | ||
badge: | ||
text: WIP | ||
variant: caution | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
title: Development Cycle | ||
sidebar: | ||
order: 1 | ||
badge: | ||
badge: | ||
text: WIP | ||
variant: caution | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
title: Updating Dependencies | ||
sidebar: | ||
order: 1 | ||
badge: | ||
badge: | ||
text: WIP | ||
variant: caution | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
--- | ||
title: GitHub | ||
sidebar: | ||
badge: | ||
badge: | ||
text: WIP | ||
variant: caution | ||
--- | ||
|
||
import Stub from '@components/Stub.astro'; | ||
|
||
<Stub /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
--- | ||
title: GitLab | ||
sidebar: | ||
badge: | ||
badge: | ||
text: WIP | ||
variant: caution | ||
--- | ||
|
||
import Stub from '@components/Stub.astro'; | ||
|
||
<Stub /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,3 @@ sidebar: | |
import Stub from '@components/Stub.astro'; | ||
|
||
<Stub /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.