From a99be873c3f06be3383883e916063befa4467db2 Mon Sep 17 00:00:00 2001 From: sw-yx Date: Thu, 15 Jul 2021 16:26:53 +0000 Subject: [PATCH] Prettified Code! --- docusaurus.config.js | 3 ++- src/theme/DocItem/index.js | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index bcf336f9ca..edbc2c35c2 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -44,7 +44,8 @@ module.exports = { }, { to: "/application-development", - activeBaseRegex: "(/application-development)|(/docs/(go|java|php|node))", + activeBaseRegex: + "(/application-development)|(/docs/(go|java|php|node))", label: "SDKs", }, { diff --git a/src/theme/DocItem/index.js b/src/theme/DocItem/index.js index ef5ad1d189..74a0d6e947 100644 --- a/src/theme/DocItem/index.js +++ b/src/theme/DocItem/index.js @@ -10,13 +10,13 @@ import DocVersionBanner from "@theme/DocVersionBanner"; import Seo from "@theme/Seo"; import LastUpdated from "@theme/LastUpdated"; import TOC from "@theme/TOC"; -import TOCCollapsible from '@theme/TOCCollapsible'; +import TOCCollapsible from "@theme/TOCCollapsible"; import EditThisPage from "@theme/EditThisPage"; import {MainHeading} from "@theme/Heading"; import clsx from "clsx"; import styles from "./styles.module.css"; import {useActivePlugin, useVersions} from "@theme/hooks/useDocs"; -import useWindowSize from '@theme/hooks/useWindowSize'; +import useWindowSize from "@theme/hooks/useWindowSize"; function DocItem(props) { const {content: DocContent, versionMetadata} = props; @@ -54,12 +54,12 @@ function DocItem(props) { const renderTocMobile = !hideTableOfContents && DocContent.toc && - (windowSize === 'mobile' || windowSize === 'ssr'); + (windowSize === "mobile" || windowSize === "ssr"); const renderTocDesktop = !hideTableOfContents && DocContent.toc && - (windowSize === 'desktop' || windowSize === 'ssr'); + (windowSize === "desktop" || windowSize === "ssr"); return ( <>