Skip to content

Commit

Permalink
fix(content, theme-docs): disable pathPrefix for nuxt 2.15 compat (#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Mar 2, 2021
1 parent 8de3e12 commit a93dcf4
Show file tree
Hide file tree
Showing 4 changed files with 1,029 additions and 26 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"devDependencies": {
"@babel/core": "^7.12.13",
"@babel/preset-env": "^7.12.13",
"@nuxtjs/eslint-config": "^5.0.0",
"@nuxt/typescript-build": "^2.0.4",
"@nuxt/typescript-runtime": "^2.0.1",
"@nuxtjs/eslint-config": "^5.0.0",
"@nuxtjs/eslint-config-typescript": "^5.0.0",
"@nuxtjs/module-test-utils": "^1.6.3",
"babel-eslint": "^10.1.0",
Expand All @@ -40,7 +40,7 @@
"husky": "^5.0.9",
"jest": "^26.6.3",
"lerna": "^3.22.1",
"nuxt": "^2.14.12",
"nuxt": "^2.15.2",
"puppeteer": "^8.0.0",
"shiki": "^0.9.2",
"shiki-twoslash": "^1.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/content/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ module.exports = async function (moduleOptions) {
nuxt.hook('components:dirs', (dirs) => {
dirs.push({
path: '~/components/global',
global: true
global: true,
pathPrefix: false
})
})
} else {
Expand Down
4 changes: 3 additions & 1 deletion packages/theme-docs/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ const defaultConfig = docsOptions => ({
'nuxt-i18n',
'@nuxt/content'
],
components: true,
components: [
{ path: '~/components', pathPrefix: false }
],
loading: {
color: docsOptions.primaryColor
},
Expand Down
Loading

0 comments on commit a93dcf4

Please sign in to comment.