Skip to content

Commit

Permalink
Bump doc dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-noland committed Oct 23, 2024
1 parent 82fc5c9 commit f62acfa
Show file tree
Hide file tree
Showing 820 changed files with 125,079 additions and 13,135 deletions.
35 changes: 35 additions & 0 deletions design-docs/src/mdbook/mermaid-init.js
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();
}
});
}
})();
2,186 changes: 2,186 additions & 0 deletions design-docs/src/mdbook/mermaid.min.js

Large diffs are not rendered by default.

1,032 changes: 774 additions & 258 deletions design-docs/src/mdbook/theme/external/highlight/DIGESTS.md

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions design-docs/src/mdbook/theme/external/highlight/es/core.js
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 */
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down
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=()=>{
Expand Down Expand Up @@ -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};
12 changes: 6 additions & 6 deletions design-docs/src/mdbook/theme/external/highlight/es/highlight.js
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 */
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down
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=()=>{
Expand Down Expand Up @@ -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};
Loading

0 comments on commit f62acfa

Please sign in to comment.