Skip to content

Commit

Permalink
Remove Prism JS
Browse files Browse the repository at this point in the history
  • Loading branch information
morehawes committed Feb 18, 2024
1 parent cdc0946 commit fcec4fd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 31 deletions.
19 changes: 0 additions & 19 deletions docs/app.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
<script setup lang="ts">
import Prism from "prismjs";
const route = useRoute();
watch(
() => route.path,
() => {
setTimeout(() => {
Prism.highlightAll();
}, 200);
},
);
onMounted(() => {
Prism.highlightAll();
});
</script>

<template>
<div class="container">
<Header />
Expand Down
4 changes: 2 additions & 2 deletions docs/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default defineNuxtConfig({
css: [
"~/assets/main.less",
"github-markdown-css/github-markdown-light.css",
"prism-theme-github/themes/prism-theme-github-dark.css",
"~/assets/prism.css",
// "prism-theme-github/themes/prism-theme-github-dark.css",
// "~/assets/prism.css",
],

app: {
Expand Down
9 changes: 0 additions & 9 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"github-markdown-css": "^5.5.0",
"nuxt": "3.8.2",
"prism-theme-github": "^1.0.1",
"prismjs": "^1.29.0",
"remark-gfm": "3.0.1"
},
"devDependencies": {
Expand Down

0 comments on commit fcec4fd

Please sign in to comment.