Skip to content

Commit

Permalink
deploy: 05f59b3
Browse files Browse the repository at this point in the history
  • Loading branch information
jturbide committed May 19, 2024
0 parents commit 15df8e9
Show file tree
Hide file tree
Showing 174 changed files with 1,649,364 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
22,203 changes: 22,203 additions & 0 deletions 404.html

Large diffs are not rendered by default.

22,238 changes: 22,238 additions & 0 deletions api/index.html

Large diffs are not rendered by default.

Binary file added assets/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/zemit-logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/zemit-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions assets/javascripts/bundle.ebd0bdb7.min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/javascripts/bundle.ebd0bdb7.min.js.map

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions assets/javascripts/extra.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
document$.subscribe(function() {
updateTheme(); // Update theme on AJAX page navigation
});

const lightModeStyle = '/assets/stylesheets/pygments/default.css';
const darkModeStyle = '/assets/stylesheets/pygments/github-dark.css';

function switchStyle(isDarkMode) {
const desiredStyle = isDarkMode ? darkModeStyle : lightModeStyle;
let pygmentsStyle = document.getElementById('pygments-style');

if (!pygmentsStyle) {
pygmentsStyle = document.createElement('link');
pygmentsStyle.id = 'pygments-style';
pygmentsStyle.rel = 'stylesheet';
pygmentsStyle.type = 'text/css';
document.body.appendChild(pygmentsStyle);
}

// Only update the href if it's different from the desired style
if (pygmentsStyle.href.split('/').pop() !== desiredStyle.split('/').pop()) {
pygmentsStyle.href = desiredStyle;
}
}

function updateTheme() {
const isDarkMode = document.body.getAttribute('data-md-color-scheme') === 'slate';
switchStyle(isDarkMode);
}

// MutationObserver for theme changes
const observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
if (mutation.attributeName === 'data-md-color-scheme') {
updateTheme();
}
});
});

observer.observe(document.body, { attributes: true });

// Initial theme update
updateTheme();
1 change: 1 addition & 0 deletions assets/javascripts/lunr/min/lunr.ar.min.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions assets/javascripts/lunr/min/lunr.da.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions assets/javascripts/lunr/min/lunr.de.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions assets/javascripts/lunr/min/lunr.du.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 15df8e9

Please sign in to comment.