From a3849860ae31f6d4a3969cdbae129646fb02d6a3 Mon Sep 17 00:00:00 2001 From: Anshul Goyal <32068075+anshulrgoyal@users.noreply.github.com> Date: Thu, 9 Jul 2020 22:27:41 +0530 Subject: [PATCH] fix(v2):pass siteConfig as prop to pages (#3025) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * pass config as prop to pages * use existing file * Update packages/docusaurus-plugin-content-pages/src/index.ts Co-authored-by: Sébastien Lorber Co-authored-by: Sébastien Lorber --- packages/docusaurus-plugin-content-pages/src/index.ts | 3 +++ website/src/pages/index.js | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/docusaurus-plugin-content-pages/src/index.ts b/packages/docusaurus-plugin-content-pages/src/index.ts index 0efea4c91483..00e40eea0abc 100644 --- a/packages/docusaurus-plugin-content-pages/src/index.ts +++ b/packages/docusaurus-plugin-content-pages/src/index.ts @@ -75,6 +75,9 @@ export default function pluginContentPages( path: permalink, component: source, exact: true, + modules: { + config: `@generated/docusaurus.config`, + }, }); }), ); diff --git a/website/src/pages/index.js b/website/src/pages/index.js index 2918d7ff9634..b26b992ccb80 100644 --- a/website/src/pages/index.js +++ b/website/src/pages/index.js @@ -62,7 +62,6 @@ const QUOTES = [ function Home() { const context = useDocusaurusContext(); const {siteConfig: {customFields = {}, tagline} = {}} = context; - return (