Skip to content

Commit a93dcf4

Browse files
authored
fix(content, theme-docs): disable pathPrefix for nuxt 2.15 compat (#804)
1 parent 8de3e12 commit a93dcf4

File tree

4 files changed

+1029
-26
lines changed

4 files changed

+1029
-26
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"devDependencies": {
2828
"@babel/core": "^7.12.13",
2929
"@babel/preset-env": "^7.12.13",
30-
"@nuxtjs/eslint-config": "^5.0.0",
3130
"@nuxt/typescript-build": "^2.0.4",
3231
"@nuxt/typescript-runtime": "^2.0.1",
32+
"@nuxtjs/eslint-config": "^5.0.0",
3333
"@nuxtjs/eslint-config-typescript": "^5.0.0",
3434
"@nuxtjs/module-test-utils": "^1.6.3",
3535
"babel-eslint": "^10.1.0",
@@ -40,7 +40,7 @@
4040
"husky": "^5.0.9",
4141
"jest": "^26.6.3",
4242
"lerna": "^3.22.1",
43-
"nuxt": "^2.14.12",
43+
"nuxt": "^2.15.2",
4444
"puppeteer": "^8.0.0",
4545
"shiki": "^0.9.2",
4646
"shiki-twoslash": "^1.0.0",

packages/content/lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ module.exports = async function (moduleOptions) {
7777
nuxt.hook('components:dirs', (dirs) => {
7878
dirs.push({
7979
path: '~/components/global',
80-
global: true
80+
global: true,
81+
pathPrefix: false
8182
})
8283
})
8384
} else {

packages/theme-docs/src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ const defaultConfig = docsOptions => ({
113113
'nuxt-i18n',
114114
'@nuxt/content'
115115
],
116-
components: true,
116+
components: [
117+
{ path: '~/components', pathPrefix: false }
118+
],
117119
loading: {
118120
color: docsOptions.primaryColor
119121
},

0 commit comments

Comments
 (0)