Skip to content

Commit ef86b66

Browse files
committed
docs: update config for studio and only use published nanime package for docs
1 parent 8c99836 commit ef86b66

5 files changed

Lines changed: 279 additions & 2105 deletions

File tree

docs/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../.npmrc

docs/nuxt.config.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
export default defineNuxtConfig({
22
extends: ['docus'],
3-
modules: [
4-
'nuxt-studio',
5-
...(process.env.NODE_ENV === 'development'
6-
? ['../src/module']
7-
: ['nanime']),
8-
],
3+
modules: ['nuxt-studio', 'nanime'],
94
components: {
105
global: true,
116
dirs: ['~/components'],
@@ -49,4 +44,13 @@ export default defineNuxtConfig({
4944
],
5045
},
5146
},
47+
studio: {
48+
repository: {
49+
provider: 'github',
50+
owner: 'astraldev',
51+
repo: 'nanime',
52+
branch: 'main',
53+
rootDir: 'docs',
54+
},
55+
},
5256
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"lint": "eslint .",
4242
"test": "vitest run",
4343
"test:watch": "vitest watch",
44-
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
44+
"test:types": "nuxt typecheck",
4545
"clean": "rm -rf playground/.nuxt docs/.nuxt playground/.output docs/.output .nuxt"
4646
},
4747
"dependencies": {

playground/nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default defineNuxtConfig({
99
},
1010
compatibilityDate: 'latest',
1111
vite: {
12+
/** @ts-expect-error tailwind doesn't seem to sync types with our version of vite */
1213
plugins: [tailwindcss()],
1314
},
1415
})

0 commit comments

Comments
 (0)