From 095fec3d6bee51ad8b970396bd8024ef5bd0c3d6 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Mon, 13 Jun 2022 22:16:28 +0800 Subject: [PATCH] refactor(docs): remove unused files (#1113) --- .../src/components/HomepageFeatures/index.tsx | 60 ------------------- .../HomepageFeatures/styles.module.css | 11 ---- packages/docs/src/components/Step/index.tsx | 19 ------ 3 files changed, 90 deletions(-) delete mode 100644 packages/docs/src/components/HomepageFeatures/index.tsx delete mode 100644 packages/docs/src/components/HomepageFeatures/styles.module.css delete mode 100644 packages/docs/src/components/Step/index.tsx diff --git a/packages/docs/src/components/HomepageFeatures/index.tsx b/packages/docs/src/components/HomepageFeatures/index.tsx deleted file mode 100644 index b00b469c8..000000000 --- a/packages/docs/src/components/HomepageFeatures/index.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import React from 'react'; -import clsx from 'clsx'; -import styles from './styles.module.css'; - -type FeatureItem = { - title: string; - Svg: React.ComponentType>; - description: JSX.Element; -}; - -const FeatureList: FeatureItem[] = [ - { - title: 'Some Title', - Svg: require('@site/static/img/logo.svg').default, - description: ( - <> - Docusaurus was designed from the ground up to be easily installed and - used to get your website up and running quickly. - - ), - }, - { - title: 'Another Title', - Svg: require('@site/static/img/logo.svg').default, - description: ( - <> - Docusaurus lets you focus on your docs, and we'll do the chores. Go - ahead and move your docs into the docs directory. - - ), - }, -]; - -function Feature({title, Svg, description}: FeatureItem) { - return ( -
-
- -
-
-

{title}

-

{description}

-
-
- ); -} - -export default function HomepageFeatures(): JSX.Element { - return ( -
-
-
- {FeatureList.map((props, idx) => ( - - ))} -
-
-
- ); -} diff --git a/packages/docs/src/components/HomepageFeatures/styles.module.css b/packages/docs/src/components/HomepageFeatures/styles.module.css deleted file mode 100644 index b248eb2e5..000000000 --- a/packages/docs/src/components/HomepageFeatures/styles.module.css +++ /dev/null @@ -1,11 +0,0 @@ -.features { - display: flex; - align-items: center; - padding: 2rem 0; - width: 100%; -} - -.featureSvg { - height: 200px; - width: 200px; -} diff --git a/packages/docs/src/components/Step/index.tsx b/packages/docs/src/components/Step/index.tsx deleted file mode 100644 index 5f2f32fd3..000000000 --- a/packages/docs/src/components/Step/index.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import React, { ReactNode } from 'react' - -type Props = { - children: ReactNode, - title: string; - subtitle?: string; -}; - -const Step = ({ children, title, subtitle }: Props) => { - return ( - <> -

{title}

- {subtitle &&

{subtitle}

} - {children} - - ) -} - -export default Step