Skip to content

Commit

Permalink
chore(docs): fix docs katex css
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed May 30, 2024
1 parent ca6f8ed commit f6b19e0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion docs/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default defineConfig({
},
],
['script', { src: 'https://unpkg.com/[email protected]/dist/katex.min.js' }],
// ['script', { src: 'https://unpkg.com/@artalk/plugin-katex/dist/artalk-plugin-katex.js' }],
],

lastUpdated: true,
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"vitepress": "1.1.4"
},
"dependencies": {
"@artalk/plugin-katex": "^0.1.7",
"@artalk/plugin-katex": "^0.1.8",
"vue": "^3.4.26"
}
}
2 changes: 1 addition & 1 deletion ui/plugin-katex/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@artalk/plugin-katex",
"version": "0.1.7",
"version": "0.1.8",
"minAppVersion": "2.8.6",
"license": "MIT",
"description": "The katex plugin for artalk",
Expand Down
5 changes: 4 additions & 1 deletion ui/plugin-katex/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { ArtalkPlugin } from 'artalk'
import katex from 'katex'
import 'katex/dist/katex.min.css'

if (import.meta.env.DEV) {
import('katex/dist/katex.min.css')
}

export const ArtalkKatexPlugin: ArtalkPlugin = (ctx) => {
ctx.on('mounted', () => {
Expand Down
2 changes: 1 addition & 1 deletion ui/plugin-katex/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"compilerOptions": {
"baseUrl": ".",
"outDir": "dist",
"types": ["@artalk/plugin-kit/client"]
"types": ["@artalk/plugin-kit/client", "vite/client"]
}
}

0 comments on commit f6b19e0

Please sign in to comment.