Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion theme/components/templates/AppPageBottom.vue
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ export default {
'edit',
this.settings.github.branch,
this.settings.github.dir,
'content',
this.$config.contentDir,
`${this.document.path}${this.document.extension}`.replace(/^\//g, '')
].filter(Boolean).join('/')
}
2 changes: 2 additions & 0 deletions theme/module.js
Original file line number Diff line number Diff line change
@@ -12,6 +12,8 @@ export default function docusModule () {
const { nuxt } = this
const { options, hook } = this.nuxt

// Inject content dir in private runtime config
options.publicRuntimeConfig.contentDir = options.content.dir || 'content'
// Configure `content/` dir
options.content.dir = path.resolve(options.rootDir, options.content.dir || 'content')
// Configure `static/ dir

1 comment on commit 6d2ddfd

@vercel
Copy link

@vercel vercel bot commented on 6d2ddfd Feb 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.