From 70d185d8628ad567af1ceb63e6e5b82e5789cf68 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Sat, 2 Mar 2019 21:03:58 -0800 Subject: [PATCH] fix(v2): don't display footer on docs page --- v2/lib/theme/Doc/index.js | 1 - v2/lib/theme/Layout/index.js | 2 -- v2/lib/theme/Pages/index.js | 4 +++- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/v2/lib/theme/Doc/index.js b/v2/lib/theme/Doc/index.js index 625f6f22e8..5bafe33f49 100644 --- a/v2/lib/theme/Doc/index.js +++ b/v2/lib/theme/Doc/index.js @@ -36,7 +36,6 @@ function Doc(props) {
{renderRoutes(route.routes)}
-
); diff --git a/v2/lib/theme/Layout/index.js b/v2/lib/theme/Layout/index.js index 90bc50d19a..cf321e98aa 100644 --- a/v2/lib/theme/Layout/index.js +++ b/v2/lib/theme/Layout/index.js @@ -7,7 +7,6 @@ import React from 'react'; -import Footer from '@theme/Footer'; // eslint-disable-line import Navbar from '@theme/Navbar'; // eslint-disable-line import './styles.css'; @@ -17,7 +16,6 @@ function Layout({children}) {
{children} -
); } diff --git a/v2/lib/theme/Pages/index.js b/v2/lib/theme/Pages/index.js index b8253b6c39..5ee9a1f1eb 100644 --- a/v2/lib/theme/Pages/index.js +++ b/v2/lib/theme/Pages/index.js @@ -6,7 +6,8 @@ */ import React, {useContext} from 'react'; -import Head from '@docusaurus/Head'; +import Head from '@docusaurus/Head'; // eslint-disable-line +import Footer from '@theme/Footer'; // eslint-disable-line import Layout from '@theme/Layout'; // eslint-disable-line import DocusaurusContext from '@docusaurus/context'; @@ -25,6 +26,7 @@ function Pages({children}) { {language && } {children} +