diff --git a/src/core/module.ts b/src/core/module.ts index c14785e87..d1e21d2d9 100644 --- a/src/core/module.ts +++ b/src/core/module.ts @@ -48,10 +48,6 @@ export default async function docusModule() { // Inject Docus theme as ~docus options.alias['~docus'] = resolve(__dirname, 'runtime') - // Inject content dir in private runtime config - const contentDir = options.dir.pages || 'pages' - options.publicRuntimeConfig.contentDir = contentDir - // extend parser options const parserOptions: Partial = { markdown: {} } await nuxt.callHook('docus:parserOptions', parserOptions) @@ -188,8 +184,12 @@ export default async function docusModule() { options.watch.push(pagesDirPath) } }) + nuxt.callHook('docus:storage:ready') + // Watch Docus while DOCUS_DEV is set + if (process.env.DOCUS_DEV) options.watch.push(resolve(__dirname, '../')) + nuxt.hook('close', () => { destroyHooks() destroyDB() diff --git a/src/defaultTheme/components/organisms/PageBottom.vue b/src/defaultTheme/components/organisms/PageBottom.vue index bc9d0af15..b778f9607 100644 --- a/src/defaultTheme/components/organisms/PageBottom.vue +++ b/src/defaultTheme/components/organisms/PageBottom.vue @@ -1,18 +1,13 @@