Skip to content

Commit

Permalink
Merge pull request #2 from wpnuxt/1-add-twoslash
Browse files Browse the repository at this point in the history
add twoslash
  • Loading branch information
vernaillen authored Jul 2, 2024
2 parents cd1a0c4 + 5091125 commit 7799320
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const docsSource = {
driver: 'github',
repo: 'vernaillen/wpnuxt-module',
branch: 'main',
dir: 'docs/content',
dir: 'docs',
prefix: '/1.docs',
token: process.env.NUXT_GITHUB_TOKEN || ''
}
Expand All @@ -29,6 +29,7 @@ if (docsSourceBase) {
export default defineNuxtConfig({
extends: ['@nuxt/ui-pro'],
modules: [
'nuxt-content-twoslash',
'@nuxt/content',
'@nuxt/eslint',
'@nuxt/image',
Expand Down Expand Up @@ -87,6 +88,15 @@ export default defineNuxtConfig({
]
}
},
twoslash: {
floatingVueOptions: {
classMarkdown: 'prose prose-primary dark:prose-invert'
},
// Skip Twoslash in dev to improve performance. Turn this on when you want to explictly test twoslash in dev.
enableInDev: true,
// Do not throw when twoslash fails, the typecheck should be down in github.com/nuxt/nuxt's CI
throws: false
},
ui: {
icons: ['heroicons', 'simple-icons']
},
Expand Down

0 comments on commit 7799320

Please sign in to comment.