diff --git a/docs/components/content/ComponentCard.vue b/docs/components/content/ComponentCard.vue index e462c56525..dda7a1b52b 100644 --- a/docs/components/content/ComponentCard.vue +++ b/docs/components/content/ComponentCard.vue @@ -51,9 +51,7 @@ diff --git a/docs/components/content/ComponentExample.vue b/docs/components/content/ComponentExample.vue index f4e7bb96c9..c7827315a3 100644 --- a/docs/components/content/ComponentExample.vue +++ b/docs/components/content/ComponentExample.vue @@ -22,8 +22,6 @@ diff --git a/docs/components/content/ComponentPreset.vue b/docs/components/content/ComponentPreset.vue index 9a4038eebb..5362c39a3d 100644 --- a/docs/components/content/ComponentPreset.vue +++ b/docs/components/content/ComponentPreset.vue @@ -3,10 +3,8 @@ diff --git a/docs/composables/useShikiHighlighter.ts b/docs/composables/useShikiHighlighter.ts deleted file mode 100644 index 4bd48c367d..0000000000 --- a/docs/composables/useShikiHighlighter.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { createShikiHighlighter } from '@nuxtjs/mdc/runtime/highlighter/shiki' -import MaterialTheme from 'shiki/themes/material-theme.mjs' -import MaterialThemeLighter from 'shiki/themes/material-theme-lighter.mjs' -import MaterialThemePalenight from 'shiki/themes/material-theme-palenight.mjs' -import HtmlLang from 'shiki/langs/html.mjs' -import MdcLang from 'shiki/langs/mdc.mjs' -import VueLang from 'shiki/langs/vue.mjs' -import YamlLang from 'shiki/langs/yaml.mjs' -import PostcssLang from 'shiki/langs/postcss.mjs' - -let highlighter -export const useShikiHighlighter = () => { - if (!highlighter) { - highlighter = createShikiHighlighter({ - bundledThemes: { - 'material-theme': MaterialTheme, - 'material-theme-lighter': MaterialThemeLighter, - 'material-theme-palenight': MaterialThemePalenight - }, - bundledLangs: { - html: HtmlLang, - mdc: MdcLang, - vue: VueLang, - yml: YamlLang, - postcss: PostcssLang - } - }) - } - - return highlighter -}