Skip to content

Commit

Permalink
docs: add link to v1 blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 26, 2024
1 parent 86a15b8 commit 639aa6b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
14 changes: 14 additions & 0 deletions docs/.vitepress/theme/index.ts
Expand Up @@ -2,6 +2,7 @@
import Theme from 'vitepress/theme'
import type { EnhanceAppContext } from 'vitepress'
import { createPinia } from 'pinia'
import { h } from 'vue'
import TwoslashFloatingVue from '../../../packages/vitepress-twoslash/src/client'

import '../../../packages/twoslash/style-rich.css'
Expand All @@ -11,10 +12,23 @@ import 'uno.css'
import './style.css'
import './transformers.css'

// @unocss-include

export default {
extends: Theme,
enhanceApp({ app }: EnhanceAppContext) {
app.use(createPinia())
app.use(TwoslashFloatingVue)
},
Layout() {
return h(Theme.Layout, null, {
'home-hero-actions-after': () => h('div', { class: 'mt-10 mb--4 vp-doc' }, [
h('a', { href: 'https://nuxt.com/blog/shiki-v1', target: '_blank', class: 'no-underline! flex-inline gap-1 items-center' }, [
h('div', { class: 'i-ph-books-duotone text-2xl' }),
'The Evolution of Shiki v1.0',
h('div', { class: 'i-ph-arrow-up-right mt--3 ml--1' }),
]),
]),
})
},
}
1 change: 1 addition & 0 deletions docs/package.json
Expand Up @@ -7,6 +7,7 @@
"docs:preview": "vitepress preview"
},
"dependencies": {
"@iconify-json/ph": "^1.1.11",
"fuse.js": "^7.0.0"
},
"devDependencies": {
Expand Down
10 changes: 9 additions & 1 deletion pnpm-lock.yaml

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

0 comments on commit 639aa6b

Please sign in to comment.