Skip to content

Commit

Permalink
Disable PrismJS (#1714)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotTheDr01ds authored Dec 28, 2024
1 parent 69b52ba commit 44569f6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,15 @@ export default defineUserConfig({
handleImportPath: (str) =>
str.replace(/^@snippets/, path.resolve(__dirname, '../snippets')),
},
highlighter: 'shiki',
},
// without this, we attempt to prefetch the whole site 😬
shouldPrefetch: false,
colorMode: 'auto',
theme: defaultTheme({
markdown: {
highlighter: 'shiki',
},
repo: 'nushell/nushell',
repoLabel: 'GitHub',
editLinks: true,
Expand Down Expand Up @@ -173,9 +177,7 @@ export default defineUserConfig({
},
},
themePlugins: {
prismjs: {
lineNumbers: 10,
},
prismjs: false,
},
}),
plugins: [
Expand All @@ -190,9 +192,10 @@ export default defineUserConfig({
},
}),
shikiPlugin({
theme: 'dark-plus',
theme: 'vitesse-dark',
lineNumbers: 10,
langs: [
'csv',
'nushell',
'rust',
'bash',
Expand Down

0 comments on commit 44569f6

Please sign in to comment.