-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
82fc5c9
commit f62acfa
Showing
820 changed files
with
125,079 additions
and
13,135 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
(() => { | ||
const darkThemes = ['ayu', 'navy', 'coal']; | ||
const lightThemes = ['light', 'rust']; | ||
|
||
const classList = document.getElementsByTagName('html')[0].classList; | ||
|
||
let lastThemeWasLight = true; | ||
for (const cssClass of classList) { | ||
if (darkThemes.includes(cssClass)) { | ||
lastThemeWasLight = false; | ||
break; | ||
} | ||
} | ||
|
||
const theme = lastThemeWasLight ? 'default' : 'dark'; | ||
mermaid.initialize({ startOnLoad: true, theme }); | ||
|
||
// Simplest way to make mermaid re-render the diagrams in the new theme is via refreshing the page | ||
|
||
for (const darkTheme of darkThemes) { | ||
document.getElementById(darkTheme).addEventListener('click', () => { | ||
if (lastThemeWasLight) { | ||
window.location.reload(); | ||
} | ||
}); | ||
} | ||
|
||
for (const lightTheme of lightThemes) { | ||
document.getElementById(lightTheme).addEventListener('click', () => { | ||
if (!lastThemeWasLight) { | ||
window.location.reload(); | ||
} | ||
}); | ||
} | ||
})(); |
Large diffs are not rendered by default.
Oops, something went wrong.
1,032 changes: 774 additions & 258 deletions
1,032
design-docs/src/mdbook/theme/external/highlight/DIGESTS.md
Large diffs are not rendered by default.
Oops, something went wrong.
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,6 +1,6 @@ | ||
/*! | ||
Highlight.js v11.9.0 (git: b7ec4bfafc) | ||
(src) 2006-2023 undefined and other contributors | ||
Highlight.js v11.10.0 (git: 366a8bd012) | ||
(c) 2006-2024 Josh Goebel <[email protected]> and other contributors | ||
License: BSD-3-Clause | ||
*/ | ||
/* eslint-disable no-multi-assign */ | ||
|
@@ -1019,11 +1019,11 @@ const MultiClassError = new Error(); | |
* | ||
* So what we need is a clean match like this: | ||
* | ||
* (a)(b)(src) => [ "a", "b", "src" ] | ||
* (a)(b)(c) => [ "a", "b", "c" ] | ||
* | ||
* But this falls apart with inner match groups: | ||
* | ||
* (a)(((b)))(src) => ["a", "b", "b", "b", "src" ] | ||
* (a)(((b)))(c) => ["a", "b", "b", "b", "c" ] | ||
* | ||
* Our scopes are now "out of alignment" and we're repeating `b` 3 times. | ||
* What needs to happen is the numbers are remapped: | ||
|
@@ -1170,7 +1170,7 @@ function compileLanguage(language) { | |
/** | ||
Stores multiple regular expressions and allows you to quickly search for | ||
them all in a string simultaneously - returning the first match. It does | ||
this by creating a huge (a|b|src) regex - each individual item wrapped with () | ||
this by creating a huge (a|b|c) regex - each individual item wrapped with () | ||
and joined by `|` - using match groups to track position. When a match is | ||
found checking which position in the array has content allows us to figure | ||
out which of the original regexes / match groups triggered the match. | ||
|
@@ -1555,7 +1555,7 @@ function expandOrCloneMode(mode) { | |
return mode; | ||
} | ||
|
||
var version = "11.9.0"; | ||
var version = "11.10.0"; | ||
|
||
class HTMLInjectionError extends Error { | ||
constructor(reason, html) { | ||
|
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,6 +1,6 @@ | ||
/*! | ||
Highlight.js v11.9.0 (git: b7ec4bfafc) | ||
(c) 2006-2023 undefined and other contributors | ||
Highlight.js v11.10.0 (git: 366a8bd012) | ||
(c) 2006-2024 Josh Goebel <[email protected]> and other contributors | ||
License: BSD-3-Clause | ||
*/ | ||
function e(t){return t instanceof Map?t.clear=t.delete=t.set=()=>{ | ||
|
@@ -301,7 +301,7 @@ e["before:highlightBlock"](Object.assign({block:t.el},t)) | |
}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{ | ||
e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),r.push(e)}, | ||
removePlugin:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}),n.debugMode=()=>{ | ||
o=!1},n.safeMode=()=>{o=!0},n.versionString="11.9.0",n.regex={concat:h, | ||
o=!1},n.safeMode=()=>{o=!0},n.versionString="11.10.0",n.regex={concat:h, | ||
lookahead:g,either:f,optional:d,anyNumberOfTimes:u} | ||
;for(const t in A)"object"==typeof A[t]&&e(A[t]);return Object.assign(n,A),n | ||
},ne=te({});ne.newInstance=()=>te({});export{ne as default}; |
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,6 +1,6 @@ | ||
/*! | ||
Highlight.js v11.9.0 (git: b7ec4bfafc) | ||
(src) 2006-2023 undefined and other contributors | ||
Highlight.js v11.10.0 (git: 366a8bd012) | ||
(c) 2006-2024 Josh Goebel <[email protected]> and other contributors | ||
License: BSD-3-Clause | ||
*/ | ||
/* eslint-disable no-multi-assign */ | ||
|
@@ -1019,11 +1019,11 @@ const MultiClassError = new Error(); | |
* | ||
* So what we need is a clean match like this: | ||
* | ||
* (a)(b)(src) => [ "a", "b", "src" ] | ||
* (a)(b)(c) => [ "a", "b", "c" ] | ||
* | ||
* But this falls apart with inner match groups: | ||
* | ||
* (a)(((b)))(src) => ["a", "b", "b", "b", "src" ] | ||
* (a)(((b)))(c) => ["a", "b", "b", "b", "c" ] | ||
* | ||
* Our scopes are now "out of alignment" and we're repeating `b` 3 times. | ||
* What needs to happen is the numbers are remapped: | ||
|
@@ -1170,7 +1170,7 @@ function compileLanguage(language) { | |
/** | ||
Stores multiple regular expressions and allows you to quickly search for | ||
them all in a string simultaneously - returning the first match. It does | ||
this by creating a huge (a|b|src) regex - each individual item wrapped with () | ||
this by creating a huge (a|b|c) regex - each individual item wrapped with () | ||
and joined by `|` - using match groups to track position. When a match is | ||
found checking which position in the array has content allows us to figure | ||
out which of the original regexes / match groups triggered the match. | ||
|
@@ -1555,7 +1555,7 @@ function expandOrCloneMode(mode) { | |
return mode; | ||
} | ||
|
||
var version = "11.9.0"; | ||
var version = "11.10.0"; | ||
|
||
class HTMLInjectionError extends Error { | ||
constructor(reason, html) { | ||
|
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,6 +1,6 @@ | ||
/*! | ||
Highlight.js v11.9.0 (git: b7ec4bfafc) | ||
(c) 2006-2023 undefined and other contributors | ||
Highlight.js v11.10.0 (git: 366a8bd012) | ||
(c) 2006-2024 Josh Goebel <[email protected]> and other contributors | ||
License: BSD-3-Clause | ||
*/ | ||
function e(t){return t instanceof Map?t.clear=t.delete=t.set=()=>{ | ||
|
@@ -301,7 +301,7 @@ e["before:highlightBlock"](Object.assign({block:t.el},t)) | |
}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{ | ||
e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),r.push(e)}, | ||
removePlugin:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}),n.debugMode=()=>{ | ||
o=!1},n.safeMode=()=>{o=!0},n.versionString="11.9.0",n.regex={concat:h, | ||
o=!1},n.safeMode=()=>{o=!0},n.versionString="11.10.0",n.regex={concat:h, | ||
lookahead:g,either:f,optional:d,anyNumberOfTimes:u} | ||
;for(const t in A)"object"==typeof A[t]&&e(A[t]);return Object.assign(n,A),n | ||
},ne=te({});ne.newInstance=()=>te({});export{ne as default}; |
Oops, something went wrong.