Skip to content

Commit

Permalink
Merge pull request #68 from dima-safin-2025/main
Browse files Browse the repository at this point in the history
chores: documentation and code refactor enhancements
  • Loading branch information
andygolay authored Aug 11, 2024
2 parents 006f9b9 + 434d098 commit 3b81d86
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 17 deletions.
4 changes: 1 addition & 3 deletions book/book/book.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,22 +408,20 @@ function playground_text(playground, hidden = true) {
document.addEventListener('keydown', function (e) {
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { return; }
if (!themePopup.contains(e.target)) { return; }

var li = document.activeElement.parentElement;
switch (e.key) {
case 'Escape':
e.preventDefault();
hideThemes();
break;
case 'ArrowUp':
e.preventDefault();
var li = document.activeElement.parentElement;
if (li && li.previousElementSibling) {
li.previousElementSibling.querySelector('button').focus();
}
break;
case 'ArrowDown':
e.preventDefault();
var li = document.activeElement.parentElement;
if (li && li.nextElementSibling) {
li.nextElementSibling.querySelector('button').focus();
}
Expand Down
4 changes: 2 additions & 2 deletions book/book/ch00-00-introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
if (theme === null || theme === undefined) { theme = default_theme; }
var html = document.querySelector('html');
html.classList.remove('light')
html.classList.remove('light');
html.classList.add(theme);
var body = document.querySelector('body');
body.classList.remove('no-js')
body.classList.remove('no-js');
body.classList.add('js');
</script>

Expand Down
4 changes: 2 additions & 2 deletions book/book/ch01-00-history-of-move.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
if (theme === null || theme === undefined) { theme = default_theme; }
var html = document.querySelector('html');
html.classList.remove('light')
html.classList.remove('light');
html.classList.add(theme);
var body = document.querySelector('body');
body.classList.remove('no-js')
body.classList.remove('no-js');
body.classList.add('js');
</script>

Expand Down
4 changes: 2 additions & 2 deletions book/book/ch01-01-the-language.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
if (theme === null || theme === undefined) { theme = default_theme; }
var html = document.querySelector('html');
html.classList.remove('light')
html.classList.remove('light');
html.classList.add(theme);
var body = document.querySelector('body');
body.classList.remove('no-js')
body.classList.remove('no-js');
body.classList.add('js');
</script>

Expand Down
4 changes: 2 additions & 2 deletions book/book/ch01-02-dispersion-of-move.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
if (theme === null || theme === undefined) { theme = default_theme; }
var html = document.querySelector('html');
html.classList.remove('light')
html.classList.remove('light');
html.classList.add(theme);
var body = document.querySelector('body');
body.classList.remove('no-js')
body.classList.remove('no-js');
body.classList.add('js');
</script>

Expand Down
4 changes: 2 additions & 2 deletions book/book/ch01-03-enter-movement.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
if (theme === null || theme === undefined) { theme = default_theme; }
var html = document.querySelector('html');
html.classList.remove('light')
html.classList.remove('light');
html.classList.add(theme);
var body = document.querySelector('body');
body.classList.remove('no-js')
body.classList.remove('no-js');
body.classList.add('js');
</script>

Expand Down
4 changes: 2 additions & 2 deletions book/book/ch03-00-domain-modeling.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ <h1 id="planning-your-capstone-project"><a class="header" href="#planning-your-c
<p>You'll be investing a decent amount of time building your capstone project. Even an hour or two a day working on it is enough, but it takes commitment and dedication to get a worthwhile project done. So, whether it's a public good, a for-profit dApp or service, or something completely different, your project should be something that moves you.</p>
<p>This chapter will guide you to plan your capstone project in the following ways:</p>
<ul>
<li><a href="ch03-01-domain-modeling.html">Understanding principles of domain modeling</a></li>
<li><a href="ch03-01-domain-modeling-intro.html">Understanding principles of domain modeling</a></li>
<li><a href="ch03-02-user-journey.html">Writing the user journey for your project</a></li>
<li><a href="ch03-03-architectural-diagram.html">Creating an archictual diagram to model your project's domain</a></li>
<li><a href="ch03-03-architectural-diagram.html">Creating an architectural diagram to model your project's domain</a></li>
</ul>

</main>
Expand Down
2 changes: 1 addition & 1 deletion book/book/ch05-00-custom-types-and-generics.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ <h1 id="custom-types-and-generics"><a class="header" href="#custom-types-and-gen
<li><a href="ch05-02-getter-functions.html">Getter and Setter Functions</a></li>
<li><a href="ch05-03-generics-intro.html">Generics Introduction</a></li>
<li><a href="ch05-04-generics-abilities.html">Generics to Constrain Abilities</a></li>
<li><a href="ch05-05-generics-with-multiple-types.html">Generics with Multiple Type Parameters</a></li>
<li><a href="ch05-04-generics-with-multiple-types.html">Generics with Multiple Type Parameters</a></li>
</ul>

</main>
Expand Down
2 changes: 1 addition & 1 deletion book/src/ch05-00-custom-types-and-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Through real-world examples, you'll develop a solid foundation in programming wi
- [Getter and Setter Functions](ch05-02-getter-functions.md)
- [Generics Introduction](ch05-03-generics-intro.md)
- [Generics to Constrain Abilities](ch05-04-generics-abilities.md)
- [Generics with Multiple Type Parameters](ch05-05-generics-with-multiple-types.md)
- [Generics with Multiple Type Parameters](ch05-04-generics-with-multiple-types.md)

0 comments on commit 3b81d86

Please sign in to comment.