From 151ca979f031aef5011817a68c00f724245ec2da Mon Sep 17 00:00:00 2001 From: endiliey Date: Fri, 25 Oct 2019 13:39:15 +0700 Subject: [PATCH 1/4] feat(v2): display footer in docs page --- CHANGELOG-2.x.md | 1 + .../src/theme/Layout/index.js | 12 ++---------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/CHANGELOG-2.x.md b/CHANGELOG-2.x.md index a90659abeaf8..1b2792557ebe 100644 --- a/CHANGELOG-2.x.md +++ b/CHANGELOG-2.x.md @@ -7,6 +7,7 @@ - Default PostCSS loader now only polyfills stage 3+ features (previously it was stage 2) like Create React App. Stage 2 CSS is considered relatively unstable and subject to change while Stage 3 features will likely become a standard. - Fix search bar focus bug. When you put the focus on search input, previously the focus will remain although we have clicked to other area outside of the search input. - New themeConfig option `sidebarCollapsible`. It is on by default. If explicitly set to `false`, all doc items in sidebar is expanded. Otherwise, it will still be a collapsible sidebar. +- Footer is now also displayed in docs page for consistency. ## 2.0.0-alpha.30 diff --git a/packages/docusaurus-theme-classic/src/theme/Layout/index.js b/packages/docusaurus-theme-classic/src/theme/Layout/index.js index 5c8e6abc3078..d7867dbd4184 100644 --- a/packages/docusaurus-theme-classic/src/theme/Layout/index.js +++ b/packages/docusaurus-theme-classic/src/theme/Layout/index.js @@ -23,15 +23,7 @@ function Layout(props) { themeConfig: {image: defaultImage}, url: siteUrl, } = siteConfig; - const { - children, - title, - noFooter, - description, - image, - keywords, - permalink, - } = props; + const {children, title, description, image, keywords, permalink} = props; const metaTitle = title || `${defaultTitle} · ${tagline}`; const metaImage = image || defaultImage; const metaImageUrl = siteUrl + useBaseUrl(metaImage); @@ -62,7 +54,7 @@ function Layout(props) {
{children}
- {!noFooter &&