From 55fa0b0f785949ffe752345ea8fab874e284b7e3 Mon Sep 17 00:00:00 2001 From: Zihua Li Date: Tue, 9 Jan 2024 23:14:28 +0800 Subject: [PATCH 1/3] Update Prism usage for website --- packages/website/root-wrapper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/website/root-wrapper.js b/packages/website/root-wrapper.js index 6f39fd7fed..0a6434313c 100644 --- a/packages/website/root-wrapper.js +++ b/packages/website/root-wrapper.js @@ -1,5 +1,5 @@ import { MDXProvider } from '@mdx-js/react'; -import { Highlight, themes, defaultProps } from 'prism-react-renderer'; +import { Highlight, themes } from 'prism-react-renderer'; import CodePen from './src/components/CodePen'; import Editor from './src/components/Editor'; import { @@ -26,8 +26,8 @@ const components = { const matches = className.match(/language-(?.*)/); return ( Date: Tue, 9 Jan 2024 23:36:22 +0800 Subject: [PATCH 2/3] Hide blog in navigation --- packages/website/src/components/Default.jsx | 39 +++++++++++---------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/packages/website/src/components/Default.jsx b/packages/website/src/components/Default.jsx index 19be79bdd3..3c5b89d7a9 100644 --- a/packages/website/src/components/Default.jsx +++ b/packages/website/src/components/Default.jsx @@ -1,9 +1,9 @@ -import classNames from "classnames"; -import { graphql, useStaticQuery } from "gatsby"; -import { useState } from "react"; -import Helmet from "react-helmet"; -import LogoIcon from "../svg/logo.svg"; -import GitHub from "./GitHub"; +import classNames from 'classnames'; +import { graphql, useStaticQuery } from 'gatsby'; +import { useState } from 'react'; +import Helmet from 'react-helmet'; +import LogoIcon from '../svg/logo.svg'; +import GitHub from './GitHub'; const Default = ({ children, pageType }) => { const [isNavOpen, setIsNavOpen] = useState(false); @@ -21,10 +21,10 @@ const Default = ({ children, pageType }) => { return ( <>
-