diff --git a/package.json b/package.json index 7caad0313a..c835c546f0 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,6 @@ "build-site-for-staging": "PRODUCTION=false eleventy", "build-site-for-production": "PRODUCTION=true OPTIMIZE=true eleventy" }, - "dependencies": { - "bootstrap-scss": "^4.6.2" - }, "devDependencies": { "@11ty/eleventy": "^3.0.0", "firebase-tools": "^13.22.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f1525bf601..4ac95de0ec 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,10 +7,6 @@ settings: importers: .: - dependencies: - bootstrap-scss: - specifier: ^4.6.2 - version: 4.6.2 devDependencies: '@11ty/eleventy': specifier: ^3.0.0 @@ -601,9 +597,6 @@ packages: boolbase@1.0.0: resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} - bootstrap-scss@4.6.2: - resolution: {integrity: sha512-emVpCI/S9aeFV1/qqKrztPZLiyow4XfRWLxOAu2SR/67Vau0y6IHNRukQrTx8+OUQ+aVPDhql40eDHSxGoAceA==} - boxen@5.1.2: resolution: {integrity: sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==} engines: {node: '>=10'} @@ -3686,8 +3679,6 @@ snapshots: boolbase@1.0.0: {} - bootstrap-scss@4.6.2: {} - boxen@5.1.2: dependencies: ansi-align: 3.0.1 diff --git a/src/_11ty/plugins/highlight.js b/src/_11ty/plugins/highlight.js index 56325784d1..c0fe5a0386 100644 --- a/src/_11ty/plugins/highlight.js +++ b/src/_11ty/plugins/highlight.js @@ -1,4 +1,5 @@ import {getSingletonHighlighter} from 'shiki'; +import dashDarkTheme from '../syntax/dash-dark.js'; import dashLightTheme from '../syntax/dash-light.js'; const _terminalLanguages = { @@ -49,7 +50,7 @@ export async function configureHighlighting(markdown) { 'csharp', 'cmake', ], - themes: [dashLightTheme], + themes: [dashLightTheme, dashDarkTheme], }); markdown.renderer.rules.fence = function (tokens, index) { @@ -168,7 +169,10 @@ function _highlight( return highlighter.codeToHtml(content, { lang: language, - theme: 'dash-light', + themes: { + light: 'dash-light', + dark: 'dash-dark', + }, transformers: [ { pre(preElement) { diff --git a/src/_11ty/plugins/markdown.js b/src/_11ty/plugins/markdown.js index dcb28f331f..cf35aeacb1 100644 --- a/src/_11ty/plugins/markdown.js +++ b/src/_11ty/plugins/markdown.js @@ -25,7 +25,7 @@ export const markdown = (() => { assistiveText: title => `Link to '${title}' section`, symbol: '#', class: 'heading-link', - wrapper: ['
', '
'] + wrapper: ['
', '
'] }), }); @@ -67,15 +67,19 @@ function _registerAside(markdown, id, defaultTitle, icon, style) { render: function (tokens, index) { if (tokens[index].nesting === 1) { const parsedArgs = /\s+(.*)/.exec(tokens[index].info); - const title = parsedArgs?.[1] ?? defaultTitle; - return `