Skip to content

Commit

Permalink
chore(docs): disable twoslash
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Oct 1, 2024
1 parent 4fd8829 commit 2573f71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ build
*.log
coverage
tsconfig.vitest-temp.json
website/.vitepress/.temp
website/.vitepress/dist
website/.vitepress/cache
legacy
10 changes: 5 additions & 5 deletions website/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ import GeneratedClientBadge from './components/GeneratedClientBadge.vue'
import MyLayout from './components/MyLayout.vue'

// Imports for Twoslash
import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
import '@shikijs/twoslash/style-rich.css'
import '@shikijs/vitepress-twoslash/style-core.css'
import 'floating-vue/dist/style.css'
// import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
// import '@shikijs/twoslash/style-rich.css'
// import '@shikijs/vitepress-twoslash/style-core.css'
// import 'floating-vue/dist/style.css'

export default {
extends: DefaultTheme,
Layout: MyLayout,
enhanceApp({ app }: EnhanceAppContext) {
enhanceAppWithTabs(app)
app.component('GeneratedClientBadge', GeneratedClientBadge)
app.use(TwoslashFloatingVue)
// app.use(TwoslashFloatingVue)
},
}

0 comments on commit 2573f71

Please sign in to comment.