Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 2, 2025
1 parent b53b3a2 commit 1c20551
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 32 deletions.
4 changes: 0 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@
},
"devDependencies": {
"@iconify-json/svg-spinners": "catalog:",
"@shikijs/colorized-brackets": "workspace:*",
"@shikijs/transformers": "workspace:*",
"@shikijs/twoslash": "workspace:*",
"@unocss/reset": "catalog:",
"@vueuse/core": "catalog:",
"floating-vue": "catalog:",
"pinia": "catalog:",
"shiki": "workspace:*",
"unocss": "catalog:",
"unplugin-vue-components": "catalog:",
"vitepress": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions docs/packages/vitepress.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export default defineConfig({
And then in your [`.vitepress/theme/index.ts`](https://vitepress.dev/guide/custom-theme), install the Vue plugin and import the css with `@shikijs/vitepress-twoslash/styles.css`.

```ts twoslash
import type { EnhanceAppContext } from 'vitepress' // [!code hl]
// @noErrors: true
// .vitepress/theme/index.ts
import type { EnhanceAppContext } from 'vitepress' // [!code hl]
import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
import Theme from 'vitepress/theme'

Expand Down Expand Up @@ -86,7 +86,7 @@ console.log('hello')
// ^?
```

<br> <!-- leaving some space for the query above -->
<div class="h-100" /> <!-- leaving some space for the query above -->

### Vue Single File Component

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@
"@rollup/plugin-node-resolve": "catalog:",
"@rollup/plugin-replace": "catalog:",
"@rollup/plugin-terser": "catalog:",
"@shikijs/colorized-brackets": "workspace:*",
"@shikijs/engine-javascript": "workspace:*",
"@shikijs/engine-oniguruma": "workspace:*",
"@shikijs/markdown-it": "workspace:*",
"@shikijs/monaco": "workspace:*",
"@shikijs/rehype": "workspace:*",
"@shikijs/transformers": "workspace:*",
"@shikijs/twoslash": "workspace:*",
"@shikijs/types": "workspace:*",
"@shikijs/vitepress-twoslash": "workspace:*",
"@types/fs-extra": "catalog:",
Expand Down Expand Up @@ -76,6 +78,7 @@
"wrangler": "catalog:"
},
"resolutions": {
"@shikijs/colorized-brackets": "workspace:*",
"@shikijs/compat": "workspace:*",
"@shikijs/core": "workspace:*",
"@shikijs/engine-javascript": "workspace:*",
Expand Down
34 changes: 8 additions & 26 deletions pnpm-lock.yaml

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

0 comments on commit 1c20551

Please sign in to comment.